diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-06-14 12:55:30 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2021-07-07 10:03:15 +0900 |
commit | f63d3bbb6e27daaac8211c57929d62add4fef1ad (patch) | |
tree | e3fa1606e7c7ce3612cbe355dfd9d53da18b3356 /lib/rubygems | |
parent | d4b4281959d2a9846d766253b5e21e8158948aa7 (diff) | |
download | ruby-f63d3bbb6e27daaac8211c57929d62add4fef1ad.tar.gz |
Merge RubyGems-3.2.19 and Bundler-2.2.19
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/command.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/commands/build_command.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index 9f935e6285..303f54a7d7 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -355,6 +355,8 @@ class Gem::Command def add_option(*opts, &handler) # :yields: value, options group_name = Symbol === opts.first ? opts.shift : :options + raise "Do not pass an empty string in opts" if opts.include?("") + @option_groups[group_name] << [opts, handler] end diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb index fff5f7c76f..842ec1855a 100644 --- a/lib/rubygems/commands/build_command.rb +++ b/lib/rubygems/commands/build_command.rb @@ -23,7 +23,7 @@ class Gem::Commands::BuildCommand < Gem::Command options[:output] = value end - add_option '-C PATH', '', 'Run as if gem build was started in <PATH> instead of the current working directory.' do |value, options| + add_option '-C PATH', 'Run as if gem build was started in <PATH> instead of the current working directory.' do |value, options| options[:build_path] = value end end |