euax_gems_validator 1.0.0.beta3 → 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: 0505f1369069a872ead0d6f00198869ad3a2aa882ceccebd2ddfd67a9db9f7b9
4
- data.tar.gz: 147497db8153d0aef60830fe2708a0237ecb09ee22052f91bbe50967efdbd7f3
3
+ metadata.gz: cdcb39475a17966c6c23d7fd53d0ed50883112dce946a8acbf9eaf47248e8eeb
4
+ data.tar.gz: b73bb5de670b2edfc244152142e117e5d2c479b2bf905d2f20625481a9ed364c
5
5
  SHA512:
6
- metadata.gz: 96f4340b7a71758ceb14c1a85a513b0bed8923f22e42cb9542e893725103a5c76227049806ced227ef1173f39b00f638e0d16c1345881052354ec57eb7042520
7
- data.tar.gz: bf9adb460637a99c69c2828a95cf1b59ef6b6a300ecc793670089aa4fc89e1dfec4e220e435ce979fee4d8b85797a984bbb6a863c384a526bf1969231d5e08f9
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,9 +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 "MESSAGE", e.message
62
- p GemsValidator::API_BASE_URL
62
+ rescue
63
63
  puts " "
64
64
  GemsValidator::OutputMessage.warn("A API das bibliotecas homologadas esta fora do ar. Para prosseguir, nesse momento os dados serão coletados do cache.")
65
65
  puts " "
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemsValidator
4
- VERSION = "1.0.0.beta3"
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.beta3
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - henriquesml