-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
55 lines (47 loc) · 1.68 KB
/
Copy pathRakefile
File metadata and controls
55 lines (47 loc) · 1.68 KB
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
53
54
55
require 'rubygems'
require 'rake/clean'
#require 'spec/rake/spectask'
require 'rspec'
require 'rspec/core/rake_task'
desc 'Default: run specs.'
task :default => :spec
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'flexpay'
gem.summary = 'An API for using the Amazon Flexible Payment Service (FPS).'
gem.email = '[email protected]'
gem.homepage = 'http://github.com/cchandler/flexpay'
gem.authors = ['Chris Chandler']
#gem.rubyforge_project = 'remit'
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}'].to_a
gem.has_rdoc = true
gem.extra_rdoc_files = ['README.markdown', 'LICENSE']
gem.add_dependency('hpricot', ">=0.8.1")
gem.add_dependency('rest-client', ">=1.4.2")
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."
RSpec::Core::RakeTask.new(:units) do |t|
t.rspec_opts = ['--colour --format progress']
#t.spec_files = FileList['spec/units/**/*_spec.rb']
end
desc "Run integration specs. Requires AWS_ACCESS_KEY and AWS_SECRET_KEY."
RSpec::Core::RakeTask.new(:integrations) do |t|
t.rspec_opts = ['--colour --format progress']
#t.spec_files = FileList['spec/integrations/**/*_spec.rb']
end
end
RSpec::Core::RakeTask.new(:doc) do |t|
t.rspec_opts = ['--format specdoc --dry-run --colour']
#t.spec_files = FileList['spec/**/*_spec.rb']
end