euax_gems_validator 1.0.0.beta2 → 1.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/euax_gems_validator/gems-service.rb +3 -2
- 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: cdcb39475a17966c6c23d7fd53d0ed50883112dce946a8acbf9eaf47248e8eeb
|
4
|
+
data.tar.gz: b73bb5de670b2edfc244152142e117e5d2c479b2bf905d2f20625481a9ed364c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8892dc88373e99901067eb15b1d204f43aa2c6c4d1bf14be4b7deecc6c2d375a99bc4dd5b3a9ab29c91c4623c730de0c0b2b15103ba2cb4a13f4b0fab2c876b
|
7
|
+
data.tar.gz: f85d50a25dd4495f642fc83b79cdac9ef306244766e7e1658e8abf8545cc24d087db5e891d979d50b978f790efb3f47f18ed0ce584d34f1acf46c91951ea25af
|
@@ -39,6 +39,7 @@ module GemsValidator
|
|
39
39
|
request['Content-Type'] = 'application/json'
|
40
40
|
|
41
41
|
Net::HTTP.start(uri.host, uri.port) do |http|
|
42
|
+
http.use_ssl = true
|
42
43
|
response = http.request request
|
43
44
|
response.header['access_token']
|
44
45
|
end
|
@@ -50,6 +51,7 @@ module GemsValidator
|
|
50
51
|
access_token = get_token
|
51
52
|
|
52
53
|
Net::HTTP.start(uri.host, uri.port) do |http|
|
54
|
+
http.use_ssl = true
|
53
55
|
request = Net::HTTP::Get.new uri
|
54
56
|
request["Authorization"] = access_token
|
55
57
|
response = http.request request
|
@@ -57,8 +59,7 @@ module GemsValidator
|
|
57
59
|
generate_file("#{@pwd}/.euax-homologated-libraries", parse_body.to_json)
|
58
60
|
parse_body
|
59
61
|
end
|
60
|
-
rescue
|
61
|
-
p e
|
62
|
+
rescue
|
62
63
|
puts " "
|
63
64
|
GemsValidator::OutputMessage.warn("A API das bibliotecas homologadas esta fora do ar. Para prosseguir, nesse momento os dados serão coletados do cache.")
|
64
65
|
puts " "
|