acc 0.1.7 → 0.1.8
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 +8 -8
- data/lib/acc.rb +1 -0
- data/lib/acc/service.rb +2 -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
|
+
NzIwZDgwOGIyZWYwNTgzYmM0YTQ1YzY0NzU4NjhlNzc1NjQ0OThhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjdhY2JlZTQwZGEyYzgyYzM4ZmE1NmY4YWNhMmIxNzgwNmJmNDQwYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGVjODRiY2RjNjU0YmE0MzczYmI0NzQ2OTliM2E3YWY3ZWM4NjlmNmI3NjEz
|
10
|
+
OTc3MGExMGUwMGM4NTEwZjc1ZTllNGZjNzYxYjM5ZTNjMTYxMTc5NmM2ZmRk
|
11
|
+
NjRlNTNmYmY1NjNhNmNjYWE2MzdjMWE4ZTExZWMzMzI0NDlhNTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc1YTUzNDMzZGM4Yzg4YjdjYTY1NzNjNmRiMzI4MDRmMWVlMTVhM2VlZWY5
|
14
|
+
MzExZjNmNWQ5NTk0M2ExNDA3NWUyOTcxMTcyOGU5MWRlODNiNDk2ZTliZTdm
|
15
|
+
NzQyMTVmOWQzNDUyNzMwNGVlMDExZTJmZmY0OWQ0Yzk5NGRmOTg=
|
data/lib/acc.rb
CHANGED
data/lib/acc/service.rb
CHANGED
@@ -20,8 +20,9 @@ class Acc::Service
|
|
20
20
|
private
|
21
21
|
def request url, data
|
22
22
|
http_response = Curl::Easy.perform(url) do |req|
|
23
|
-
req.certpassword = Acc.certificate_password if Acc.certificate_password
|
24
23
|
req.cert = Acc.certificate
|
24
|
+
req.cacert = Acc.ca_certificate if Acc.ca_certificate
|
25
|
+
req.certpassword = Acc.certificate_password if Acc.certificate_password
|
25
26
|
req.post_body = data
|
26
27
|
req.headers['Content-Type'] = 'application/json'
|
27
28
|
end
|
data/lib/acc/version.rb
CHANGED