Skip to content

Commit

Permalink
Remove the bundler-provided tasks that ladle doesn't use.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsutphin committed Oct 22, 2010
1 parent e2eedbd commit 47b4f88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -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"
Expand All @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions meta.rakefile
@@ -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.
Expand Down Expand Up @@ -35,3 +36,4 @@ module Ladle
end

Ladle::MultiplatformGemHelper.new(File.dirname(__FILE__)).install
remove_task(:install)
9 changes: 9 additions & 0 deletions tasks/remove_task.rake
@@ -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.