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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaf865731aa7f369f532b56ea31e90fc542a1d0ce88c649bd39a336614bcd446
4
- data.tar.gz: 32daf9da2882ba26c505ceaecb41502a9a140005e0120c3d0036d64a3056a628
3
+ metadata.gz: add0fe16033c81c852e4605472ffee6aa840f4639864f04bbbadcbe15dcca024
4
+ data.tar.gz: 238ffdf540e08d38630c89034256826975250fb7ed13825d96a73fb7e50e51a9
5
5
  SHA512:
6
- metadata.gz: 8d6e3a1b56ecf612e5f5f8058b0f57e030ee03159629899825cf8ea804dc32839f68cb529f10ae93bcb160dc52774a075509fdd10f6a4e12b11cc574fc57de8c
7
- data.tar.gz: adcc26061be88db1f5da30f369b01f64f38e01fcb117118e37fb0581176e0b851d66305a28b3f2a2a7822ae8503e26fcdbe45c14b4d5c2657bcb3a52ea310a92
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RubyTerm
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-19 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- #!/bin/env ruby
2
-
3
- exec(%{ruby harness/cli.rb record --out /tmp/#{ARGV[0].gsub("/","_")}.rec -- #{ARGV.join(" ")}})