1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use the new RAILS_VERSION in rake install (ht: ZhangJinzhu) [#4116 state:resolved]

This commit is contained in:
wycats 2010-03-27 04:10:21 -07:00
parent faeca694b3
commit c428fbdb1d

View file

@ -49,13 +49,15 @@ end
desc "Install gems for all projects." desc "Install gems for all projects."
task :install => :gem do task :install => :gem do
version = File.read("RAILS_VERSION").strip
require File.expand_path("../actionpack/lib/action_pack/version", __FILE__) require File.expand_path("../actionpack/lib/action_pack/version", __FILE__)
(PROJECTS - ["railties"]).each do |project| (PROJECTS - ["railties"]).each do |project|
puts "INSTALLING #{project}" puts "INSTALLING #{project}"
system("gem install #{project}/pkg/#{project}-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc") system("gem install #{project}/pkg/#{project}-#{version}.gem --no-ri --no-rdoc")
end end
system("gem install railties/pkg/railties-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc") system("gem install railties/pkg/railties-#{version}.gem --no-ri --no-rdoc")
system("gem install pkg/rails-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc") system("gem install pkg/rails-#{version}.gem --no-ri --no-rdoc")
end end
desc "Generate documentation for the Rails framework" desc "Generate documentation for the Rails framework"