ruby-changes:57548
From: bronzdoc <ko1@a...>
Date: Thu, 5 Sep 2019 19:20:04 +0900 (JST)
Subject: [ruby-changes:57548] 68937fe0e4 (master): [rubygems/rubygems] Make passing a gem name to be optional
https://git.ruby-lang.org/ruby.git/commit/?id=68937fe0e4 From 68937fe0e4bf6e0943fe165e0a157058cff760fe Mon Sep 17 00:00:00 2001 From: bronzdoc <lsagastume1990@g...> 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 diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb index 7614903..27d8140 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: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/build_command.rb#L62 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/