payanyway 2.3.0 → 2.3.1

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: 4e33b66444fe5d3e523b35f0c073aa7aea22980f
4
- data.tar.gz: 332ff3a34247a16adb5e56cd2db721475c05e394
3
+ metadata.gz: 940c99e2845ef2942535b59671c8e3a799af4534
4
+ data.tar.gz: f2b82833fbf424bb0bb4b8b8097061f040b1b10c
5
5
  SHA512:
6
- metadata.gz: e1a4978bbc46b43539635e57124547da095d1341bb78edc3c11ea6ab78da1fe394c5a8865ec63fd59d9624468ae9927a0717d99467a03751d384668f2017e55c
7
- data.tar.gz: 8591c4065a4096d72f12f6e8eec6b5388446006b978cc73c291f90c397b77fa2e636a6d610ae4b6f159a37485539d83f60807513f7a81732beb92085c9bf8086
6
+ metadata.gz: 35b82ada3ad1321b4eb7906af84518f0d4369d82340c8b3986bdc01cbea202432d160a9f0232487885857df97ca392083d72e5e1f7ef2314e5e4de23cd266777
7
+ data.tar.gz: a30941f8bfa50c72d43ffe9216b1619289a73078bbe2910eed20d7d464373358bff40b5c8fb6729fffdf4973186991ade3d2aab7a356037c95c67cd7d0ccb643
@@ -43,7 +43,7 @@ module Payanyway
43
43
  def response(attr)
44
44
  # Возвращает Nokogiri::XML документ
45
45
  # * _attr[:amount] - сумма заказа
46
- # * _attr[:state] - статус платежа(см. RESPONSE_CODE)
46
+ # * _attr[:state] - статус платежа (см. RESPONSE_CODE)
47
47
  # * _attr[:description] - Произвольное описание заказа (необязятельно)
48
48
  # * _attr[:attributes] - Произвольный атрибуты заказа (необязятельно)
49
49
 
@@ -63,9 +63,8 @@ module Payanyway
63
63
  private
64
64
 
65
65
  def validate_status!(state)
66
- if RESPONSE_CODE.keys.exclude?(state.to_sym)
67
- raise Payanyway::Response::InvalidState.new("PAYANYWAY: Invalid response state! State must be eq #{ RESPONSE_CODE.keys }")
68
- end
66
+ return if RESPONSE_CODE.keys.include?(state.to_s.to_sym)
67
+ raise Payanyway::Response::InvalidState.new("PAYANYWAY: Invalid response state! State must be eq #{ RESPONSE_CODE.keys }")
69
68
  end
70
69
 
71
70
  def base_xml(amount, state, description)
@@ -1,3 +1,3 @@
1
1
  module Payanyway
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payanyway
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssnikolay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails