aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-04-09 16:34:25 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-04-09 16:34:25 +0900
commit7a26021d1d288912b123447847bc389acac5290e (patch)
tree55cbf8f62615509af05f775655d3a504d572feab /tool
parentb965e7e05e4307e3c4b396673e63dbc493ef2f20 (diff)
downloadruby-7a26021d1d288912b123447847bc389acac5290e.tar.gz
Support one repository for updating the latest commits
Diffstat (limited to 'tool')
-rw-r--r--tool/sync_default_gems.rb6
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