euax_gems_validator 1.0.0.beta4 → 1.0.0.beta6

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
  SHA256:
3
- metadata.gz: cdcb39475a17966c6c23d7fd53d0ed50883112dce946a8acbf9eaf47248e8eeb
4
- data.tar.gz: b73bb5de670b2edfc244152142e117e5d2c479b2bf905d2f20625481a9ed364c
3
+ metadata.gz: b9e53a25cef4582348781768424b3b8140454b59e9db5ac0a8757fb44bd08982
4
+ data.tar.gz: cdd36ccd5b908a867c799f6c82efdf439ed85c43ef499322e73d7f8bd2e1a8a8
5
5
  SHA512:
6
- metadata.gz: d8892dc88373e99901067eb15b1d204f43aa2c6c4d1bf14be4b7deecc6c2d375a99bc4dd5b3a9ab29c91c4623c730de0c0b2b15103ba2cb4a13f4b0fab2c876b
7
- data.tar.gz: f85d50a25dd4495f642fc83b79cdac9ef306244766e7e1658e8abf8545cc24d087db5e891d979d50b978f790efb3f47f18ed0ce584d34f1acf46c91951ea25af
6
+ metadata.gz: 0fb369686fd42d822a4389beff584b1d0399ad3d11a5f8d8d91149a28c3308b25a23f55052c4ba7d5085ab44589995bacf98a2a63712d8fe6ce153d9a3abb904
7
+ data.tar.gz: 28c23787f0453a17bd1feaf2aef3972259201d2a78df03ef03838c4f8864fb77f565eeb99d7ceeea276b2d30f574174137f4dd59045dabddf73cbc6de6ae5353
data/Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
1
  FROM ruby:2.3.8
2
2
 
3
+ RUN apt-get update -y
4
+ RUN apt --only-upgrade install -y ca-certificates
5
+ RUN update-ca-certificates
6
+
3
7
  WORKDIR /app
4
8
 
5
9
  COPY . .
@@ -38,8 +38,7 @@ module GemsValidator
38
38
  request.body = { username: 'viewer', password: 'viewer@euax' }.to_json
39
39
  request['Content-Type'] = 'application/json'
40
40
 
41
- Net::HTTP.start(uri.host, uri.port) do |http|
42
- http.use_ssl = true
41
+ Net::HTTP.start(uri.host, uri.port, :use_ssl => true, verify_mode: 0) do |http|
43
42
  response = http.request request
44
43
  response.header['access_token']
45
44
  end
@@ -50,8 +49,7 @@ module GemsValidator
50
49
  begin
51
50
  access_token = get_token
52
51
 
53
- Net::HTTP.start(uri.host, uri.port) do |http|
54
- http.use_ssl = true
52
+ Net::HTTP.start(uri.host, uri.port, :use_ssl => true, verify_mode: 0) do |http|
55
53
  request = Net::HTTP::Get.new uri
56
54
  request["Authorization"] = access_token
57
55
  response = http.request request
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemsValidator
4
- VERSION = "1.0.0.beta4"
4
+ VERSION = "1.0.0.beta6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: euax_gems_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta4
4
+ version: 1.0.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - henriquesml