icapps-translations 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c232dbf106e8af4489f2c05f775dde38193db846
4
- data.tar.gz: 2fe075b9ae2fbc36fd94077218e99a99ed429121
3
+ metadata.gz: b7635101124fcfe93204d4b02cbcd565dd907d9e
4
+ data.tar.gz: a4750dc55164faff99aebb8fe87abe9b4b06872f
5
5
  SHA512:
6
- metadata.gz: 82ce0260f1a8f75a5e1e744039ed5e1af95fe1aceb225b939553d641cd8bede49b081ae53329ecb6a35817beffb0841ba044256c4bd8f83da66973518382c612
7
- data.tar.gz: edb37ef1bb8fcb7ae0efb8272cc0b6078444bdbfdaefd078a64e83d1c0c9d1f5f7ce1f0d54df4b585168fb41be5a7753b41933954d04f93e543466736c48828a
6
+ metadata.gz: c866217c5104f2ba7e97400b9fcf38843529bd34a99e7a819e932a4708551df0cd9bd07de87056692d9f30334a7c235069b0fd1b06bed87f1440eb17b753123a
7
+ data.tar.gz: 4517265649ec71b85b126c5b05768802e21389749902cfbc33e836fa578e572323214fab4db220979f55d932b5dce564c3824ce8d59af49c32feeb79501b5ef1
@@ -8,14 +8,15 @@ module Icapps
8
8
  class Http
9
9
  class << self
10
10
  def authenticated_response(path, is_json = false)
11
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
12
-
13
11
  uri = URI("#{config.url}/#{path}")
14
12
  puts "[VERBOSE] Connecting to url '#{uri}'.".colorize(:white) if options[:verbose]
15
13
 
16
14
  http = Net::HTTP.new(uri.host, uri.port)
17
15
  http.use_ssl = uri.scheme == 'https'
18
- request = Net::HTTP::Get.new(uri)
16
+ # Disable SSL for now.
17
+ ssl_context = OpenSSL::SSL::SSLContext.new
18
+ ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
19
+ request = Net::HTTP::Get.new(uri, ssl_context: ssl_context)
19
20
  request.add_field 'Authorization', "Token token=#{config.project_key}"
20
21
  response = http.request(request)
21
22
  is_json ? JSON.parse(response.body) : response.body
@@ -1,5 +1,5 @@
1
1
  module Icapps
2
2
  module Translations
3
- VERSION = '0.2.4'
3
+ VERSION = '0.2.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icapps-translations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jelle Vandebeeck