icapps-translations 0.2.5 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7635101124fcfe93204d4b02cbcd565dd907d9e
4
- data.tar.gz: a4750dc55164faff99aebb8fe87abe9b4b06872f
3
+ metadata.gz: 881b01e5e9dc63b18753dde66533bab77aba5f3a
4
+ data.tar.gz: aa17373574acc6583e47f3f3219116220b730e47
5
5
  SHA512:
6
- metadata.gz: c866217c5104f2ba7e97400b9fcf38843529bd34a99e7a819e932a4708551df0cd9bd07de87056692d9f30334a7c235069b0fd1b06bed87f1440eb17b753123a
7
- data.tar.gz: 4517265649ec71b85b126c5b05768802e21389749902cfbc33e836fa578e572323214fab4db220979f55d932b5dce564c3824ce8d59af49c32feeb79501b5ef1
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
- 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)
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
@@ -1,5 +1,5 @@
1
1
  module Icapps
2
2
  module Translations
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jelle Vandebeeck