icapps-translations 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/icapps/translations/http.rb +2 -3
- data/lib/icapps/translations/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: 881b01e5e9dc63b18753dde66533bab77aba5f3a
|
4
|
+
data.tar.gz: aa17373574acc6583e47f3f3219116220b730e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ced344e305f30c7032280219c397d38bb192712c355797f786912ab830b736376baf558a4fdf9f156483438a73cf8827074b7be2a507ad03073bc3c9cc269d
|
7
|
+
data.tar.gz: 5047fd47d853b75f960f99cda3af1cbabf00c84e75e1368cdea69482ddf4038a45f9da0c32e5fac28af4b217114cd00eeeb31fb4f655798ba89e7dfcbd1af8cc
|
@@ -14,9 +14,8 @@ module Icapps
|
|
14
14
|
http = Net::HTTP.new(uri.host, uri.port)
|
15
15
|
http.use_ssl = uri.scheme == 'https'
|
16
16
|
# Disable SSL for now.
|
17
|
-
|
18
|
-
|
19
|
-
request = Net::HTTP::Get.new(uri, ssl_context: ssl_context)
|
17
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
18
|
+
request = Net::HTTP::Get.new(uri)
|
20
19
|
request.add_field 'Authorization', "Token token=#{config.project_key}"
|
21
20
|
response = http.request(request)
|
22
21
|
is_json ? JSON.parse(response.body) : response.body
|