Skip to content

Instantly share code, notes, and snippets.

@dpogue
Created April 10, 2014 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpogue/10339882 to your computer and use it in GitHub Desktop.
Save dpogue/10339882 to your computer and use it in GitHub Desktop.
diff -r 7750e518b218 Rakefile
--- a/Rakefile Sat Dec 17 21:35:47 2011 +0100
+++ b/Rakefile Wed Apr 09 20:17:08 2014 -0700
@@ -5,8 +5,8 @@
require 'rake'
require 'rake/clean'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
+require 'rubygems/package_task'
+require 'rdoc/task'
require 'minitest/unit'
@@ -40,7 +40,7 @@
s.bindir = 'bin'
end
-Rake::GemPackageTask.new(spec) { |task| }
+Gem::PackageTask.new(spec) { |task| }
task :install_gem do
sh %{rake package}
@@ -60,6 +60,8 @@
task :all do
ENV['QUIET'] ||= 'true'
+ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
+
MiniTest::Unit.autorun
test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment