iap_verifier 0.1.0 → 0.2.0

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: 4951fa0f326439b77257ec09b2cf503bf942f882
4
- data.tar.gz: 50009ed0d7179d493c1c85b0406e096ac9978bf2
3
+ metadata.gz: d89828b0eed3faefdafd855ad7de9e956a098557
4
+ data.tar.gz: f1fec54b3ebbcc1aa7dad8538062e73e3cdcd3fe
5
5
  SHA512:
6
- metadata.gz: 276482624fe91f3bd69ec260863e33326ffccc0d43214d7554ac2b0a46a8c94865485066d945e3e5036c40eb7d83ef2e7ed97db7d09bbc56b03d9c504e7ec120
7
- data.tar.gz: ad8740fe7208e92de618ab536ae08af7c627b3d2c0a274b8c4752211597f7a249a97123c362fc48724030646dbe2bf4fda7fd74422633b5270b2b3d71b44692d
6
+ metadata.gz: d37bf0595895be84ae763af57d5d7fd4f7829b2b0f76695ab35e839f0dc1803de41ed6c443476b85408111e8c20cd4d38516660239f5ebcfe88b4d42493a468c
7
+ data.tar.gz: 8e376237522bd58407ebfeca8a549529e7beba250977f019a47f3fb8008c7b081c54f6934416bf304b36761571146702f85c222f6cdd748bd706fa4a0852b581
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## v0.2.0
6
+
7
+ * Fixes OpenSSL::SSL::SSLError [#1](https://github.com/linjunpop/iap_verifier/pull/1)
8
+ * curb is not thread-safe, [httpclient](https://github.com/nahi/httpclient) does.
9
+
5
10
  ## v0.1.0
6
11
 
7
12
  * Use [oj](https://github.com/ohler55/oj) to load JSON.
data/iap_verifier.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency 'curb'
21
+ spec.add_runtime_dependency 'httpclient'
22
22
  spec.add_runtime_dependency 'oj'
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.6"
@@ -1,5 +1,5 @@
1
1
  require 'json'
2
- require 'curb'
2
+ require 'httpclient'
3
3
  require 'oj'
4
4
 
5
5
  module IAPVerifier
@@ -32,13 +32,15 @@ module IAPVerifier
32
32
  end
33
33
 
34
34
  def verify(request_data, url)
35
- http = Curl.post(url, request_data.to_json) do |client|
36
- client.headers['Content-Type'] = "application/json"
37
- client.headers['Accept'] = "application/json"
38
- end
39
- response = http.body_str
40
-
41
- ResponseData.new(Oj.load(response))
35
+ http = HTTPClient.new
36
+ http.ssl_config.ssl_version = :TLSv1
37
+ response = http.post(
38
+ url,
39
+ body: request_data.to_json,
40
+ header: {'Content-Type' => "application/json", 'Accept' => 'application/json'}
41
+ )
42
+
43
+ ResponseData.new(Oj.load(response.content))
42
44
  end
43
45
  end
44
46
  end
@@ -1,3 +1,3 @@
1
1
  module IAPVerifier
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -7,19 +7,23 @@ http_interactions:
7
7
  encoding: UTF-8
8
8
  string: '{"receipt-data":"MIIVNAYJKoZIhvcNAQcCoIIVJTCCFSECAQExCzAJBgUrDgMCGgUAMIIE5QYJKoZIhvcNAQcBoIIE1gSCBNIxggTOMAoCAQgCAQEEAhYAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgELAgEBBAMCAQAwCwIBDgIBAQQDAgFZMAsCAQ8CAQEEAwIBADALAgEQAgEBBAMCAQAwCwIBGQIBAQQDAgEDMAwCAQoCAQEEBBYCNCswDQIBDQIBAQQFAgMBOIAwDQIBEwIBAQQFDAMxLjAwDgIBAwIBAQQGDAQxMjQxMA4CAQkCAQEEBgIEUDIzMTAYAgEEAgECBBA333I4ik/3twkl0RwHk8mDMBsCAQACAQEEEwwRUHJvZHVjdGlvblNhbmRib3gwHAIBBQIBAQQU/ReKwsH9zCfv3CvI39VK0idlTy8wHgIBDAIBAQQWFhQyMDE0LTA5LTAyVDAzO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rDgMCGgUAMA0GCSqGSIb3DQEBAQUABIIBAI3jSNG+zjySDtzFNy3TDadg5rXHnv+HJ+qkP2fU8rsY4HtKGG4m+O4BqRlYboxyE1SkZfkSmx/XVqNbZoSjqBKb/2PWriKk/Q0HU3GTEgF8A2YcLZ/nyq+HJUXCww6jvwiRAZHvzvrD71DDvInuyRtSgS3CVx2VKlh4rbwpm5gy/JeDi0zDVs2Z1oygDv028SH9/56ZgcdzXAcSsPw/04dzqzCbaJH9XcJWnc2M2J/A0z8cma+dD0/uZRKnIFmLz5LyEeL39jfBcBDl73tUooti4+ac9Wp1OmdjQujZ9tC8zLKkSnhYCzb0RZp/c2Wjt/UnexeUOE1G5jbJPhNa7Fg="}'
9
9
  headers:
10
- Content-Type:
11
- - application/json
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.4.0, ruby 2.1.3 (2014-09-19))
12
12
  Accept:
13
13
  - application/json
14
+ Date:
15
+ - Thu, 16 Oct 2014 06:07:49 GMT
16
+ Content-Type:
17
+ - application/json
14
18
  response:
15
19
  status:
16
20
  code: 200
17
21
  message: Apple WebObjects
18
22
  headers:
19
23
  X-Apple-Jingle-Correlation-Key:
20
- - ZOTO3YOBKT7UO
24
+ - 4ZITR2BTAHZC2
21
25
  Pod:
22
- - '30'
26
+ - '34'
23
27
  X-Apple-Translated-Wo-Url:
24
28
  - "/WebObjects/MZFinance.woa/wa/verifyReceipt"
25
29
  X-Apple-Orig-Url:
@@ -30,12 +34,13 @@ http_interactions:
30
34
  - cache-maxage=0
31
35
  - no-store
32
36
  Date:
33
- - Mon, 13 Oct 2014 10:58:04 GMT
37
+ - Thu, 16 Oct 2014 06:07:52 GMT
34
38
  Set-Cookie:
35
- - ns-mzf-inst=39-90-80-124-128-8166-302303-30-nk11; version=1; Max-Age=1800;
39
+ - NSC_nagjobodf-bopo-qppm*0=ffffffff1292397b45525d5f4f58455e445a4a423660;path=/;secure;httponly
40
+ - ns-mzf-inst=39-106-80-124-139-8218-342496-34-nk11; version=1; Max-Age=1800;
36
41
  path=/; domain=.apple.com; httponly
37
42
  Apple-Timing-App:
38
- - 1790 ms
43
+ - 24 ms
39
44
  Cache-Control:
40
45
  - max-age=0
41
46
  - must-revalidate
@@ -44,26 +49,26 @@ http_interactions:
44
49
  - no-transform
45
50
  - private
46
51
  Expires:
47
- - Mon, 13 Oct 2014 10:58:04 GMT
52
+ - Thu, 16 Oct 2014 06:07:52 GMT
48
53
  X-Apple-Lokamai-No-Cache:
49
54
  - 'true'
50
55
  X-Apple-Application-Instance:
51
- - '302303'
56
+ - '342496'
52
57
  X-Frame-Options:
53
58
  - SAMEORIGIN
54
59
  Itspod:
55
- - '30'
60
+ - '34'
56
61
  X-Webobjects-Loadaverage:
57
- - '30'
62
+ - '20'
58
63
  Connection:
59
64
  - keep-alive
60
65
  Content-Length:
61
66
  - '16'
62
67
  body:
63
- encoding: ASCII-8BIT
68
+ encoding: UTF-8
64
69
  string: '{"status":21007}'
65
70
  http_version:
66
- recorded_at: Mon, 13 Oct 2014 10:58:05 GMT
71
+ recorded_at: Thu, 16 Oct 2014 06:07:52 GMT
67
72
  - request:
68
73
  method: post
69
74
  uri: https://sandbox.itunes.apple.com/verifyReceipt
@@ -71,17 +76,21 @@ http_interactions:
71
76
  encoding: UTF-8
72
77
  string: '{"receipt-data":"MIIVNAYJKoZIhvcNAQcCoIIVJTCCFSECAQExCzAJBgUrDgMCGgUAMIIE5QYJKoZIhvcNAQcBoIIE1gSCBNIxggTOMAoCAQgCAQEEAhYAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgELAgEBBAMCAQAwCwIBDgIBAQQDAgFZMAsCAQ8CAQEEAwIBADALAgEQAgEBBAMCAQAwCwIBGQIBAQQDAgEDMAwCAQoCAQEEBBYCNCswDQIBDQIBAQQFAgMBOIAwDQIBEwIBAQQFDAMxLjAwDgIBAwIBAQQGDAQxMjQxMA4CAQkCAQEEBgIEUDIzMTAYAgEEAgECBBA333I4ik/3twkl0RwHk8mDMBsCAQ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BgNVBAMMO0FwcGxlIFdvcmxkd2lkZSBEZXZlbG9wZXIgUmVsYXRpb25zIENlcnRpZmljYXRpb24gQXV0aG9yaXR5AggYWUMhcnSc/DAJBgUrDgMCGgUAMA0GCSqGSIb3DQEBAQUABIIBAI3jSNG+zjySDtzFNy3TDadg5rXHnv+HJ+qkP2fU8rsY4HtKGG4m+O4BqRlYboxyE1SkZfkSmx/XVqNbZoSjqBKb/2PWriKk/Q0HU3GTEgF8A2YcLZ/nyq+HJUXCww6jvwiRAZHvzvrD71DDvInuyRtSgS3CVx2VKlh4rbwpm5gy/JeDi0zDVs2Z1oygDv028SH9/56ZgcdzXAcSsPw/04dzqzCbaJH9XcJWnc2M2J/A0z8cma+dD0/uZRKnIFmLz5LyEeL39jfBcBDl73tUooti4+ac9Wp1OmdjQujZ9tC8zLKkSnhYCzb0RZp/c2Wjt/UnexeUOE1G5jbJPhNa7Fg="}'
73
78
  headers:
74
- Content-Type:
75
- - application/json
79
+ User-Agent:
80
+ - HTTPClient/1.0 (2.4.0, ruby 2.1.3 (2014-09-19))
76
81
  Accept:
77
82
  - application/json
83
+ Date:
84
+ - Thu, 16 Oct 2014 06:07:52 GMT
85
+ Content-Type:
86
+ - application/json
78
87
  response:
79
88
  status:
80
89
  code: 200
81
90
  message: Apple WebObjects
82
91
  headers:
83
92
  X-Apple-Jingle-Correlation-Key:
84
- - 6TKXESZFKJHNO
93
+ - ECEMD4A33PCQ4
85
94
  Pod:
86
95
  - '100'
87
96
  X-Apple-Translated-Wo-Url:
@@ -94,13 +103,13 @@ http_interactions:
94
103
  - cache-maxage=0
95
104
  - no-store
96
105
  Set-Cookie:
97
- - Pod=100; version="1"; expires=Thu, 13-Nov-2014 11:58:07 GMT; path=/; domain=.apple.com
98
- - itspod=100; version="1"; expires=Thu, 13-Nov-2014 11:58:07 GMT; path=/; domain=.apple.com
106
+ - Pod=100; version="1"; expires=Sun, 16-Nov-2014 07:07:54 GMT; path=/; domain=.apple.com
107
+ - itspod=100; version="1"; expires=Sun, 16-Nov-2014 07:07:54 GMT; path=/; domain=.apple.com
99
108
  - mzf_dr=0; version="1"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects;
100
109
  domain=.apple.com
101
- - mzf_in=990200; version="1"; path=/WebObjects; domain=.apple.com; secure
110
+ - mzf_in=990197; version="1"; path=/WebObjects; domain=.apple.com; secure
102
111
  Apple-Timing-App:
103
- - 1186 ms
112
+ - 10 ms
104
113
  Cache-Control:
105
114
  - max-age=0
106
115
  - must-revalidate
@@ -109,11 +118,11 @@ http_interactions:
109
118
  - no-transform
110
119
  - private
111
120
  Expires:
112
- - Mon, 13 Oct 2014 10:58:07 GMT
121
+ - Thu, 16 Oct 2014 06:07:54 GMT
113
122
  X-Apple-Lokamai-No-Cache:
114
123
  - 'true'
115
124
  X-Apple-Application-Instance:
116
- - '990200'
125
+ - '990197'
117
126
  X-Frame-Options:
118
127
  - SAMEORIGIN
119
128
  Itspod:
@@ -125,14 +134,14 @@ http_interactions:
125
134
  Content-Length:
126
135
  - '1580'
127
136
  Date:
128
- - Mon, 13 Oct 2014 10:58:07 GMT
137
+ - Thu, 16 Oct 2014 06:07:54 GMT
129
138
  body:
130
- encoding: ASCII-8BIT
139
+ encoding: UTF-8
131
140
  string: "{\"status\":0, \"environment\":\"Sandbox\", \n\"receipt\":{\"receipt_type\":\"ProductionSandbox\",
132
141
  \"adam_id\":0, \"app_item_id\":0, \"bundle_id\":\"com.sumiapp.GridDiary\",
133
142
  \"application_version\":\"1241\", \"download_id\":0, \"version_external_identifier\":0,
134
- \"request_date\":\"2014-10-13 10:58:07 Etc/GMT\", \"request_date_ms\":\"1413197887377\",
135
- \"request_date_pst\":\"2014-10-13 03:58:07 America/Los_Angeles\", \"original_purchase_date\":\"2013-08-01
143
+ \"request_date\":\"2014-10-16 06:07:54 Etc/GMT\", \"request_date_ms\":\"1413439674604\",
144
+ \"request_date_pst\":\"2014-10-15 23:07:54 America/Los_Angeles\", \"original_purchase_date\":\"2013-08-01
136
145
  07:00:00 Etc/GMT\", \"original_purchase_date_ms\":\"1375340400000\", \"original_purchase_date_pst\":\"2013-08-01
137
146
  00:00:00 America/Los_Angeles\", \"original_application_version\":\"1.0\",
138
147
  \n\"in_app\":[\n{\"quantity\":\"1\", \"product_id\":\"com.sumiapp.GridDiary.pro\",
@@ -148,5 +157,5 @@ http_interactions:
148
157
  Etc/GMT\", \"original_purchase_date_ms\":\"1409628546000\", \"original_purchase_date_pst\":\"2014-09-01
149
158
  20:29:06 America/Los_Angeles\", \"is_trial_period\":\"false\"}]}}"
150
159
  http_version:
151
- recorded_at: Mon, 13 Oct 2014 10:58:07 GMT
160
+ recorded_at: Thu, 16 Oct 2014 06:07:55 GMT
152
161
  recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iap_verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: curb
14
+ name: httpclient
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.4.2
188
+ rubygems_version: 2.2.2
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: In-App Purchase receipt verification.