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:
parent
faeca694b3
commit
c428fbdb1d
1 changed files with 5 additions and 3 deletions
8
Rakefile
8
Rakefile
|
@ -49,13 +49,15 @@ end
|
|||
|
||||
desc "Install gems for all projects."
|
||||
task :install => :gem do
|
||||
version = File.read("RAILS_VERSION").strip
|
||||
|
||||
require File.expand_path("../actionpack/lib/action_pack/version", __FILE__)
|
||||
(PROJECTS - ["railties"]).each do |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
|
||||
system("gem install railties/pkg/railties-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
|
||||
system("gem install pkg/rails-#{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-#{version}.gem --no-ri --no-rdoc")
|
||||
end
|
||||
|
||||
desc "Generate documentation for the Rails framework"
|
||||
|
|
Loading…
Reference in a new issue