Skip to content

Commit

Permalink
Hoe out of the way again
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksieger committed Mar 9, 2010
1 parent 8220359 commit d9e14d2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Rakefile
Expand Up @@ -25,8 +25,6 @@ begin
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.description = p.paragraphs_of('README.txt', 1...2).join("\n\n")
p.extra_deps += [['rake', '>= 0.8.7'], ['jruby-jars', '>= 1.4.0'], ['jruby-rack', '>= 0.9.7'], ['rubyzip', '>= 0.9.4']]
p.test_globs = ["spec/**/*_spec.rb"]
p.rspec_options = ["--options", "spec/spec.opts"]
p.clean_globs += ['spec/sample/MANIFEST*', 'spec/sample/web.xml*']
end
hoe.spec.files = MANIFEST
Expand All @@ -40,8 +38,16 @@ rescue LoadError
puts "You really need Hoe installed to be able to package this gem"
end

Rake::Task['rcov'].instance_variable_set("@prerequisites", [])
Rake::Task['rcov'].instance_variable_set("@actions", [])
# Leave my tasks alone, Hoe
%w(default spec rcov).each do |task|
Rake::Task[task].prerequisites.clear
Rake::Task[task].actions.clear
end

Spec::Rake::SpecTask.new do |t|
t.spec_opts ||= []
t.spec_opts << "--options" << "spec/spec.opts"
end

Spec::Rake::SpecTask.new("spec:rcov") do |t|
t.spec_opts ||= []
Expand All @@ -52,3 +58,5 @@ end
RCov::VerifyTask.new(:rcov => "spec:rcov") do |t|
t.threshold = 100
end

task :default => :spec

0 comments on commit d9e14d2

Please sign in to comment.