monza 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +3 -4
- data/lib/monza/transaction_receipt.rb +4 -0
- data/lib/monza/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: 0143904b88a85f488aa9e08255e0b2d098e2b1b1
|
4
|
+
data.tar.gz: 161125c663784859cfbae728e7ec41c0725bb3e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c88bde6f128169ad784fb0c91a7f166f6dfb4a0970d1b0350d01c3877bfa1fa6b8513af92306d11340cb156ee2520e938e701a13a8b019dc93e5fcfcfe77676a
|
7
|
+
data.tar.gz: 2a78937235b619abf32634ad4ed7501d2957dbbc91ff31e356970103ae2eb0735b2331f6b4f0f434e53ef5e380a7f0bcdd04c832bcc00caa963a5902147a6a22
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
|
2
|
-
![travis_status](https://travis-ci.org/gabrielgarza/monza.svg?branch=master)
|
1
|
+
[![Build Status](https://travis-ci.org/gabrielgarza/monza.svg?branch=master)](https://travis-ci.org/gabrielgarza/monza)
|
3
2
|
|
4
3
|
![monza_asset](https://cloud.githubusercontent.com/assets/1076706/16257552/1baa36f8-380e-11e6-8730-cbbd1fe73c6c.png)
|
5
4
|
|
6
5
|
#### Monza is a ruby gem that makes In-App Purchase receipt and Auto-Renewable subscription validation easy.
|
7
6
|
|
8
|
-
You should always validate receipts on the server, in [Apple's words]
|
7
|
+
You should always validate receipts on the server, in [Apple's words](https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1):
|
9
8
|
> Use a trusted server to communicate with the App Store. Using your own server lets you design your app to recognize and trust only your server, and lets you ensure that your server connects with the App Store server. It is not possible to build a trusted connection between a user’s device and the App Store directly because you don’t control either end of that connection.
|
10
9
|
|
11
10
|
## Installation
|
@@ -178,7 +177,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
178
177
|
|
179
178
|
## Contributing
|
180
179
|
|
181
|
-
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](contributor-covenant.org) code of conduct.
|
180
|
+
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.
|
182
181
|
|
183
182
|
TODO:
|
184
183
|
- Need help with testing using rspec
|
@@ -22,6 +22,7 @@ module Monza
|
|
22
22
|
attr_reader :expires_date_ms
|
23
23
|
attr_reader :expires_date_pst
|
24
24
|
attr_reader :is_trial_period
|
25
|
+
attr_reader :cancellation_date
|
25
26
|
|
26
27
|
def initialize(attributes)
|
27
28
|
@quantity = attributes['quantity'].to_i
|
@@ -48,6 +49,9 @@ module Monza
|
|
48
49
|
if attributes['is_trial_period']
|
49
50
|
@is_trial_period = attributes['is_trial_period'].to_bool
|
50
51
|
end
|
52
|
+
if attributes['cancellation_date']
|
53
|
+
@cancellation_date = DateTime.parse(attributes['cancellation_date'])
|
54
|
+
end
|
51
55
|
end # end initialize
|
52
56
|
|
53
57
|
#
|
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.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Garza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|