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