Skip to content

Commit

Permalink
Merge branch '0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhunt committed Apr 27, 2009
2 parents 8fd3ff8 + b541522 commit 3bae3cb
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 34 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
0.0.3 - Current
0.0.3 - April 27, 2009

* Specified required request parameters for all operations (Tyler Hunt)
* Updated IPN request to use the awsSignature (David Balatero)
* Added versioning support for CBUI pipelines (David Balatero)

0.0.2 - February 3, 2008
0.0.2 - February 3, 2009

* Updated to Relax 0.0.6.
* Added support for CC Descriptor Text (Jon Crawford)
Expand Down
51 changes: 21 additions & 30 deletions Rakefile
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
Expand Down
4 changes: 4 additions & 0 deletions VERSION.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
major: 0
minor: 0
patch: 3
1 change: 1 addition & 0 deletions lib/remit/get_pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def parameters #:nodoc:
parameter :pipeline_name
parameter :return_url
parameter :caller_key
parameter :version

def initialize(api, options)
@api = api
Expand Down
2 changes: 1 addition & 1 deletion lib/remit/ipn_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Remit
# Encapsulates the logic for IPN request validation and attribute retrieval.
class IpnRequest
# Signature key name used by AmazonFPS IPNs
SIGNATURE_KEY = 'signature'
SIGNATURE_KEY = 'awsSignature'

# +params+ should be your controllers request parameters.
def initialize(params, secret_key)
Expand Down
2 changes: 1 addition & 1 deletion spec/units/ipn_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3bae3cb

Please sign in to comment.