controls 1.7.5 → 1.7.6
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/lib/controls/client.rb +3 -1
- data/lib/controls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3090d635c0d18a35479c7821930b53e1068ccae
|
|
4
|
+
data.tar.gz: 68c3be9f61e4e37ded0aaa335f540fe5016e7f78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0bc75c87fd92513706d4864e2b7ddccaa66b9c7aaeaba61cd12ceb2e1d913b168e22d02b173fc2818c1b7726f3798693bf5e00f0c2614fe7d67da296022bf73
|
|
7
|
+
data.tar.gz: 90f11277cc0112b547aa5db0a8e72b1054fabf391c357aa658bd8624868b29433800f677174fc954895a9e0d91ba6a8ec331316e647bce368dc3d2b717bdccb5
|
data/lib/controls/client.rb
CHANGED
|
@@ -133,7 +133,9 @@ module Controls
|
|
|
133
133
|
fail exception('Invalid content-type error')
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
resp.status
|
|
136
|
+
return resp.status if resp.status == 200
|
|
137
|
+
|
|
138
|
+
Response.parse(resp.body, path)
|
|
137
139
|
rescue Faraday::Error::ConnectionFailed => e
|
|
138
140
|
if e.message =~ /^SSL_connect/
|
|
139
141
|
warn(*SSL_WARNING)
|
data/lib/controls/version.rb
CHANGED