./Rakefile in ambition-0.2.2 vs ./Rakefile in ambition-0.3.1
- old
+ new
@@ -1,22 +1,21 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-Version = '0.2.2'
+Version = '0.3.1'
module Rake::TaskManager
- def redefine_task(task_class, args, &block)
+ def delete_task(task_class, args, &block)
task_name, deps = resolve_args(args)
@tasks.delete(task_class.scope_name(@scope, task_name).to_s)
- define_task(task_class, args, &block)
end
end
class Rake::Task
- def self.redefine_task(args, &block) Rake.application.redefine_task(self, args, &block) end
+ def self.delete_task(args, &block) Rake.application.delete_task(self, args, &block) end
end
-def redefine_task(args, &block) Rake::Task.redefine_task(args, &block) end
+def delete_task(args, &block) Rake::Task.delete_task(args, &block) end
begin
require 'rubygems'
gem 'echoe', '=1.3'
ENV['RUBY_FLAGS'] = ""
@@ -28,17 +27,18 @@
p.description = "Ambition builds SQL from plain jane Ruby."
p.url = "http://errtheblog.com/"
p.author = 'Chris Wanstrath'
p.email = "chris@ozmm.org"
p.extra_deps << ['ParseTree', '=2.0.1']
+ p.extra_deps << ['ruby2ruby', '=1.1.7']
p.extra_deps << ['activerecord', '>=1.15.0']
p.test_globs = 'test/*_test.rb'
end
rescue LoadError
end
-redefine_task(:test) { }
+delete_task :test
Rake::TestTask.new('test') do |t|
t.pattern = 'test/*_test.rb'
end