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