Rakefile in amazon-associates-0.6.3 vs Rakefile in amazon-associates-0.7.0

- old
+ new

@@ -6,16 +6,18 @@ s.summary = "Generic Amazon Associates Web Service (Formerly ECS) REST API. Supports ECS 4.0." s.email = "ben.woosley@gmail.com" s.homepage = "http://github.com/Empact/amazon-associates" s.description = "amazon-associates offers object-oriented access to the Amazon Associates API, built on ROXML" s.authors = ["Ben Woosley", "Dan Pickett", "Herryanto Siatono"] - s.add_runtime_dependency("roxml", ">= 3.1.3") + s.add_runtime_dependency("roxml", ">= 3.1.6") + s.add_runtime_dependency("activemodel", ">= 3.0.0") s.add_runtime_dependency("activesupport", ">= 2.3.4") s.add_runtime_dependency("ruby-hmac") s.add_runtime_dependency("will_paginate") s.add_development_dependency("thoughtbot-shoulda") s.add_development_dependency("mocha") + s.add_development_dependency("rspec", ">= 2.0.0") # s.require_path = "lib" # s.autorequire = "amazon-associates" # s.test_files = FileList["test/**/*test.rb"].to_a # s.files = FileList["lib/**/*"].to_a @@ -37,19 +39,20 @@ t.libs << "test" t.test_files = FileList["test/**/*_test.rb"] t.verbose = true end -require 'spec/rake/spectask' -Spec::Rake::SpecTask.new(:spec) do |t| - t.libs << 'lib' << 'spec' - t.spec_opts << '--format profile --backtrace' - t.spec_files = FileList['spec/**/*_spec.rb'] +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) do |t| + t.ruby_opts = '-Ilib -Ispec' + t.rspec_opts = '--backtrace' + # t.spec_files = FileList['spec/**/*_spec.rb'] end -Spec::Rake::SpecTask.new(:rcov) do |t| - t.libs << 'lib' << 'spec' - t.spec_files = FileList['spec/**/*_spec.rb'] +RSpec::Core::RakeTask.new(:rcov) do |t| + t.ruby_opts = '-Ilib -Ispec' + t.rspec_opts = '--backtrace' + # t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true end begin require 'cucumber/rake/task' \ No newline at end of file