Sha256: 4acf2ec6f16d234a6a83042260331f96025f155d80abd43c6566c6e41f63addf

Contents?: true

Size: 643 Bytes

Versions: 11

Compression:

Stored size: 643 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'spree/core/testing_support/common_rake'

RSpec::Core::RakeTask.new

task :default => [:spec]

spec = eval(File.read('<%=file_name%>.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'] = '<%=file_name%>'
  Rake::Task['common:test_app'].invoke
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
spree_cmd-1.0.7 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.6 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.4 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.3 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.2 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.1 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.0 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.0.rc4 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.0.rc3 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-1.0.0.rc2 lib/spree_cmd/templates/extension/Rakefile
spree_core-1.0.0.rc1 lib/generators/spree/extension/templates/Rakefile