acc 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/acc.rb +1 -1
- data/lib/acc/service.rb +1 -1
- data/lib/acc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzM2Yjk5ZmY2OWQyYWUzZmU3ZjRjYmRiM2U1NDQxYTg2Y2M4ZjcyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTY4MTQ0ZmUxOTJkYjFhMjBlN2ExOWZhOWExMzUxNzk2NWY5MGE0ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YThmMWNiOTBhMDI2MGYyYzQ2Yzk2MDMyN2VmNzNlODJlNzBkMmQ3NWE3Mzkw
|
10
|
+
ZGMyMzVlOTFkNzk3Y2JmMTBmODA0MzM3NWVhMzdkZGNlYjUyN2U3ZDU4YWJh
|
11
|
+
ZDAzOWQ0MzAwOGZiNTRkOTI4MjFjODBjMTYyODdlODdhYjVmYzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDU4YWFiOGJlYzdhZTUzZDU5NTZmNDhmMTZhYzk2NzEzOTc4N2VkMjI5ZTlm
|
14
|
+
Njg0NDcxMGE1Yjk0OTM3ZGQzYzY3MGJiMjE5YjQ4ZDAzMzU5NDhmZGNkMGY5
|
15
|
+
MDE1MDU5NWM2N2U4ZTRiODAyZmJhMTU1ZTU2NTdmY2U3ZjI4NzI=
|
data/lib/acc.rb
CHANGED
@@ -12,7 +12,7 @@ module Acc
|
|
12
12
|
self.show_order_endpoint = 'https://api-applecareconnect-ept.apple.com/enroll-service/1.0/show-order-details'
|
13
13
|
|
14
14
|
mattr_accessor :certificate
|
15
|
-
mattr_accessor :
|
15
|
+
mattr_accessor :certificate_key
|
16
16
|
mattr_accessor :certificate_password
|
17
17
|
|
18
18
|
def self.setup
|
data/lib/acc/service.rb
CHANGED
@@ -21,7 +21,7 @@ class Acc::Service
|
|
21
21
|
def request url, data
|
22
22
|
http_response = Curl::Easy.perform(url) do |req|
|
23
23
|
req.cert = Acc.certificate
|
24
|
-
req.
|
24
|
+
req.certificate_key = Acc.certificate_key if Acc.certificate_key
|
25
25
|
req.certpassword = Acc.certificate_password if Acc.certificate_password
|
26
26
|
req.post_body = data
|
27
27
|
req.headers['Content-Type'] = 'application/json'
|
data/lib/acc/version.rb
CHANGED