monza 1.3.5 → 1.3.6

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: 769555dc3f70b49eca1e65ff68fd2457c1a7431b008b6b3c6c943055d58136cb
4
- data.tar.gz: 53621e0f8ead64281a36222c4da10c78822752604c01a59dcceba80cfccc0f02
3
+ metadata.gz: f7eb3c42faa182696449307917a570e0a8a9206d7d49aad26300e0137939621c
4
+ data.tar.gz: 4a9e08e3b637335402e1b34c078c8c990a80a121d5054e76e5ff38329014902c
5
5
  SHA512:
6
- metadata.gz: cca8f19dbdf24cef60a4e057ec38e2ddb042ec92ab01ca332d391bbcd10d422d2a2f2be0fd96431ce80ecc0d9be0b48beb4705318262f61a2b8df6183fa6c500
7
- data.tar.gz: 8b7ba03d6966f7ffdffe4fc62f698143c221cef564da4949ed9bbb1695f7fbfafb8783038a726c362c1c01bae4c6f36e2cb649730167d1e6da11058d3a6dc0d4
6
+ metadata.gz: ddd4c029f5d1006b3f2cf062567638731917e5306a0ae542b4a9bdec9b4d6d15f24064926045861ef88dc8f0d061b57aff20901f5982e93cce752d8266ba3804
7
+ data.tar.gz: c068e9330a65d54b594fcde47a31f57a6618ddf0652499d97d08b0bc7cb874de8d79cd395489a1925b0ba2454a80a24d634b99a160bbcf9134278ec893fab327
@@ -19,10 +19,15 @@ module Monza
19
19
  @auto_renew_product_id = attributes['auto_renew_product_id']
20
20
  @original_transaction_id = attributes['original_transaction_id']
21
21
 
22
- @grace_period_expires_date = DateTime.parse(attributes['grace_period_expires_date'])
23
- @grace_period_expires_date_ms = Time.zone.at(attributes['grace_period_expires_date_ms'].to_i / 1000)
24
- @grace_period_expires_date_pst = DateTime.parse(attributes['grace_period_expires_date_pst'].gsub("America/Los_Angeles","PST"))
25
-
22
+ if attributes['grace_period_expires_date']
23
+ @grace_period_expires_date = DateTime.parse(attributes['grace_period_expires_date'])
24
+ end
25
+ if attributes['grace_period_expires_date_ms']
26
+ @grace_period_expires_date_ms = Time.zone.at(attributes['grace_period_expires_date_ms'].to_i / 1000)
27
+ end
28
+ if attributes['grace_period_expires_date_pst']
29
+ @grace_period_expires_date_pst = DateTime.parse(attributes['grace_period_expires_date_pst'].gsub("America/Los_Angeles","PST"))
30
+ end
26
31
  if attributes['expiration_intent']
27
32
  @expiration_intent = attributes['expiration_intent']
28
33
  end
data/lib/monza/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Monza
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monza
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Garza
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json