Rakefile in toadhopper-sinatra-1.0.3 vs Rakefile in toadhopper-sinatra-1.0.4
- old
+ new
@@ -1,20 +1,8 @@
-require 'bundler'
-Bundler.setup(:default, :development, :test)
-Bundler.require(:development, :test)
+require 'bundler/setup'
-Jeweler::Tasks.new do |s|
- s.name = "toadhopper-sinatra"
- s.summary = "Post Hoptoad notifications from Sinatra"
- s.email = "t.lucas@toolmantim.com"
- s.homepage = "http://github.com/toolmantim/toadhopper-sinatra"
- s.authors = ["Tim Lucas"]
- s.extra_rdoc_files = ["README.md", "LICENSE", "example.rb"]
+Bundler::GemHelper.install_tasks
- require File.join(File.dirname(__FILE__), 'lib', 'sinatra', 'toadhopper')
- s.version = Sinatra::Toadhopper::VERSION
-end
-
desc "Run tests"
task :test do
- exec "/usr/bin/env ruby #{File.dirname(__FILE__)}/test_example.rb"
+ exec "/usr/bin/env bundle exec ruby #{File.dirname(__FILE__)}/test_example.rb"
end