From 897b9ac43b22ae8873258493ea22eab1c07acd39 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 25 Sep 2009 00:24:34 -0500 Subject: Make activesupport.gemspec the authoritative source instead of generating it from the Rakefile --- activesupport/Rakefile | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 91c874d729..8d2d207225 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -45,22 +45,7 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.exclude('lib/active_support/vendor/*') } -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.version = PKG_VERSION - s.summary = "Support and utility classes used by the Rails framework." - s.description = %q{Utility library which carries commonly used classes and goodies from the Rails framework} - - s.files = [ "CHANGELOG", "README" ] + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) } - s.require_path = 'lib' - s.has_rdoc = true - - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.homepage = "http://www.rubyonrails.org" - s.rubyforge_project = "activesupport" -end +spec = eval(File.read('activesupport.gemspec')) Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec @@ -68,12 +53,6 @@ Rake::GemPackageTask.new(spec) do |p| p.need_zip = true end -task :gemspec do - File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file| - file.puts spec.to_ruby - end -end - desc "Publish the beta gem" task :pgem => [:package] do require 'rake/contrib/sshpublisher' -- cgit v1.2.3 From 24ac3a8d8eb6f66392961eb2cc89c8b244f04238 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 25 Sep 2009 01:16:41 -0500 Subject: Wrap isolated test runner in a test suite --- activesupport/Rakefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 8d2d207225..c27167287d 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -15,17 +15,17 @@ RUBY_FORGE_PROJECT = "activesupport" RUBY_FORGE_USER = "webster132" task :default => :test -Rake::TestTask.new { |t| - t.libs << "test" +Rake::TestTask.new do |t| + t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = true t.warning = true -} -task :isolated_test do - ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) - Dir['test/**/*_test.rb'].all? do |file| - system(ruby, '-w', '-Ilib:test', file) - end or raise "Failures" +end + +namespace :test do + Rake::TestTask.new(:isolated) do |t| + t.pattern = 'test/ts_isolated.rb' + end end # Create compressed packages -- cgit v1.2.3