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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzIwZDgwOGIyZWYwNTgzYmM0YTQ1YzY0NzU4NjhlNzc1NjQ0OThhNw==
4
+ MzM2Yjk5ZmY2OWQyYWUzZmU3ZjRjYmRiM2U1NDQxYTg2Y2M4ZjcyZg==
5
5
  data.tar.gz: !binary |-
6
- MjdhY2JlZTQwZGEyYzgyYzM4ZmE1NmY4YWNhMmIxNzgwNmJmNDQwYg==
6
+ NTY4MTQ0ZmUxOTJkYjFhMjBlN2ExOWZhOWExMzUxNzk2NWY5MGE0ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGVjODRiY2RjNjU0YmE0MzczYmI0NzQ2OTliM2E3YWY3ZWM4NjlmNmI3NjEz
10
- OTc3MGExMGUwMGM4NTEwZjc1ZTllNGZjNzYxYjM5ZTNjMTYxMTc5NmM2ZmRk
11
- NjRlNTNmYmY1NjNhNmNjYWE2MzdjMWE4ZTExZWMzMzI0NDlhNTk=
9
+ YThmMWNiOTBhMDI2MGYyYzQ2Yzk2MDMyN2VmNzNlODJlNzBkMmQ3NWE3Mzkw
10
+ ZGMyMzVlOTFkNzk3Y2JmMTBmODA0MzM3NWVhMzdkZGNlYjUyN2U3ZDU4YWJh
11
+ ZDAzOWQ0MzAwOGZiNTRkOTI4MjFjODBjMTYyODdlODdhYjVmYzE=
12
12
  data.tar.gz: !binary |-
13
- MTc1YTUzNDMzZGM4Yzg4YjdjYTY1NzNjNmRiMzI4MDRmMWVlMTVhM2VlZWY5
14
- MzExZjNmNWQ5NTk0M2ExNDA3NWUyOTcxMTcyOGU5MWRlODNiNDk2ZTliZTdm
15
- NzQyMTVmOWQzNDUyNzMwNGVlMDExZTJmZmY0OWQ0Yzk5NGRmOTg=
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 :ca_certificate
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.cacert = Acc.ca_certificate if Acc.ca_certificate
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
@@ -1,3 +1,3 @@
1
1
  module Acc
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud MESUREUR