Sha256: c0fe62929240ab865e7e1832ea6712e5cbf10622a74755ad1de1206a2070efd7
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require 'rake' require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' desc "Default Task" task :default => [:spec, :cucumber ] spec = eval(File.read('rfcommerce_api.gemspec')) Rake::GemPackageTask.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 "Regenerates a rails 3 app for testing" task :test_app do require '../lib/generators/spree/test_app_generator' class ApiTestAppGenerator < Spree::Generators::TestAppGenerator def install_gems inside "test_app" do run 'bundle exec rake spree_core:install' run 'bundle exec rake spree_auth:install' run 'bundle exec rake spree_api:install' end end def migrate_db run_migrations end protected def full_path_for_local_gems <<-gems gem 'spree_core', :path => \'#{File.join(File.dirname(__FILE__), "..", "core")}\' gem 'spree_auth', :path => \'#{File.join(File.dirname(__FILE__), "..", "auth")}\' gem 'spree_api', :path => \'#{File.dirname(__FILE__)}\' gems end end ApiTestAppGenerator.start end ENV['SPREE_GEM_PATH'] = __FILE__ require File.expand_path("../../core/lib/tasks/common", __FILE__)
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
MyCommerceapi-1.0.0 | api/Rakefile |
MyCommerce-0.0.3 | api/Rakefile |