Permalink
Browse files

Use Bundler to build the gem

Merges #11
  • Loading branch information...
1 parent 430f93e commit 908c7b4147bca7472c93d2ea96d640fb78ff0c7d James Ottaway committed with radar May 2, 2012
Showing with 1 addition and 16 deletions.
  1. +1 −16 Rakefile
View
@@ -1,27 +1,12 @@
require 'rake'
-require 'rake/testtask'
-require 'rake/packagetask'
-require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'spree/core/testing_support/common_rake'
+require 'bundler/gem_tasks'
RSpec::Core::RakeTask.new
task :default => [:spec]
-spec = eval(File.read('spree_gateway.gemspec'))
-
-Gem::PackageTask.new(spec) do |p|
- p.gem_spec = spec
-end
-
-desc "Release to gemcutter"
-task :release => :package do
- require 'rake/gemcutter'
- Rake::Gemcutter::Tasks.new(spec).define
- Rake::Task['gem:push'].invoke
-end
-
desc "Generates a dummy app for testing"
task :test_app do
ENV['LIB_NAME'] = 'spree_gateway'

0 comments on commit 908c7b4

Please sign in to comment.