Skip to content

Instantly share code, notes, and snippets.

@brenes
Forked from littlemove/rawclone.rb
Created February 15, 2011 16:22
Show Gist options
  • Save brenes/827741 to your computer and use it in GitHub Desktop.
Save brenes/827741 to your computer and use it in GitHub Desktop.
unless ARGV[0].nil?
File.open(ARGV[0],'r').each do |line|
line.gsub!(/\(|\)|,/,'')
versions = line.split
gem_name = versions.shift
versions.each do |version|
puts "gem install #{gem_name} -v=#{version} --ignore-dependencies"
system("gem install #{gem_name} -v=#{version} --ignore-dependencies")
end
end
else
puts "Usage: ruby rawclone file"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment