monza 1.1.2 → 1.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0143904b88a85f488aa9e08255e0b2d098e2b1b1
4
- data.tar.gz: 161125c663784859cfbae728e7ec41c0725bb3e7
3
+ metadata.gz: 6310733b91ee0e2693424b6e76816e4f2d54a3a3
4
+ data.tar.gz: dbc0ef6617ddd2ee490045a05f9f95d2dae7286a
5
5
  SHA512:
6
- metadata.gz: c88bde6f128169ad784fb0c91a7f166f6dfb4a0970d1b0350d01c3877bfa1fa6b8513af92306d11340cb156ee2520e938e701a13a8b019dc93e5fcfcfe77676a
7
- data.tar.gz: 2a78937235b619abf32634ad4ed7501d2957dbbc91ff31e356970103ae2eb0735b2331f6b4f0f434e53ef5e380a7f0bcdd04c832bcc00caa963a5902147a6a22
6
+ metadata.gz: 828839e92a07a4686e7e42f3a8e13241f7777785b230186e274a57e41b5c4cddb09d529d4271a4d74efd59c372b3e996f3ae2a7758af769e028b54b9bae16a94
7
+ data.tar.gz: 7670f2ac2bdb93b371c1af0e97b49bcb7742efe60826f781d2cbb6f86846667db3888cd2a8c88d82cafdb1d6841d517f33d03c4e5e105d5637960fdd1dc74f65
data/README.md CHANGED
@@ -33,6 +33,7 @@ options = { shared_secret: "your shared secret" }
33
33
  response = Monza::Receipt.verify(data, options)
34
34
 
35
35
  ```
36
+ You can also pass in `exclude-old-transactions` as an option in the options hash for [iOS7 style app receipts](https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW3).
36
37
 
37
38
  ##### Useful Methods
38
39
  ```ruby
data/lib/monza/client.rb CHANGED
@@ -52,6 +52,7 @@ module Monza
52
52
  }
53
53
 
54
54
  parameters['password'] = options[:shared_secret] if options[:shared_secret]
55
+ parameters['exclude-old-transactions'] = options[:exclude_old_transactions] if options[:exclude_old_transactions]
55
56
 
56
57
  uri = URI(@verification_url)
57
58
  http = Net::HTTP.new(uri.host, uri.port)
data/lib/monza/config.rb CHANGED
@@ -5,7 +5,6 @@ module Monza
5
5
 
6
6
  # Set default for Time zone if none has been set
7
7
  # Default is UTC
8
- Time.zone = Time.zone ? Time.zone : "UTC"
9
-
8
+ Time.zone_default ||= Time.find_zone!("UTC")
10
9
 
11
10
  end
data/lib/monza/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Monza
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
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.1.2
4
+ version: 1.1.3
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-08-15 00:00:00.000000000 Z
11
+ date: 2017-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json