2010-07-27 05:09:10 +08:00
|
|
|
version = ARGV.pop
|
|
|
|
|
2011-05-16 03:34:36 +08:00
|
|
|
%w( activesupport activemodel activerecord actionpack actionmailer railties ).each do |framework|
|
2010-07-27 05:09:10 +08:00
|
|
|
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 `
|
2012-01-28 15:24:23 +08:00
|
|
|
`rm rails-#{version}.gem`
|