apple_receipt 0.2.0 → 0.2.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/lib/apple_receipt/validator.rb +2 -1
- data/lib/apple_receipt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c311dbabcbaf9714e8453fb734d832b5888529c4ae550da7a6a21bb2e8cedd8
|
|
4
|
+
data.tar.gz: b108e90ced00f9e637e63521a7f686a1cca79d071750b0ab2a79dcd8a0b6eebb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 480b71baf6e56fbeed27c07cbc4f2513598944fa152e738532cf46265c47039ce34865e7efdc4dba680b0c0b0279b5573f50d68b5eee938b60c930b089f10126
|
|
7
|
+
data.tar.gz: eebd41a576d38e137fd399146030c913011ed0972518c46407be7e8a4274c5b7d1f6661a8b7bed299dd707c79e470dde45e9bddc87e63213202c67ec5cef143c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -11,6 +11,10 @@ These receipts have a different format than [documented](https://developer.apple
|
|
|
11
11
|
App Store receipts you might be familiar with, which are [PKCS #7](https://tools.ietf.org/html/rfc2315)
|
|
12
12
|
containers with a payload (receipt data) encoded using [ASN.1](https://www.itu.int/itu-t/recommendations/rec.aspx?rec=X.690).
|
|
13
13
|
|
|
14
|
+
:warning: Note that this only covers the receipt data (signed data). You should
|
|
15
|
+
not rely on (local) verification for data that is in the notification object, but
|
|
16
|
+
not in the receipt (e.g. `notification_type`).
|
|
17
|
+
|
|
14
18
|
## Installation
|
|
15
19
|
|
|
16
20
|
Add this line to your application's Gemfile:
|
|
@@ -25,7 +25,8 @@ module AppleReceipt
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def add_named_certificate(name)
|
|
28
|
-
|
|
28
|
+
cert_path = File.expand_path("../../certificates/#{name}.cer", __dir__)
|
|
29
|
+
cert_file = File.read(cert_path)
|
|
29
30
|
store.add_cert(OpenSSL::X509::Certificate.new(cert_file))
|
|
30
31
|
end
|
|
31
32
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apple_receipt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Koen Rouwhorst
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|