diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-09 16:34:25 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-09 16:34:25 +0900 |
commit | 7a26021d1d288912b123447847bc389acac5290e (patch) | |
tree | 55cbf8f62615509af05f775655d3a504d572feab /tool | |
parent | b965e7e05e4307e3c4b396673e63dbc493ef2f20 (diff) | |
download | ruby-7a26021d1d288912b123447847bc389acac5290e.tar.gz |
Support one repository for updating the latest commits
Diffstat (limited to 'tool')
-rw-r--r-- | tool/sync_default_gems.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 7c894222ae..63cf0a1a73 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -454,7 +454,11 @@ end case ARGV[0] when "up" - $repositories.keys.each{|gem| update_default_gems(gem.to_s)} + if ARGV[1] + update_default_gems(ARGV[1]) + else + $repositories.keys.each{|gem| update_default_gems(gem.to_s)} + end when "all" $repositories.keys.each{|gem| sync_default_gems(gem.to_s)} else |