dri 0.6.0 → 0.6.1

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: 9f99fb005dc6cbc12b4fe9b8b131680c09474c125d7fe396fa3b0fadd8804dba
4
- data.tar.gz: dfa14e8f527bfed0d17a428d81ac16955251cba3ef19907016a19bc43901e768
3
+ metadata.gz: 990d9ed4c79b5b7c7ff2e5535dba71599a3189d4c742b918f98d3063a6e15c9f
4
+ data.tar.gz: 15e48f44496a55d5d13185409a91d9ddd525d127fd8dbe73265dc176c6d14634
5
5
  SHA512:
6
- metadata.gz: f7e619cb7241e804810b8cdd97759df84c98aada62c975e0d39fa9f9125219846f5e8bddb50624ce22cc1f836006b023d49375f0a17e298d0f0086d220390e87
7
- data.tar.gz: '09e94ad8bc08ffb95839e01456703e81f8ed262c7c925beadeb21d71a816f6632b5772b91af5700901331c5e7560af56b1398ed41ac6dc04d884f61b6ab6043b'
6
+ metadata.gz: 22a9838a3821c90cb24346f6f98b6158e2a71ec9bd0c4e7b5d9e447a75b676202be1d365e1603d7d12a8441f6b5d448f26337c33163b60f346819933da24fea3
7
+ data.tar.gz: 6b117a44436b2c4c064c3b19b22deb454a42c8d6d460492af7813e72299600d50ad2cef612e5e1f2a84566588f560d31c82da3c5c92b35f1d8749ea445e9664e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dri (0.6.0)
4
+ dri (0.6.1)
5
5
  amatch (~> 0.4.1)
6
6
  gitlab (~> 4.18)
7
7
  httparty (~> 0.20.0)
@@ -21,7 +21,7 @@ module Dri
21
21
  @ops_token = config.read.dig("settings", "ops_token")
22
22
  if @token.nil? || @ops_token.nil?
23
23
  raise TokenNotProvidedError, "Gitlab API client cannot be initialized without both access tokens. " \
24
- "Run dri init again or dri profile --edit"
24
+ "Run `dri init` again or `dri profile --edit` to add an ops_token entry."
25
25
  end
26
26
 
27
27
  @ops_instance = ops
@@ -22,6 +22,7 @@ module Dri
22
22
  def execute(input: $stdin, output: $stdout)
23
23
  verify_config_exists
24
24
  logger.info "Fetching pipelines' status, this might take a while..."
25
+ logger.warn "This command needs a large window to correctly print the table"
25
26
  pipelines = []
26
27
  table_labels = define_table_labels
27
28
 
@@ -29,11 +30,16 @@ module Dri
29
30
  Dri::Utils::Constants::PIPELINE_ENVIRONMENTS.each do |environment, details|
30
31
  logger.info "Fetching last executed #{environment} pipeline"
31
32
  pipelines << fetch_pipeline(pipeline_name: environment.to_s, details: details)
32
- logger.info "Fetching complete for #{environment}"
33
+ logger.info "Fetching complete for #{environment}"
33
34
  end
34
35
  end
35
36
 
36
- print_table(table_labels, pipelines, alignments: [:left, :center, :center, :left])
37
+ print_table(
38
+ table_labels,
39
+ pipelines,
40
+ alignments: [:center, :center, :center, :center, :center],
41
+ padding: [1, 1, 1, 1]
42
+ )
37
43
  pipelines # Returning the array mainly for spec
38
44
  end
39
45
 
data/lib/dri/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dri
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality