summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2019-08-18 13:53:41 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-09-05 18:42:41 +0900
commit68937fe0e4bf6e0943fe165e0a157058cff760fe (patch)
tree110b4b285fd3f5a9892917a47d48ea2aa8aa103a /lib/rubygems
parent95326150faa0854ed6cd0877e0069d2080bc5005 (diff)
[rubygems/rubygems] Make passing a gem name to be optional
https://github.com/rubygems/rubygems/commit/4ba4ffebbe
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/build_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb
index 76149032b2..27d8140428 100644
--- a/lib/rubygems/commands/build_command.rb
+++ b/lib/rubygems/commands/build_command.rb
@@ -62,7 +62,7 @@ Gems can be saved to a specified filename with the output option:
private
- def build_gem(gemspec = get_one_gem_name)
+ def build_gem(gemspec = get_one_optional_argument)
unless File.exist?(gemspec)
gemspec += ".gemspec" if File.exist?(gemspec + ".gemspec")
end