aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2010-03-04 22:41:39 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-04 21:25:52 -0800
commitdeb00bcb8cf88eb6420282c9af0af64fb69aeed4 (patch)
treea2cbddf59a52f538f9b65ec8d377c99bc48a6824 /Rakefile
parent46bf2f04a87c56826963958eaf370d9262526af0 (diff)
downloadrails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.tar.gz
rails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.tar.bz2
rails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.zip
Read Rails version from a file instead of modifying the load path and doing requires
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
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",