diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-11-09 22:30:26 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-11-09 22:30:26 -0600 |
commit | f03bcf249527ba4945fdce673bae971a9ac11bb7 (patch) | |
tree | 37ba0d01d2c71f2cb84c5dde242af276ab2196c9 /railties | |
parent | e9d21ca903adbcfaae5ac37a1a46dbb285cd6761 (diff) | |
download | rails-f03bcf249527ba4945fdce673bae971a9ac11bb7.tar.gz rails-f03bcf249527ba4945fdce673bae971a9ac11bb7.tar.bz2 rails-f03bcf249527ba4945fdce673bae971a9ac11bb7.zip |
Don't load all of railties just for Rails::Version
Diffstat (limited to 'railties')
-rw-r--r-- | railties/Rakefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 3a87a88ddc..1280ad7f06 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -6,12 +6,8 @@ require 'rake/gempackagetask' require 'date' require 'rbconfig' -begin - require File.expand_path('../../vendor/gems/environment', __FILE__) -rescue LoadError -end $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib" -require 'rails' +require 'rails/version' PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = ENV['PKG_NAME'] || 'rails' @@ -30,7 +26,7 @@ task :default => :test ## This is required until the regular test task ## below passes. It's not ideal, but at least ## we can see the failures -task :test do +task :test do dir = ENV["TEST_DIR"] || "**" Dir["test/#{dir}/*_test.rb"].all? do |file| next true if file.include?("fixtures") @@ -152,7 +148,7 @@ end # Publishing ------------------------------------------------------- desc "Publish the rails gem" -task :pgem => [:gem] do +task :pgem => [:gem] do require 'rake/contrib/sshpublisher' Rake::SshFilePublisher.new("gems.rubyonrails.org", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload `ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'` |