icapps-translations 0.2.3 → 0.2.4
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 +3 -0
- 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: c232dbf106e8af4489f2c05f775dde38193db846
|
4
|
+
data.tar.gz: 2fe075b9ae2fbc36fd94077218e99a99ed429121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ce0260f1a8f75a5e1e744039ed5e1af95fe1aceb225b939553d641cd8bede49b081ae53329ecb6a35817beffb0841ba044256c4bd8f83da66973518382c612
|
7
|
+
data.tar.gz: edb37ef1bb8fcb7ae0efb8272cc0b6078444bdbfdaefd078a64e83d1c0c9d1f5f7ce1f0d54df4b585168fb41be5a7753b41933954d04f93e543466736c48828a
|
@@ -1,12 +1,15 @@
|
|
1
1
|
require 'colorize'
|
2
2
|
require 'net/http'
|
3
3
|
require 'json'
|
4
|
+
require 'openssl'
|
4
5
|
|
5
6
|
module Icapps
|
6
7
|
module Translations
|
7
8
|
class Http
|
8
9
|
class << self
|
9
10
|
def authenticated_response(path, is_json = false)
|
11
|
+
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
12
|
+
|
10
13
|
uri = URI("#{config.url}/#{path}")
|
11
14
|
puts "[VERBOSE] Connecting to url '#{uri}'.".colorize(:white) if options[:verbose]
|
12
15
|
|