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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b6631037e4ae6eebc270487bdc68eeda533fde6c5c3a3938ee4a5593905c6e8
4
- data.tar.gz: 348dc875b0017603bf5cc18e301b23a5223ec3716c685624d108bce717fbd522
3
+ metadata.gz: cdcb39475a17966c6c23d7fd53d0ed50883112dce946a8acbf9eaf47248e8eeb
4
+ data.tar.gz: b73bb5de670b2edfc244152142e117e5d2c479b2bf905d2f20625481a9ed364c
5
5
  SHA512:
6
- metadata.gz: 950baa822d114874946b71cd849dd76435b52d3a6672dffd28d8ef08497bdaa413ec3451454fa9865a2cbdcbfcde68931c12988f737d948545a87f35d1a310fb
7
- data.tar.gz: 4de57d3c6f5d8ea4a2d2db8f3c8f1151f5dec4abde29795e9f806ee6dfa2e9092aff6203402036b7fd7488738c118d073f28c86cee2a04096c8799f1129502ac
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 => e
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 " "
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemsValidator
4
- VERSION = "1.0.0.beta2"
4
+ VERSION = "1.0.0.beta4"
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.beta2
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - henriquesml