gum 0.3.0-arm64-linux → 0.3.1-arm64-linux

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: 04da5a10876b453c8c3e8cc911d083d547ab25f3187d646ecc1cd823ef0087f8
4
- data.tar.gz: 1dcfedba5197b25c353a796d2123c65f8a882cf54bc2714b0cad7801b3886383
3
+ metadata.gz: 8547efc512ff57c682bb7843ea11063b998b598337ea1156826a1c5b12c7ec76
4
+ data.tar.gz: 446f04a4b6c6b55700d472a5c8cea347fb77636618046ab75e0959be4d163279
5
5
  SHA512:
6
- metadata.gz: c29db2d3e3aa86eba9dedbb1fd9fa1f5135985d86c0c1c84cb81f172f617d03ebb9d464fe087b23af62b0ea53086375f6e561c6e8ad6ac4e7a058987334f26f6
7
- data.tar.gz: 42c13e04922d19ea5dfdeceafa84fbee8debf2c01a98b0fb5aae96a981400026fc795916399ba4acf6d986360fac552ae4367fc829b9f64ca257b96a384b7695
6
+ metadata.gz: b8a18b904afe4554eab7fac82a50baf57808de1161c785cfbaad17f8132d9d1bf838c80778a3dbd65d4babd393a16e2de8042d22b7f0496549803f3d3bee2f8e
7
+ data.tar.gz: '009e7734a784b13ebc28383a7efcf96ca2582e547928a9957f4b7a824d40feeb9c1664e918266ce8f9a31e0960bac75cc842e667bf8df6f03147bde50eeaca41'
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 input && interactive
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
@@ -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.fork do
147
- exec(Gum.executable, *args.map(&:to_s))
148
- end
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
@@ -3,5 +3,5 @@
3
3
  # rbs_inline: enabled
4
4
 
5
5
  module Gum
6
- VERSION = "0.3.0"
6
+ VERSION = "0.3.1"
7
7
  end
data/sig/gum/command.rbs CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  module Gum
4
4
  module Command
5
- def self?.run: (*untyped, ?input: untyped, ?interactive: untyped) -> untyped
5
+ def self.run: (*untyped, ?input: untyped, ?interactive: untyped) -> untyped
6
6
 
7
- def self?.run_non_interactive: (*untyped args, input: untyped) -> untyped
7
+ def self.run_non_interactive: (*untyped args, input: untyped) -> untyped
8
8
 
9
- def self?.run_interactive: (*untyped args) -> untyped
9
+ def self.run_interactive: (*untyped args) -> untyped
10
10
 
11
- def self?.run_interactive_with_input: (*untyped args, input: untyped) -> untyped
11
+ def self.run_interactive_with_input: (*untyped args, input: untyped) -> untyped
12
12
 
13
- def self?.run_display_only: (*untyped args, input: untyped) -> untyped
13
+ def self.run_display_only: (*untyped args, input: untyped) -> untyped
14
14
 
15
- def self?.run_with_status: (*untyped args, ?input: untyped) -> untyped
15
+ def self.run_with_status: (*untyped args, ?input: untyped) -> untyped
16
16
 
17
- def self?.build_args: (untyped command, *untyped positional, **untyped options) -> untyped
17
+ def self.build_args: (untyped command, *untyped positional, **untyped options) -> untyped
18
18
 
19
- def self?.add_style_args: (untyped args, untyped flag, untyped style_hash) -> untyped
19
+ def self.add_style_args: (untyped args, untyped flag, untyped style_hash) -> untyped
20
20
 
21
- def self?.flag_supports_negation?: (untyped command, untyped flag) -> untyped
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.0
4
+ version: 0.3.1
5
5
  platform: arm64-linux
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: 3.6.9
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: []