From 67f5d611f5735a6444314ae1819938e63f0d174b Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Mon, 31 Aug 2009 17:20:44 -0700 Subject: Add rake gemspec and gemspecs to the repo --- activesupport/Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 238594debb..539ce2720e 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -68,6 +68,12 @@ 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 ca2f2d1800111d3d816176171d7c2ac12e373de1 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sat, 5 Sep 2009 18:24:58 -0500 Subject: Turn warnings on for AS isolated tests --- activesupport/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 539ce2720e..91c874d729 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -24,7 +24,7 @@ Rake::TestTask.new { |t| task :isolated_test do ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) Dir['test/**/*_test.rb'].all? do |file| - system(ruby, '-Ilib:test', file) + system(ruby, '-w', '-Ilib:test', file) end or raise "Failures" end -- cgit v1.2.3 From f3f2e0b00d8b422fd5921fb709ac7a9570ad2a6a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sun, 13 Sep 2009 12:24:50 -0500 Subject: Move AS vendor support into bundler. Run `rake bundle` before running tests. --- activesupport/Rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 91c874d729..ecf8b52fc5 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -28,6 +28,16 @@ task :isolated_test do end or raise "Failures" end +task :bundle do + puts "Checking if the bundled testing requirements are up to date..." + result = system "gem bundle" + unless result + puts "The gem bundler is not installed. Installing." + system "gem install bundler" + system "gem bundle" + end +end + # Create compressed packages dist_dirs = [ "lib", "test"] -- cgit v1.2.3 From fff3f0ae0cec1061f8b3e5cb44e189e94a4ad44f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sun, 13 Sep 2009 15:10:29 -0500 Subject: Detect missing dependencies and automatically run bundler --- activesupport/Rakefile | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index ecf8b52fc5..91c874d729 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -28,16 +28,6 @@ task :isolated_test do end or raise "Failures" end -task :bundle do - puts "Checking if the bundled testing requirements are up to date..." - result = system "gem bundle" - unless result - puts "The gem bundler is not installed. Installing." - system "gem install bundler" - system "gem bundle" - end -end - # Create compressed packages dist_dirs = [ "lib", "test"] -- cgit v1.2.3