summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:08:18 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit567db6064baf572e3510c0322ec536ad84c81d57 ()
tree49b9b4589969b1bbe7fc8bed60ed2805141aaf9e /lib
parent3d4c3f9e4ffc31e652b1bfab4d78f8b27d5b8126 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/NestedParenthesizedCalls
https://.com/rubygems/rubygems/commit/a875fdb535
-rw-r--r--lib/rubygems/installer.rb2
-rw-r--r--lib/rubygems/request_set/gem_dependency_api.rb4
2 files changed, 3 insertions, 3 deletions
@@ -810,7 +810,7 @@ TEXT
ruby_exe = "#{rb_config["RUBY_INSTALL_NAME"]}#{rb_config["EXEEXT"]}"
ruby_exe = "ruby.exe" if ruby_exe.empty?
- if File.exist?(File.join bindir, ruby_exe)
# stub & ruby.exe within same folder. Portable
<<-TEXT
@ECHO OFF
@@ -532,8 +532,8 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta
# platform matches the current platform.
def gem_platforms(name, options) # :nodoc:
- platform_names = Array(options.delete :platform)
- platform_names.concat Array(options.delete :platforms)
platform_names.concat @current_platforms if @current_platforms
return true if platform_names.empty?