Created
June 23, 2014 17:56
-
-
Save rr1000/45530762b21a06a3493f to your computer and use it in GitHub Desktop.
Testing This Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version = ARGV.pop | |
if version.nil? | |
puts "Usage: ruby install.rb version" | |
exit(64) | |
end | |
%w( activesupport activemodel activerecord actionpack actionview actionmailer railties ).each do |framework| | |
puts "Installing #{framework}..." | |
`cd #{framework} && gem build #{framework}.gemspec && gem install #{framework}-#{version}.gem --no-ri --no-rdoc && rm #{framework}-#{version}.gem` | |
end | |
puts "Installing rails..." | |
`gem build rails.gemspec` | |
`gem install rails-#{version}.gem --no-ri --no-rdoc ` | |
`rm rails-#{version}.gem` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment