-
Notifications
You must be signed in to change notification settings - Fork 49
/
Rakefile
52 lines (44 loc) · 1.65 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 = '[email protected]'
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