Permalink
Browse files

Use Bundler gem tasks.

  • Loading branch information...
Gabe Berke-Williams
Gabe Berke-Williams committed Nov 11, 2011
1 parent 64b59ad commit 5133fa9f52c2b63d7afac4717eb7c7d50fc19877
Showing with 6 additions and 11 deletions.
  1. +6 −11 Rakefile
View
@@ -1,13 +1,14 @@
require 'rubygems'
-require 'bundler/setup'
+require 'bundler'
require 'rake'
-require 'rcov/rcovtask'
require 'date'
-require 'rake/gempackagetask'
-require 'rspec/core/rake_task'
-require 'cucumber/rake/task'
require 'appraisal'
require 'yard'
+require 'rspec/core/rake_task'
+require 'cucumber/rake/task'
+require 'rcov/rcovtask'
+
+Bundler::GemHelper.install_tasks
desc 'Default: run the specs and features.'
task :default => 'spec:unit' do
@@ -45,12 +46,6 @@ Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
-eval("$specification = begin; #{IO.read('factory_girl.gemspec')}; end")
-Rake::GemPackageTask.new($specification) do |package|
- package.need_zip = true
- package.need_tar = true
-end
-
YARD::Rake::YardocTask.new do |t|
end

0 comments on commit 5133fa9

Please sign in to comment.