rubykassa 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/app/controllers/robokassa_controller.rb +1 -1
- data/lib/rubykassa/notification.rb +1 -1
- data/lib/rubykassa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89e50770543f62e7739d58a31644a657e25f83ed
|
4
|
+
data.tar.gz: 9d08edc3a5e17697ab0443846825385f03911f8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a35e10af1c4e2e7aaeb2d4ccf133bd053b35f84abcfcaae26aeb8a4d1f41e5a7dce786f88908f9475fc018f276b722b837d5c2299eb20f3b23f132e073b03a
|
7
|
+
data.tar.gz: 4aa79a3a98932800b2bba12a09260d5e9c591537256f743cd77a427b7c2afbd06914a3a45632686f8440b8b894f89d6623894bee275f6039c3aa2a19ee47e03f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
##
|
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.
|
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
|
|
data/lib/rubykassa/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|