forked from tylerhunt/remit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,31 @@ | ||
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.3' | ||
spec.summary = "An API for using the Amazon Flexible Payment Service (FPS)." | ||
spec.author = 'Tyler Hunt' | ||
spec.email = '[email protected]' | ||
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.7') | ||
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' | ||
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/tylerhunt/remit' | ||
gem.authors = ['Tyler Hunt'] | ||
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('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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
major: 0 | ||
minor: 0 | ||
patch: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
before(:each) do | ||
@request_params = { | ||
"action" => "notice", | ||
"awsSignature" => "DA7ZbuQaBDt2/+Mty9XweJyqI1E=", | ||
"buyerName" => "Fps Buyer", | ||
"callerReference" => "4-8-1-3.5", | ||
"controller" => "amazon_fps/ipn", | ||
"operation" => "PAY", | ||
"paymentMethod" => "CC", | ||
"recipientEmail" => "[email protected]", | ||
"recipientName" => "Fps Business", | ||
"signature" => "DA7ZbuQaBDt2/+Mty9XweJyqI1E=", | ||
"status" => "SUCCESS", | ||
"transactionAmount" => "USD 3.50", | ||
"transactionDate" => "1224687134", | ||
|