rubykassa 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 170afa113f939199ab32c7111211114ca8130674
4
- data.tar.gz: ee8ad3bfd886a50e31f54a6fc6ffc6a594a03c2c
3
+ metadata.gz: 89e50770543f62e7739d58a31644a657e25f83ed
4
+ data.tar.gz: 9d08edc3a5e17697ab0443846825385f03911f8c
5
5
  SHA512:
6
- metadata.gz: e95a4e14e596aee4e0f29c6f93508b4353640425c37b9e7559f41d1bbe3578a75f61405c6eaa290af64c70e01418f06af12526d87d329b891b1d6317a3fe7dcb
7
- data.tar.gz: b63367849f7a505f9a8fc0f6d43733750ed0cce941ca9ea2ce35ab6b202cb7c34fac48c188540114d45c53fbb1c5a6de6e8a8baa85ef742edd4b991f41ce8913
6
+ metadata.gz: 26a35e10af1c4e2e7aaeb2d4ccf133bd053b35f84abcfcaae26aeb8a4d1f41e5a7dce786f88908f9475fc018f276b722b837d5c2299eb20f3b23f132e073b03a
7
+ data.tar.gz: 4aa79a3a98932800b2bba12a09260d5e9c591537256f743cd77a427b7c2afbd06914a3a45632686f8440b8b894f89d6623894bee275f6039c3aa2a19ee47e03f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
- ## Edge version
1
+ ## 0.2.3
2
+
3
+ * Fix bug with calling incorrect signature validating method in `robokassa_controller#paid`. [#3][]
4
+ * Fix bug with signatures comparison. Should compare downcased. [#4][]
5
+
6
+ [#3]:https://github.com/ZeroOneStudio/rubykassa/issues/3
7
+ [#4]:https://github.com/ZeroOneStudio/rubykassa/issues/4
8
+
9
+ ## 0.2.2
2
10
 
3
11
  * Fix description param name from `'InvDesc'` to `'Desc'`. Closes [#2][]
4
12
 
5
- [#2]: https://github.com/ZeroOneStudio/rubykassa/issues/2
13
+ [#2]: https://github.com/ZeroOneStudio/rubykassa/issues/2
@@ -3,7 +3,7 @@ class RobokassaController < ApplicationController
3
3
  before_filter :create_notification, except: :fail
4
4
 
5
5
  def paid
6
- if @notification.valid_response_signature?
6
+ if @notification.valid_result_signature?
7
7
  render text: @notification.success
8
8
  else
9
9
  render text: "fail"
@@ -15,7 +15,7 @@ module Rubykassa
15
15
 
16
16
  %w(result success).map do |kind|
17
17
  define_method "valid_#{kind}_signature?" do
18
- @params["SignatureValue"] == generate_signature_for(kind.to_sym)
18
+ @params["SignatureValue"].downcase == generate_signature_for(kind.to_sym)
19
19
  end
20
20
  end
21
21
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Rubykassa
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubykassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Kishenin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-03 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails