1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't load all of railties just for Rails::Version

This commit is contained in:
Joshua Peek 2009-11-09 22:30:26 -06:00
parent e9d21ca903
commit f03bcf2495

View file

@ -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'`