Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 47b4f88b2efb51771df1a1bb8486f27e510c7fa3 1 parent e2eedbd
Rhett Sutphin authored
Showing with 13 additions and 0 deletions.
  1. +2 −0  Rakefile
  2. +2 −0  meta.rakefile
  3. +9 −0 tasks/remove_task.rake
2  Rakefile
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")
2  meta.rakefile
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)
9 tasks/remove_task.rake
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
Please sign in to comment.
Something went wrong with that request. Please try again.