candy_check 0.0.2 → 0.0.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 +4 -4
- data/README.md +1 -1
- data/lib/candy_check/app_store/receipt.rb +6 -0
- data/lib/candy_check/version.rb +1 -1
- data/spec/app_store/receipt_spec.rb +4 -0
- 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: 969308635b85f978891e85242d9c541ce65134e7
|
4
|
+
data.tar.gz: 7b2a51f891d620be0980e38a680cf3afb339989a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
data/lib/candy_check/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|