gems-validator 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaf00ceff8861c1a65c5da49fd0197a00d62b5fdbac2d31fb42357261107dc59
4
- data.tar.gz: b72d6b9753c57c4920b1d7f6dd1e3fb1d22512b738dfbc381ed205c60b6bf0a5
3
+ metadata.gz: f5f721c4022753e1bb7955847b6b89edee25800a6a84f6bb8acc7c5163a54b1a
4
+ data.tar.gz: eaf7abca4d9be24f091736eb7e82f4eb457f7ad77e419c67136c841c49ad3ae4
5
5
  SHA512:
6
- metadata.gz: a80be1d343afdc4151e2a3e59e0a1e5f4b11ec36c14aab0aaf0dedff307f6033435e7ca0f0de3dbeaa8e4e5369f2252499b21d1616c1bd51fa20c7eb5e5a709a
7
- data.tar.gz: a246db4f124fb856ac1cd0cb8ae40f9f7977f3f4b5f32967c7582182308702e662f95de476c84c2ac191ab8daf74075df1072b73ab4739b0162759fef7dca1a7
6
+ metadata.gz: cef10f7c4fb6d25bc0a13db7259339706c09d0f268853af5e14fce47da36ddd536a733af7c6856a55068f24979fae22f334485eee7e197ee967dacd8d51db4f6
7
+ data.tar.gz: cb4760488a41458115ef7895c21436ee1f693e675a683e7c4b0c92370bef9bed9f786887180eee28d4213ce429adeb3a737ddc144758a4a434aec13c893332e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gems-validator (0.7.2)
4
+ gems-validator (0.7.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -34,7 +34,7 @@ module GemsValidator
34
34
  def get_token
35
35
  uri = URI('http://ec2-54-173-249-114.compute-1.amazonaws.com:3333/sessions/token')
36
36
  request = Net::HTTP::Post.new(uri)
37
- request.body = { username: 'developers', password: 'devs@euax' }.to_json
37
+ request.body = { username: 'viewer', password: 'viewer@euax' }.to_json
38
38
  request['Content-Type'] = 'application/json'
39
39
 
40
40
  Net::HTTP.start(uri.host, uri.port) do |http|
@@ -57,7 +57,9 @@ module GemsValidator
57
57
  parse_body
58
58
  end
59
59
  rescue => exception
60
- GemsValidator::OutputMessage.warn("A API das bibliotecas homologadas esta fora do ar. Os dados serão coletados do cache.", { before: true, after: true })
60
+ puts " "
61
+ GemsValidator::OutputMessage.warn("A API das bibliotecas homologadas esta fora do ar. Para prosseguir, nesse momento os dados serão coletados do cache.")
62
+ puts " "
61
63
  sleep(3)
62
64
  JSON.parse(File.read("#{@pwd}/.euax-homologated-libraries/gems-response.json"))
63
65
  end
@@ -2,16 +2,16 @@
2
2
 
3
3
  module GemsValidator
4
4
  class OutputMessage
5
- def self.error(message, jump_line = {})
6
- Bundler::GemspecError.new("#{jump_line[:before] ? "\n" : ''}[GemsValidator::Error] - #{message}#{jump_line[:after] ? "\n" : ''} ")
5
+ def self.error(message)
6
+ Bundler::GemspecError.new("[GemsValidator::Error] - #{message}")
7
7
  end
8
8
 
9
- def self.warn(message, jump_line = {})
10
- Bundler.ui.warn("#{jump_line[:before] ? "\n" : ''}[GemsValidator::Warning] - #{message}#{jump_line[:after] ? "\n" : ''} ")
9
+ def self.warn(message)
10
+ Bundler.ui.warn("[GemsValidator::Warning] - #{message}")
11
11
  end
12
12
 
13
- def self.success(message, jump_line = {})
14
- Bundler.ui.confirm("#{jump_line[:before] ? "\n" : ''}[GemsValidator::Success] - #{message}#{jump_line[:after] ? "\n" : ''} ")
13
+ def self.success(message)
14
+ Bundler.ui.confirm("[GemsValidator::Success] - #{message}")
15
15
  end
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemsValidator
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gems-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - henriquesml