apple_receipt 0.2.0 → 0.2.1

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: f3234acf1d422b851c6e997c905ee974df3be03d446431d894498bf1f0e7e61e
4
- data.tar.gz: db024ff11f3ae9a78a98275c9feb9f7fef8d536949a895866ad760a16d3eb185
3
+ metadata.gz: 0c311dbabcbaf9714e8453fb734d832b5888529c4ae550da7a6a21bb2e8cedd8
4
+ data.tar.gz: b108e90ced00f9e637e63521a7f686a1cca79d071750b0ab2a79dcd8a0b6eebb
5
5
  SHA512:
6
- metadata.gz: b7fdcd0d79dee2feedc4c95e8aebd124b58790fc0e12c916fe0a2f948db329eb4a859f299f09507019ee49e8f76809f0e630987d17cfac1267989f0765223cee
7
- data.tar.gz: 551a6353876874102e79864b16dca85487054ed6d975a927b2b9ed69bbe22b5228e8aae820c5da249d8627a470e90694dd5ab7e0020bebc7a80f44525ad520f6
6
+ metadata.gz: 480b71baf6e56fbeed27c07cbc4f2513598944fa152e738532cf46265c47039ce34865e7efdc4dba680b0c0b0279b5573f50d68b5eee938b60c930b089f10126
7
+ data.tar.gz: eebd41a576d38e137fd399146030c913011ed0972518c46407be7e8a4274c5b7d1f6661a8b7bed299dd707c79e470dde45e9bddc87e63213202c67ec5cef143c
@@ -1,5 +1,9 @@
1
1
  # Apple Receipt changelog
2
2
 
3
+ ## v0.2.1
4
+
5
+ - Fixed path to bundled certificates [\#10](https://github.com/koenrh/apple_receipt/pull/10)
6
+
3
7
  ## v0.2.0
4
8
 
5
9
  - Added ISC license [\#5](https://github.com/koenrh/apple_receipt/pull/5)
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
- cert_file = File.read("./certificates/#{name}.cer")
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppleReceipt
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2018-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json