aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2010-03-01 23:36:54 -0500
committerBryan Helmkamp <bryan@brynary.com>2010-03-02 00:32:53 -0500
commitf221a6f19f4cee31e2d103ea9a1930f59223fc25 (patch)
tree845a41e17550f1a76f8220fbedc1bb5c542b5cb7 /Rakefile
parenta4111bbca0884e4a748ab32ba7d7b550ec8d9186 (diff)
downloadrails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.gz
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.bz2
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.zip
Leverage VERSION constants from gemspecs to avoid tedious updates when releasing
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 0c1c240410..50700fdeac 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,10 +3,15 @@ require 'rake/rdoctask'
require 'rake/gempackagetask'
PROJECTS = %w(activesupport activemodel actionpack actionmailer activeresource activerecord railties)
-
-Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
- require version_path
-end
+PROJECTS.each { |project| $:.unshift "#{project}/lib" }
+
+require "active_support/version"
+require "active_model/version"
+require "action_pack/version"
+require "action_mailer/version"
+require "active_resource/version"
+require "active_record/version"
+require "rails/version"
desc 'Run all tests by default'
task :default => %w(test test:isolated)