From 68937fe0e4bf6e0943fe165e0a157058cff760fe Mon Sep 17 00:00:00 2001 From: bronzdoc Date: Sun, 18 Aug 2019 13:53:41 -0600 Subject: [rubygems/rubygems] Make passing a gem name to be optional https://github.com/rubygems/rubygems/commit/4ba4ffebbe --- lib/rubygems/commands/build_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems') 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 -- cgit v1.2.3