diff options
-rwxr-xr-x | tool/update-bundled_gems.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb index c8927b878d..688ca34086 100755 --- a/tool/update-bundled_gems.rb +++ b/tool/update-bundled_gems.rb @@ -7,8 +7,12 @@ unless /^[^#]/ !~ (gem = $F[0]) s.platform == "ruby" && s.name == gem } gem = src.fetch_spec(gem) - uri = gem.metadata["source_code_uri"] || gem.homepage - uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "").chomp(".git") + if ENV["UPDATE_BUNDLED_GEMS_ALL"] + uri = gem.metadata["source_code_uri"] || gem.homepage + uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "").chomp(".git") + else + uri = $F[2] + end if $F[3] if $F[3].include?($F[1]) $F[3][$F[1]] = gem.version.to_s |