Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (44 sloc) 1.65 KB
require 'rubygems'
require 'rake/clean'
require 'spec/rake/spectask'
desc 'Default: run specs.'
task :default => :spec
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'remit'
gem.summary = 'An API for using the Amazon Flexible Payment Service (FPS).'
gem.email = 'peter.boling+remit@gmail.com'
gem.homepage = 'http://github.com/nyc-ruby-meetup/remit'
gem.authors = ['Tyler Hunt','Peter Boling']
gem.rubyforge_project = 'remit-nyc'
gem.platform = Gem::Platform::RUBY
gem.files = FileList['{bin,lib}/**/*'].to_a
gem.require_path = 'lib'
gem.test_files = FileList['{spec}/**/{*spec.rb,*helper.rb,*.xml}'].to_a
gem.has_rdoc = true
gem.extra_rdoc_files = ['README.markdown', 'LICENSE']
gem.add_dependency('relax', '~> 0.0.7')
end
rescue LoadError
puts 'Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com'
end
task :spec do
Rake::Task["spec:units"].invoke
end
namespace :spec do
desc "Run unit specs."
Spec::Rake::SpecTask.new(:units) do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/units/**/*_spec.rb']
end
desc "Run integration specs. Requires AWS_ACCESS_KEY and AWS_SECRET_KEY."
Spec::Rake::SpecTask.new(:integrations) do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/integrations/**/*_spec.rb']
end
end
Spec::Rake::SpecTask.new(:doc) do |t|
t.spec_opts = ['--format specdoc --dry-run --colour']
t.spec_files = FileList['spec/**/*_spec.rb']
end