Permalink
Browse files

Remove the bundler-provided tasks that ladle doesn't use.

  • Loading branch information...
1 parent e2eedbd commit 47b4f88b2efb51771df1a1bb8486f27e510c7fa3 @rsutphin committed Oct 22, 2010
Showing with 13 additions and 0 deletions.
  1. +2 −0 Rakefile
  2. +2 −0 meta.rakefile
  3. +9 −0 tasks/remove_task.rake
View
@@ -4,6 +4,7 @@ Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'
+load File.expand_path("../tasks/remove_task.rake", __FILE__)
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
@@ -30,6 +31,7 @@ end
# build task is provided by bundler's gem helper
task :build => [:clean, :compile]
+remove_task(:release)
desc "Release both the Ruby and JRuby variants of Ladle"
task :release do
system("rake -f meta.rakefile release")
View
@@ -1,5 +1,6 @@
require 'rake'
require 'bundler'
+load File.expand_path("../tasks/remove_task.rake", __FILE__)
# This rakefile depends on the main one and uses RVM to implement
# tasks that require multiple platforms at once.
@@ -35,3 +36,4 @@ module Ladle
end
Ladle::MultiplatformGemHelper.new(File.dirname(__FILE__)).install
+remove_task(:install)
View
@@ -0,0 +1,9 @@
+Rake::TaskManager.class_eval do
+ def remove_task(task_name)
+ @tasks.delete(task_name.to_s)
+ end
+end
+
+def remove_task(name)
+ Rake.application.remove_task(name)
+end

0 comments on commit 47b4f88

Please sign in to comment.