Permalink
Browse files

Update the rake files and gem spec. Rename it for consistency

  • Loading branch information...
1 parent 84a97f6 commit f2342c7a8db2cb299cccd7de9f6bf6d5006d2238 @jkongie jkongie committed Apr 17, 2012
Showing with 17 additions and 19 deletions.
  1. +14 −16 Rakefile
  2. +3 −3 mail_chimp.gemspec → spree_mail_chimp.gemspec
View
@@ -1,14 +1,17 @@
-require File.expand_path('../../config/application', __FILE__)
-
-require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
-require 'rake/gempackagetask'
+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('mail_chimp.gemspec'))
+spec = eval(File.read('spree_mail_chimp.gemspec'))
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
end
@@ -19,13 +22,8 @@ task :release => :package do
Rake::Task['gem:push'].invoke
end
-desc "Default Task"
-task :default => [:spec]
-
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new
-
-# require 'cucumber/rake/task'
-# Cucumber::Rake::Task.new do |t|
-# t.cucumber_opts = %w{--format pretty}
-# end
+desc "Generates a dummy app for testing"
+task :test_app do
+ ENV['LIB_NAME'] = 'spree_mail_chimp'
+ Rake::Task['common:test_app'].invoke
+end
@@ -1,9 +1,9 @@
+# encoding: UTF-8
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_mail_chimp'
s.version = '1.3.0'
s.summary = 'Mail Chimp subscriptions for your Spree store using hominid'
- #s.description = 'Add (optional) gem description here'
s.required_ruby_version = '>= 1.8.7'
s.author = 'Sam Beam'
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
s.has_rdoc = true
- s.add_dependency 'spree_core', '>= 1.0.0'
- s.add_dependency('hominid', '>= 2.2.0')
+ s.add_dependency 'spree_core', '~> 1.0.0'
+ s.add_dependency 'hominid', '~> 3.0.0'
end

0 comments on commit f2342c7

Please sign in to comment.