offsite_payments 2.7.17 → 2.7.18

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
  SHA256:
3
- metadata.gz: 4213158bdf6bb96d6ede38f1865b9450eea0b83098e0924d6c6aec9f036f33eb
4
- data.tar.gz: cd17f05f747ac7fdc854f698eb90ee1a511d01d53b2b32effcb42f828f6e6f21
3
+ metadata.gz: 55aabff0757cb2fdfaf8140a9b30c04c299f7db11b73a2630a7856d53528f787
4
+ data.tar.gz: 872ee789d71f3aa8970577aa1174337c9dcd194d4333710765d4082b8e38da0b
5
5
  SHA512:
6
- metadata.gz: cb3e96d540f52cb205fb52b9982b17e021d270e0f45e7addff0bd55914bf3517e0029944ed45b78dc853b3b1d9eaa2385eda2a4fdc0797316505e5a6c793d727
7
- data.tar.gz: ae923e095b48379cea5ba42f486d4cb15e4a82d4e39caa84250c3a4b918492ee851d9dcdb36d313fdf7c3ea8551b31c28352a8285848e142c5f95c9826df2bcc
6
+ metadata.gz: 1f298846423be88261b0895083a5487cc3ab113a00c55477f47ca7d8a52221da105cff8a3227907e4de1a2953db46e2fa3070138b3f58865f7690b9b30ac056b
7
+ data.tar.gz: 8df5566857389d8b8badbe73e38628b8f37fc21e7c652fad8f855551f5716b6cf723784c2d80e462e50ca528108aab60400b78a4e7b1c0a5fce7ccc2e10dd0fa
@@ -159,7 +159,9 @@ module OffsitePayments #:nodoc:
159
159
  private
160
160
  def parse(body)
161
161
  @raw = body
162
- @params = JSON.parse(@raw)['data']
162
+ json = JSON.parse(@raw)
163
+
164
+ @params = json.key?('data') ? json['data'] : json
163
165
  end
164
166
 
165
167
  def comparable_data
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.7.17"
2
+ VERSION = "2.7.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: offsite_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.17
4
+ version: 2.7.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-10 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport