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 +4 -4
- data/Dockerfile +4 -0
- data/lib/euax_gems_validator/gems-service.rb +2 -4
- data/lib/euax_gems_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9e53a25cef4582348781768424b3b8140454b59e9db5ac0a8757fb44bd08982
|
4
|
+
data.tar.gz: cdd36ccd5b908a867c799f6c82efdf439ed85c43ef499322e73d7f8bd2e1a8a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb369686fd42d822a4389beff584b1d0399ad3d11a5f8d8d91149a28c3308b25a23f55052c4ba7d5085ab44589995bacf98a2a63712d8fe6ce153d9a3abb904
|
7
|
+
data.tar.gz: 28c23787f0453a17bd1feaf2aef3972259201d2a78df03ef03838c4f8864fb77f565eeb99d7ceeea276b2d30f574174137f4dd59045dabddf73cbc6de6ae5353
|
data/Dockerfile
CHANGED
@@ -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
|