2010-07-26 21:09:10 +00:00
|
|
|
version = ARGV.pop
|
|
|
|
|
2013-01-03 20:08:50 +00:00
|
|
|
if version.nil?
|
|
|
|
puts "Usage: ruby install.rb version"
|
|
|
|
exit(64)
|
|
|
|
end
|
|
|
|
|
2013-07-07 09:07:32 +00:00
|
|
|
%w( activesupport activemodel activerecord actionpack actionview actionmailer railties ).each do |framework|
|
2010-07-26 21:09:10 +00:00
|
|
|
puts "Installing #{framework}..."
|
2013-02-25 14:51:06 +00:00
|
|
|
`cd #{framework} && gem build #{framework}.gemspec && gem install #{framework}-#{version}.gem --no-ri --no-rdoc && rm #{framework}-#{version}.gem`
|
2010-07-26 21:09:10 +00:00
|
|
|
end
|
|
|
|
|
2013-02-25 14:51:06 +00:00
|
|
|
puts "Installing rails..."
|
2010-07-26 21:09:10 +00:00
|
|
|
`gem build rails.gemspec`
|
2013-02-25 14:51:06 +00:00
|
|
|
`gem install rails-#{version}.gem --no-ri --no-rdoc `
|
2012-01-28 07:24:23 +00:00
|
|
|
`rm rails-#{version}.gem`
|