monza 1.3.3 → 1.3.4
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 +5 -5
- data/README.md +0 -3
- data/lib/monza/renewal_info.rb +8 -1
- data/lib/monza/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: dbed8295d16cca5672b895abfa7f90dc28ca5eabf6e36f05e4fcd5eadf01b98c
|
|
4
|
+
data.tar.gz: f4a6cace88d1ce3664f4576e359cbb7406355015d29f31a2f91a30d9851097e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfe794f5ebf8af1880a65cfe8ca18711c6ed36e33f0a6c57f026a64892f3ace2ee499e73250bda1b9db7918e047461f51d34d9d244c3b53a92b60b1c320d16b5
|
|
7
|
+
data.tar.gz: 7fc5075d7056c6c8b2287770c4115cdc380666970638d72fea0e2c59541091b6fbcdabf7800d2d4cb024d6f6a6801e5894d3d920fc3104edc8f11050d1727ff1
|
data/README.md
CHANGED
|
@@ -188,9 +188,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
188
188
|
|
|
189
189
|
Bug reports and pull requests are welcome on GitHub at https://github.com/gabrielgarza/monza. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
190
190
|
|
|
191
|
-
TODO:
|
|
192
|
-
- Need help with testing using rspec
|
|
193
|
-
|
|
194
191
|
|
|
195
192
|
## License
|
|
196
193
|
|
data/lib/monza/renewal_info.rb
CHANGED
|
@@ -9,6 +9,9 @@ module Monza
|
|
|
9
9
|
attr_reader :original_transaction_id
|
|
10
10
|
attr_reader :is_in_billing_retry_period
|
|
11
11
|
attr_reader :will_renew
|
|
12
|
+
attr_reader :grace_period_expires_date
|
|
13
|
+
attr_reader :grace_period_expires_date_ms
|
|
14
|
+
attr_reader :grace_period_expires_date_pst
|
|
12
15
|
|
|
13
16
|
def initialize(attributes)
|
|
14
17
|
|
|
@@ -16,6 +19,10 @@ module Monza
|
|
|
16
19
|
@auto_renew_product_id = attributes['auto_renew_product_id']
|
|
17
20
|
@original_transaction_id = attributes['original_transaction_id']
|
|
18
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
|
+
|
|
19
26
|
if attributes['expiration_intent']
|
|
20
27
|
@expiration_intent = attributes['expiration_intent']
|
|
21
28
|
end
|
|
@@ -25,7 +32,7 @@ module Monza
|
|
|
25
32
|
end
|
|
26
33
|
|
|
27
34
|
if attributes['auto_renew_status']
|
|
28
|
-
@will_renew = attributes['auto_renew_status'].to_bool
|
|
35
|
+
@will_renew = attributes['auto_renew_status'].to_bool
|
|
29
36
|
end
|
|
30
37
|
end # end initialize
|
|
31
38
|
|
data/lib/monza/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.3.4
|
|
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-
|
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -128,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
128
128
|
- !ruby/object:Gem::Version
|
|
129
129
|
version: '0'
|
|
130
130
|
requirements: []
|
|
131
|
-
|
|
132
|
-
rubygems_version: 2.5.2.3
|
|
131
|
+
rubygems_version: 3.0.3
|
|
133
132
|
signing_key:
|
|
134
133
|
specification_version: 4
|
|
135
134
|
summary: Validate iTunes In-App purchase receipts, including auto-renewable subscriptions,
|