diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/fetch-bundled_gems.rb | 17 | ||||
-rwxr-xr-x | tool/make-snapshot | 3 |
2 files changed, 19 insertions, 1 deletions
diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb new file mode 100644 index 0000000000..a0d7181b68 --- /dev/null +++ b/tool/fetch-bundled_gems.rb @@ -0,0 +1,17 @@ +require 'fileutils' + +File.readlines("#{ARGV[0]}/gems/bundled_gems").each do |gem| + n, v, u = gem.split + + v = "v" + v + + case n + when "minitest" + v = "master" + when "test-unit" + v = v[1..-1] + end + + FileUtils.mkdir_p "#{ARGV[0]}/gems/src" + `#{ARGV[0]}/tool/git-refresh -C #{ARGV[0]}/gems/src --branch #{v} #{u} #{n}` +end diff --git a/tool/make-snapshot b/tool/make-snapshot index a005ebf297..29d9d5b0bd 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -369,7 +369,8 @@ _touch-unicode-files: if File.exist?("gems/bundled_gems") gems = Dir.glob("gems/*.gem") gems -= File.readlines("gems/bundled_gems").map {|line| - 'gems/'+line.split(' ').join('-')+'.gem' + n, v, _ = line.split(' ') + "gems/#{n}-#{v}.gem" } FileUtils.rm_f(gems) else |