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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c614cedbb2f3c547a9338aab4e19ff9861d5da64a1688a34bb29b2f00f3c5781
4
- data.tar.gz: 297e80f11061fae2596697f78f0e19d97d6537c6133999c2df70b1f277e53292
3
+ metadata.gz: c41400c6ac1b8380eac0eaebe756d80425c06b4273f709e8902467276d622d80
4
+ data.tar.gz: 1a859372283bf896d16bacfd9b444ed02ad891279cdd0315cc8d072d8d7852f9
5
5
  SHA512:
6
- metadata.gz: 724ba37a3d343f37740d857d00cc38012d338d588cae81ddde319c0e7b362f6d88a6149abc991a283980366c471b6f4b70b87c3d6aa9a9a6d3e61097245dec24
7
- data.tar.gz: 787a10f3d001c3bae7501c23037c75ce53488749a3fecd2cdd9671f8d46fabe3d08c36503d89a18cf7c204a1465c8049e4537dc6353fca591d626744da7e2593
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
- @command_name = File.basename(Array(command).first.to_s)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tarazed
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarazed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada