tabry 0.2.1 → 0.2.2

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: 5d76e2e99f45b1f9b964d21f0ed8820d37b973c358b032a97c3d5314afdae8a1
4
- data.tar.gz: e84a7977c95fc91282291d1406ffc2e577f4c23a140e69b05f3b6fe10da4f85d
3
+ metadata.gz: 4a76bb8b85fa94e61bf625e435711d8e3385f5aa50a87a7c410e4f252947ffea
4
+ data.tar.gz: '0632896bf92ca8b57a08db3b153e32aed0da12c71d9604d7260de2fba6fc9707'
5
5
  SHA512:
6
- metadata.gz: d1a4d514766abadeee72d0f1db0e1de14c0bf1bc26964911460adffaa716f6a6dd9f36604632274b6a4772a3d734903af0543c8689257b214a439679a1ebb8e3
7
- data.tar.gz: 23351f80640e72147ea32638327e99891aa4b46f8fedee2551ecdcadd2fb63102f6c505b430882171cd736320baac633dc7f93a26f9ccb89dfdd232c4bf6c833
6
+ metadata.gz: 8420bd16657ebbe6e2f13c55a14e62fffab982b5d81f71d76c36ccdd97d36ee4a09ce7ccf1386c5b0b553681b48d7b3fdd90336fb72574d55ba426ca22200ed9
7
+ data.tar.gz: 1dcd973c7608319c73ae59ab8c516e0ccb54ec9c6bf909f13235e3be238e1059e93d2ba067d99a66b8de8fb5cca9c69e2cf861b1393aecbd9076580fbbdef37c
@@ -39,7 +39,7 @@ module Tabry
39
39
  backtick_with_status(*cmdline, valid_statuses: [0], **opts).first
40
40
  end
41
41
 
42
- def backtick_with_status(*cmdline, valid_statuses: nil, **opts)
42
+ def backtick_with_status(*cmdline, valid_statuses: nil, extra_error_message: nil, **opts)
43
43
  cmdline = make_cmdline(*cmdline, **opts)
44
44
  return [nil, nil] unless cmdline
45
45
 
@@ -56,6 +56,7 @@ module Tabry
56
56
  msg += " (command does not exist)" if enoent_error
57
57
  Kernel.warn "#{msg}: #{cmdline}"
58
58
  Kernel.warn "Command output:\n#{res}"
59
+ Kernel.warn extra_error_message if extra_error_message
59
60
  Kernel.exit 1
60
61
  end
61
62
  [res, status]
data/tabry.gemspec CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "tabry"
9
- s.version = "0.2.1"
9
+ s.version = "0.2.2"
10
10
  s.summary = "Tab completion and CLIs extraordinaire"
11
11
  s.authors = ["Evan Battaglia"]
12
12
  s.email = "battaglia.evan@gmail.com"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Battaglia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug