Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create an install task that successfully installs all Rails gems

  • Loading branch information...
commit f3ed0de340f47c2f0cbccc70c40d3ff829a4b5ff 1 parent bb91bea
@wycats wycats authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 Rakefile
10 Rakefile
@@ -3,7 +3,7 @@ require 'rake/rdoctask'
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
-PROJECTS = %w(activesupport actionpack actionmailer activemodel activeresource activerecord railties)
+PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
require version_path
@@ -12,7 +12,7 @@ end
desc 'Run all tests by default'
task :default => :test
-%w(test isolated_test rdoc pgem package release).each do |task_name|
+%w(test isolated_test rdoc pgem package release gem).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
errors = []
@@ -23,6 +23,12 @@ task :default => :test
+task :install => :gem do
+ (PROJECTS - ["railties"]).each do |project|
+ system("gem install #{project}/pkg/#{project}-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
+ end
desc "Generate documentation for the Rails framework" do |rdoc|
Please sign in to comment.
Something went wrong with that request. Please try again.