This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gem dependencies coverted to 1.2, some tests failing
- Loading branch information
1 parent
06ff807
commit 2053f31
Showing
2 changed files
with
7 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,15 @@ | ||
# encoding: utf-8 | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/packagetask' | ||
require 'rubygems/package_task' | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
|
||
require 'rspec/core/rake_task' | ||
require 'spree/core/testing_support/common_rake' | ||
|
||
RSpec::Core::RakeTask.new | ||
|
||
task :default => [:spec] | ||
|
||
spec = eval(File.read('spree_address_book.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" | ||
desc 'Generates a dummy app for testing' | ||
task :test_app do | ||
ENV['LIB_NAME'] = 'spree_address_book' | ||
Rake::Task['common:test_app'].invoke | ||
Rake::Task['common:test_app'].invoke 'Spree::User' | ||
end |