Permalink
Browse files

Merge pull request #60 from grosser/bundler

simplify bundler setup, and raise since Bundler::GemHelper would blow up...
  • Loading branch information...
2 parents c80b112 + 22c4ea6 commit 5244c43cec38a6ad9bff529ca6f955620b465b3e @rafaelfranca rafaelfranca committed Nov 16, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 Rakefile
View
@@ -1,9 +1,11 @@
#!/usr/bin/env rake
begin
require 'bundler/setup'
+ require 'bundler/gem_tasks'
rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+ raise 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
+
begin
require 'rdoc/task'
rescue LoadError
@@ -20,11 +22,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
-
-Bundler::GemHelper.install_tasks
-
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
@@ -34,5 +31,4 @@ Rake::TestTask.new(:test) do |t|
t.verbose = false
end
-
task :default => :test

0 comments on commit 5244c43

Please sign in to comment.