gum 0.3.0-x86_64-darwin → 0.3.1-x86_64-darwin
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/README.md +12 -0
- data/lib/gum/command.rb +3 -3
- data/lib/gum/commands/spin.rb +7 -3
- data/lib/gum/version.rb +1 -1
- data/sig/gum/command.rbs +9 -9
- 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: c9636b8d2ca0a5531987e3e6c03c794ddfabad6ae2fe3294cd8813776604eb8c
|
|
4
|
+
data.tar.gz: 745b2242c4a69b3adb9800ff0a69eb6055c32cdafec076fbcba951a90eec1034
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b21ecfd7ba78c036f86c403ec1942d161cc5e6c908a5be58faf485f5770b90f09dfa1e3f6602a77a6a036b2161e5327be6e38d659c716284839e4b0c7c02d3b
|
|
7
|
+
data.tar.gz: cd7d48ce0c9a2a7edd2b6f055ad1bdc4abe07fe602d7b993e964406e27e421175c2f7b1ea48b66a0552895b75638b16baff6fd13b9141c90b1b4929960f67159
|
data/README.md
CHANGED
|
@@ -458,3 +458,15 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
458
458
|
|
|
459
459
|
- [Charm](https://charm.sh/) for creating the amazing [gum](https://github.com/charmbracelet/gum) tool
|
|
460
460
|
- Inspired by [`litestream-ruby`](https://github.com/fractaledmind/litestream-ruby) for the native binary packaging approach
|
|
461
|
+
|
|
462
|
+
Charm Ruby is not affiliated with or endorsed by Charmbracelet, Inc.
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
Part of [Charm Ruby](https://charm-ruby.dev).
|
|
467
|
+
|
|
468
|
+
<a href="https://charm-ruby.dev"><img alt="Charm Ruby" src="https://marcoroth.dev/images/heros/glamorous-christmas.png" width="400"></a>
|
|
469
|
+
|
|
470
|
+
[Lipgloss](https://github.com/marcoroth/lipgloss-ruby) • [Bubble Tea](https://github.com/marcoroth/bubbletea-ruby) • [Bubbles](https://github.com/marcoroth/bubbles-ruby) • [Glamour](https://github.com/marcoroth/glamour-ruby) • [Huh?](https://github.com/marcoroth/huh-ruby) • [Harmonica](https://github.com/marcoroth/harmonica-ruby) • [Bubblezone](https://github.com/marcoroth/bubblezone-ruby) • [Gum](https://github.com/marcoroth/gum-ruby) • [ntcharts](https://github.com/marcoroth/ntcharts-ruby)
|
|
471
|
+
|
|
472
|
+
The terminal doesn't have to be boring.
|
data/lib/gum/command.rb
CHANGED
|
@@ -8,10 +8,10 @@ require "open3"
|
|
|
8
8
|
module Gum
|
|
9
9
|
module Command
|
|
10
10
|
def self.run(*, input: nil, interactive: true)
|
|
11
|
-
if
|
|
12
|
-
run_interactive_with_input(*, input: input)
|
|
13
|
-
elsif input
|
|
11
|
+
if !interactive
|
|
14
12
|
run_non_interactive(*, input: input)
|
|
13
|
+
elsif input
|
|
14
|
+
run_interactive_with_input(*, input: input)
|
|
15
15
|
else
|
|
16
16
|
run_interactive(*)
|
|
17
17
|
end
|
data/lib/gum/commands/spin.rb
CHANGED
|
@@ -143,9 +143,13 @@ module Gum
|
|
|
143
143
|
args << "--"
|
|
144
144
|
args.push("bash", "-c", "while [ ! -f #{marker_path} ]; do sleep 0.1; done")
|
|
145
145
|
|
|
146
|
-
spinner_pid = Process.
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
spinner_pid = Process.spawn(
|
|
147
|
+
Gum.executable, *args.map(&:to_s),
|
|
148
|
+
in: :close,
|
|
149
|
+
out: $stdout,
|
|
150
|
+
err: $stderr,
|
|
151
|
+
close_others: true
|
|
152
|
+
)
|
|
149
153
|
|
|
150
154
|
begin
|
|
151
155
|
result = block.call
|
data/lib/gum/version.rb
CHANGED
data/sig/gum/command.rbs
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
module Gum
|
|
4
4
|
module Command
|
|
5
|
-
def self
|
|
5
|
+
def self.run: (*untyped, ?input: untyped, ?interactive: untyped) -> untyped
|
|
6
6
|
|
|
7
|
-
def self
|
|
7
|
+
def self.run_non_interactive: (*untyped args, input: untyped) -> untyped
|
|
8
8
|
|
|
9
|
-
def self
|
|
9
|
+
def self.run_interactive: (*untyped args) -> untyped
|
|
10
10
|
|
|
11
|
-
def self
|
|
11
|
+
def self.run_interactive_with_input: (*untyped args, input: untyped) -> untyped
|
|
12
12
|
|
|
13
|
-
def self
|
|
13
|
+
def self.run_display_only: (*untyped args, input: untyped) -> untyped
|
|
14
14
|
|
|
15
|
-
def self
|
|
15
|
+
def self.run_with_status: (*untyped args, ?input: untyped) -> untyped
|
|
16
16
|
|
|
17
|
-
def self
|
|
17
|
+
def self.build_args: (untyped command, *untyped positional, **untyped options) -> untyped
|
|
18
18
|
|
|
19
|
-
def self
|
|
19
|
+
def self.add_style_args: (untyped args, untyped flag, untyped style_hash) -> untyped
|
|
20
20
|
|
|
21
|
-
def self
|
|
21
|
+
def self.flag_supports_negation?: (untyped command, untyped flag) -> untyped
|
|
22
22
|
end
|
|
23
23
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: x86_64-darwin
|
|
6
6
|
authors:
|
|
7
7
|
- Marco Roth
|
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
79
|
version: '0'
|
|
80
80
|
requirements: []
|
|
81
|
-
rubygems_version:
|
|
81
|
+
rubygems_version: 4.0.3
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Ruby wrapper for Charm's gum CLI tool.
|
|
84
84
|
test_files: []
|