rubyterm 0.1.1 → 0.1.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/rubyterm/app.rb +18 -0
- data/lib/rubyterm/version.rb +1 -1
- metadata +2 -3
- data/bin/record +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: add0fe16033c81c852e4605472ffee6aa840f4639864f04bbbadcbe15dcca024
|
|
4
|
+
data.tar.gz: 238ffdf540e08d38630c89034256826975250fb7ed13825d96a73fb7e50e51a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71ca07c93b9e67c83a1385bb49d5dd5063e1d56e03f257bc2f8d8e93acde384fe23a8e4cb45fc19ce307dffb7373b9c6aa8edcee17d82dc774f9ad0baf4be49a
|
|
7
|
+
data.tar.gz: d9d84c93ec626ca6e44d197a257b19bd33769c800452c16c9effed0c1b61e377c4fd28a2073f2dce20bff70374489cca25065ce27c47e96547d42e751ef4a267
|
data/lib/rubyterm/app.rb
CHANGED
|
@@ -531,6 +531,24 @@ class RubyTerm
|
|
|
531
531
|
|
|
532
532
|
|
|
533
533
|
def run(args)
|
|
534
|
+
# A launcher (e.g. a menu) can hand us stdout/stderr on a pipe that closes
|
|
535
|
+
# once it exits. Our own debug/error output (keymap warnings etc.) would then
|
|
536
|
+
# raise Errno::EPIPE, and with Thread.abort_on_exception on (below) that
|
|
537
|
+
# would kill the terminal — and the user's window — on the next keypress.
|
|
538
|
+
# If either is a pipe, route our output to a log file so a closed pipe can
|
|
539
|
+
# never crash us. A real tty or plain-file launch is already safe, so leave
|
|
540
|
+
# it alone.
|
|
541
|
+
if [$stdout, $stderr].any? { |io| io.stat.pipe? rescue false }
|
|
542
|
+
begin
|
|
543
|
+
log = File.open(File.expand_path(ENV["RUBYTERM_LOG"] || "~/.rubyterm.log"), "a")
|
|
544
|
+
$stdout.reopen(log); $stderr.reopen(log)
|
|
545
|
+
$stdout.sync = $stderr.sync = true
|
|
546
|
+
rescue SystemCallError
|
|
547
|
+
$stdout.reopen(File::NULL, "w") rescue nil
|
|
548
|
+
$stderr.reopen(File::NULL, "w") rescue nil
|
|
549
|
+
end
|
|
550
|
+
end
|
|
551
|
+
|
|
534
552
|
@controller = Controller.new(self, @config)
|
|
535
553
|
@controller.run(*args)
|
|
536
554
|
@term.responder = @controller
|
data/lib/rubyterm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubyterm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vidar Hokstad
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pure-x11
|
|
@@ -81,7 +81,6 @@ extensions: []
|
|
|
81
81
|
extra_rdoc_files: []
|
|
82
82
|
files:
|
|
83
83
|
- README.md
|
|
84
|
-
- bin/record
|
|
85
84
|
- bin/rubyterm
|
|
86
85
|
- example-config.toml
|
|
87
86
|
- lib/ansibackend.rb
|
data/bin/record
DELETED