tarazed 0.2.2 → 0.2.3
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/CHANGELOG.md +4 -0
- data/lib/tarazed/pty.rb +10 -1
- data/lib/tarazed/shell_integration.rb +1 -1
- data/lib/tarazed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c41400c6ac1b8380eac0eaebe756d80425c06b4273f709e8902467276d622d80
|
|
4
|
+
data.tar.gz: 1a859372283bf896d16bacfd9b444ed02ad891279cdd0315cc8d072d8d7852f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f007338660554ed33a141db5cf1b2fe4143837828cb5dbe723e083c4f9eba82d45593eef7c8c6ba3083a67150da1353515b34a9ff055a195e50cce788b83b5a
|
|
7
|
+
data.tar.gz: 912b5f4857e5cb99296ecfb7666eaeeb3c853397af6b8df1a94233f79c4aac3c0c9a3f5deb035d0f86d15ff260daaaa47ffddfb530da71f1eb36eb136f096191
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.2.3 - 2026-09-18
|
|
6
|
+
|
|
7
|
+
- Report the executable basename from string commands that include arguments.
|
|
8
|
+
|
|
5
9
|
## 0.2.2 - 2026-09-17
|
|
6
10
|
|
|
7
11
|
- Drain final Windows ConPTY output to EOF after the primary process exits without racing resize or close.
|
data/lib/tarazed/pty.rb
CHANGED
|
@@ -14,7 +14,16 @@ module Tarazed
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
@initial_cwd = File.expand_path(cwd)
|
|
17
|
-
|
|
17
|
+
executable = if command.is_a?(Array)
|
|
18
|
+
command.first
|
|
19
|
+
elsif Gem.win_platform?
|
|
20
|
+
value = command.to_s.lstrip
|
|
21
|
+
value.start_with?('"') ? value[/\A"([^"]*)"/, 1] : value.split(/\s/, 2).first
|
|
22
|
+
else
|
|
23
|
+
Shellwords.split(command.to_s).first
|
|
24
|
+
end
|
|
25
|
+
executable = executable.to_s.tr("\\", "/") if Gem.win_platform?
|
|
26
|
+
@command_name = File.basename(executable.to_s)
|
|
18
27
|
@grid = Grid.new(columns: columns, rows: rows, scrollback: scrollback)
|
|
19
28
|
if Gem.win_platform?
|
|
20
29
|
require_relative "windows/conpty"
|
|
@@ -8,7 +8,7 @@ module Tarazed
|
|
|
8
8
|
module_function
|
|
9
9
|
|
|
10
10
|
def path(shell)
|
|
11
|
-
name = File.basename(shell.to_s).to_sym
|
|
11
|
+
name = File.basename(shell.to_s).downcase.delete_suffix(".exe").to_sym
|
|
12
12
|
file = NAMES.fetch(name) { raise ArgumentError, "unsupported shell: #{shell}" }
|
|
13
13
|
File.expand_path("../../assets/shell-integration/#{file}", __dir__)
|
|
14
14
|
end
|
data/lib/tarazed/version.rb
CHANGED