sage_pay 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3
4
+
5
+ * yield for the signature verification details if there's a block given in the
6
+ notification.
7
+
3
8
  ## 0.2.2
4
9
 
5
10
  * Incorporate additional fields I'd missed from the notification. That'll make
@@ -6,7 +6,7 @@ require 'md5'
6
6
  require 'uuid'
7
7
 
8
8
  module SagePay
9
- VERSION = '0.2.2'
9
+ VERSION = '0.2.3'
10
10
  end
11
11
 
12
12
  require 'validatable-ext'
@@ -110,6 +110,10 @@ module SagePay
110
110
  end
111
111
  end
112
112
 
113
+ if signature_verification_details.nil? && block_given?
114
+ signature_verification_details = yield(attributes)
115
+ end
116
+
113
117
  unless signature_verification_details.nil?
114
118
  # We need to calculate the VPS signature from the values passed in as
115
119
  # additional params from the original registration and notification.
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'sage_pay'
10
- s.version = '0.2.2'
10
+ s.version = '0.2.3'
11
11
  s.date = '2010-04-25'
12
12
  s.rubyforge_project = 'sage_pay'
13
13
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SagePay do
4
- it "should be version 0.2.2" do
5
- SagePay::VERSION.should == '0.2.2'
4
+ it "should be version 0.2.3" do
5
+ SagePay::VERSION.should == '0.2.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Graeme Mathieson