Rakefile in peddler-0.2.4 vs Rakefile in peddler-0.3.0
- old
+ new
@@ -1,18 +1,12 @@
-require 'rubygems'
-require 'rake'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = 'peddler'
- s.summary = 'A Ruby wrapper to the Amazon Inventory Management API'
- s.email = 'hakan.ensari@papercavalier.com'
- s.homepage = 'http://papercavalier.github.com/peddler'
- s.description = 'Peddler is a Ruby wrapper to the Amazon Inventory Management API.'
- s.authors = ['Hakan Şenol Ensari']
- s.add_dependency 'activesupport', '>= 2.3.5'
- s.add_development_dependency 'rspec', '>= 1.3.0'
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
-end
\ No newline at end of file
+require 'bundler'
+require 'rspec/core/rake_task'
+require 'sdoc_helpers'
+
+Bundler::GemHelper.install_tasks
+
+desc 'Run all specs in spec directory'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+end
+
+task :default => :spec