diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-03 03:48:48 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-03 03:48:48 -0800 |
commit | fe649b1f4c0c39b78d9c48581c2a2b4ed301d900 (patch) | |
tree | d236ea5efb28e569c48aa16c0b21b71af6dfecc8 | |
parent | c9d8481bebe55d8073256391e4f828cb2c8c3849 (diff) | |
parent | 86c21e4fb9a719aa67b48ba81d070c6c2dc9fdb7 (diff) | |
download | rails-fe649b1f4c0c39b78d9c48581c2a2b4ed301d900.tar.gz rails-fe649b1f4c0c39b78d9c48581c2a2b4ed301d900.tar.bz2 rails-fe649b1f4c0c39b78d9c48581c2a2b4ed301d900.zip |
Merge pull request #8714 from utkarshkukreti/faster-gem-install
Pass in `--local` when doing `gem install` for local gems. [ci skip]
-rw-r--r-- | Rakefile | 6 | ||||
-rw-r--r-- | install.rb | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -40,10 +40,10 @@ task :install => :gem do version = File.read("RAILS_VERSION").strip (PROJECTS - ["railties"]).each do |project| puts "INSTALLING #{project}" - system("gem install #{project}/pkg/#{project}-#{version}.gem --no-ri --no-rdoc") + system("gem install #{project}/pkg/#{project}-#{version}.gem --local --no-ri --no-rdoc") end - system("gem install railties/pkg/railties-#{version}.gem --no-ri --no-rdoc") - system("gem install pkg/rails-#{version}.gem --no-ri --no-rdoc") + system("gem install railties/pkg/railties-#{version}.gem --local --no-ri --no-rdoc") + system("gem install pkg/rails-#{version}.gem --local --no-ri --no-rdoc") end desc "Generate documentation for the Rails framework" diff --git a/install.rb b/install.rb index b87b008c2e..bf843e251e 100644 --- a/install.rb +++ b/install.rb @@ -2,10 +2,10 @@ version = ARGV.pop %w( activesupport activemodel activerecord actionpack actionmailer railties ).each do |framework| puts "Installing #{framework}..." - `cd #{framework} && gem build #{framework}.gemspec && gem install #{framework}-#{version}.gem --no-ri --no-rdoc && rm #{framework}-#{version}.gem` + `cd #{framework} && gem build #{framework}.gemspec && gem install #{framework}-#{version}.gem --local --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 ` +`gem install rails-#{version}.gem --local --no-ri --no-rdoc ` `rm rails-#{version}.gem` |