candy_check 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 41d1f7faf73085f4926d3067f7a8fee741130dcf
4
- data.tar.gz: b24506e17a0cf66931b1000514bc341766cc9cb4
3
+ metadata.gz: 969308635b85f978891e85242d9c541ce65134e7
4
+ data.tar.gz: 7b2a51f891d620be0980e38a680cf3afb339989a
5
5
  SHA512:
6
- metadata.gz: 5509c6dc5e3530da73b7770690f520efe5d480c1ac5f2771404af38754088a9e289e36acebdaa2c425d246b26fc305e46e27dfdb3589b9ed52f1bbafaff74adf
7
- data.tar.gz: 2c92efbe856d8b2f7039429eeedd4d8c5b46a5ddfd860549bcbee8aaebd5a1d406aada06a242dd0c24c86098f8a7c44b0a279858ac5dd29e0ba5e64197c8bf93
6
+ metadata.gz: ab94b279bcdc25ad5743bc626948a5a9f74a8dba47d5645ba9f0b71ff1764de46ab48a4e0183e167c08386969407264b02466d8020c155f8c320f9da438f2b42
7
+ data.tar.gz: 6480da7126d6796de02df876612813bfbd42e65a893186adebefcda54342263703265948779f576a527360172e3d7a5c4545d21df15c4d37a2bc4f0b43c09a2e
data/README.md CHANGED
@@ -23,7 +23,7 @@ Google's PlayStore.
23
23
 
24
24
  ### AppStore
25
25
 
26
- If you have set up an iOS app and it's in-app items correctly and the in-app store is working your app should receive a
26
+ If you have set up an iOS app and its in-app items correctly and the in-app store is working your app should receive a
27
27
  `SKPaymentTransaction`. Currently this gem assumes that you use the old [`transactionReceipt`](https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKPaymentTransaction_Class/index.html#//apple_ref/occ/instp/SKPaymentTransaction/transactionReceipt)
28
28
  which is returned per transaction. The `transactionReceipt` is a base64 encoded binary blob which you should send to your
29
29
  server for the validation process.
@@ -46,6 +46,12 @@ module CandyCheck
46
46
  read('bid')
47
47
  end
48
48
 
49
+ # The app's identifier of the product (SKU)
50
+ # @return [String]
51
+ def product_id
52
+ read('product_id')
53
+ end
54
+
49
55
  # The app's item id of the product
50
56
  # @return [String]
51
57
  def item_id
@@ -1,4 +1,4 @@
1
1
  module CandyCheck
2
2
  # The current gem's version
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
@@ -36,6 +36,10 @@ describe CandyCheck::AppStore::Receipt do
36
36
  subject.item_id.must_equal 'some_item_id'
37
37
  end
38
38
 
39
+ it 'returns the item\'s product_id' do
40
+ subject.product_id.must_equal 'some_product'
41
+ end
42
+
39
43
  it 'returns the quantity' do
40
44
  subject.quantity.must_equal 1
41
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candy_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Thiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json