aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index 50700fdeac..cc12696b83 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,15 +3,6 @@ require 'rake/rdoctask'
require 'rake/gempackagetask'
PROJECTS = %w(activesupport activemodel actionpack actionmailer activeresource activerecord railties)
-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)
@@ -130,6 +121,12 @@ task :pdoc => :rdoc do
end
task :update_versions do
+ require File.dirname(__FILE__) + "/version"
+
+ File.open("RAILS_VERSION", "w") do |f|
+ f.write Rails::VERSION::STRING + "\n"
+ end
+
constants = {
"activesupport" => "ActiveSupport",
"activemodel" => "ActiveModel",