dri 0.1.1 → 0.1.2

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: e352230c90233014a517cb67addf17a051a2b2eb05c93f0e88bcaab45c40e723
4
- data.tar.gz: 51bbd9e7f07e20668fa8b6161e41b3995ae47b8d1866be6ad81fd07fc0c37bf1
3
+ metadata.gz: 9dfdbd437522c61a85ee277d56572906e94f8b9c33d2b511701e5e0daa6ad576
4
+ data.tar.gz: 93c8566dc5c2cc610aa181e0242562dc84db111a1bf149448032cbbba0a4ee54
5
5
  SHA512:
6
- metadata.gz: 00b8bcfe9d1d884523f2f5d3963cfa8ab3b7f33f04f819fd17b253838bf899d67394de91524d3dfa40ff692b48c5768f039dc8b6ed44abbcd5faa14b1606eb60
7
- data.tar.gz: 58a9c606cd89a5282f25b9fe89fcf16bcf9c70d53df868876884d10149e34786de5c3341d216dd227bbb3d44e16649e26032117c1f12e33e61de52168fd54ebe
6
+ metadata.gz: 432a698eb76717876ab269523cae3377ea546103dfedaa04001ff7b07a7080ab4a069f4b795d6b949c78bca02cd500e584bccfbee8c9470bcafda2029eb095c2
7
+ data.tar.gz: 152bbfc469b575c0f7e65e28ffdeba5517449b635016630d677ffded81c9e01a89acb93b0c9f6cc176b2e4226f7e1bf797505f162521a73791e5224a14462efd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dri (0.1.0)
4
+ dri (0.1.1)
5
5
  httparty (~> 0.20.0)
6
6
  json (~> 2.6.1)
7
7
  markdown-tables (~> 1.1.1)
@@ -67,7 +67,7 @@ module Dri
67
67
  if @options[:urgent]
68
68
  table = TTY::Table.new(labels, urgent)
69
69
  puts table.render(:ascii, resize: true, alignments: [:center, :center, :center, :center])
70
- output.puts "\nFound: #{urgent.size} urgent failures, found in both canary.gitlab.com and canary.staging.gitlab.com."
70
+ output.puts "\nFound: #{urgent.size} urgent failures, ocurring in both canary.gitlab.com and canary.staging.gitlab.com."
71
71
  else
72
72
  table = TTY::Table.new(labels, failures)
73
73
  puts table.render(:ascii, resize: true, alignments: [:center, :center, :center, :center])
@@ -31,6 +31,10 @@ module Dri
31
31
 
32
32
  pipelines = @options[:filter_pipelines] ? filtered_pipelines : @available_pipelines
33
33
 
34
+ if pipelines.empty?
35
+ logger.error "No pipelines selected to continue to fetch testcases."
36
+ end
37
+
34
38
  pipelines.each do |pipeline|
35
39
  logger.info "Fetching failing testcases in #{pipeline}\n"
36
40
  response = api_client.fetch_failing_testcases(pipeline, state: 'opened')
@@ -12,9 +12,9 @@ module Dri
12
12
  def execute(input: $stdin, output: $stdout)
13
13
  verify_config_exists
14
14
 
15
- title = add_color('Title', :bright_yellow)
16
- url = add_color('URL', :bright_yellow)
17
- type_label = add_color('Type', :bright_yellow)
15
+ title = add_color('Title', :magenta)
16
+ url = add_color('URL', :magenta)
17
+ type_label = add_color('Type', :magenta)
18
18
 
19
19
  table_labels = [ title, url, type_label ]
20
20
  failures_triaged = []
@@ -30,7 +30,7 @@ module Dri
30
30
  end
31
31
 
32
32
  response.each do |triaged|
33
- title = truncate(triaged["title"], 90)
33
+ title = truncate(triaged["title"], 70)
34
34
  url = triaged["web_url"]
35
35
  labels = triaged["labels"]
36
36
  type = ""
@@ -3,12 +3,13 @@
3
3
  require_relative '../command'
4
4
 
5
5
  require "tty-font"
6
- require "pastel"
7
6
 
8
7
  module Dri
9
8
  module Commands
10
9
  class Init < Dri::Command
11
10
  def initialize(options)
11
+ @options = options
12
+
12
13
  font = TTY::Font.new(:doom)
13
14
  puts pastel.yellow(font.write("DRI"))
14
15
  end
@@ -21,7 +22,7 @@ module Dri
21
22
  if config.exist?
22
23
  overwrite = prompt.yes?("There is already a configuration initialized. Would you like to overwrite it?")
23
24
  unless overwrite
24
- output.puts "Using existing configuration. To view configuration in use try #{add_color('dri profile', :yellow)}."
25
+ output.puts "Using existing configuration. To view configuration in use try #{add_color('dri profile', :yellow)}."
25
26
  exit 0
26
27
  end
27
28
  end
data/lib/dri/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dri
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality