Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c8b9005ac3
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (53 sloc) 1.971 kb
require 'rubygems'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Default: run specs.'
task :default => :spec
spec = Gem::Specification.new do |spec|
spec.name = 'remit'
spec.version = '0.0.1'
spec.summary = "An API for using the Amazon Flexible Payment Service (FPS)."
spec.author = 'Tyler Hunt'
spec.email = 'tyler@tylerhunt.com'
spec.homepage = 'http://tylerhunt.com/'
spec.rubyforge_project = 'remit'
spec.platform = Gem::Platform::RUBY
spec.files = FileList['{bin,lib}/**/*'].to_a
spec.require_path = 'lib'
spec.test_files = FileList['{spec}/**/{*spec.rb,*helper.rb}'].to_a
spec.has_rdoc = true
spec.extra_rdoc_files = ['README.markdown', 'LICENSE']
spec.add_dependency('relax', '>= 0.0.5')
end
Rake::GemPackageTask.new(spec) do |package|
package.need_tar = true
end
Rake::RDocTask.new do |rdoc|
rdoc.title = 'Remit Documentation'
rdoc.main = 'README.markdown'
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README.markdown', 'LICENSE', 'lib/**/*.rb')
rdoc.options << '--inline-source'
rdoc.options << '--line-numbers'
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
Jump to Line
Something went wrong with that request. Please try again.