tabry 0.2.1 → 0.2.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 +4 -4
- data/lib/tabry/cli/util.rb +2 -1
- data/tabry.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a76bb8b85fa94e61bf625e435711d8e3385f5aa50a87a7c410e4f252947ffea
|
|
4
|
+
data.tar.gz: '0632896bf92ca8b57a08db3b153e32aed0da12c71d9604d7260de2fba6fc9707'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8420bd16657ebbe6e2f13c55a14e62fffab982b5d81f71d76c36ccdd97d36ee4a09ce7ccf1386c5b0b553681b48d7b3fdd90336fb72574d55ba426ca22200ed9
|
|
7
|
+
data.tar.gz: 1dcd973c7608319c73ae59ab8c516e0ccb54ec9c6bf909f13235e3be238e1059e93d2ba067d99a66b8de8fb5cca9c69e2cf861b1393aecbd9076580fbbdef37c
|
data/lib/tabry/cli/util.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry-byebug
|