terminalwire-client 0.3.0.alpha2 → 0.3.0.alpha4

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: 9726b661cafd59111df490f90468921b29ce66c76244bd564b063d7f4380f154
4
- data.tar.gz: 9a1cbfd9b0d319b31f8e523f844c271d22819d9e7eb5dd5fe960e5c2c88d6f5a
3
+ metadata.gz: 6b901bcd9fba0455f7bbd34c4a8d734f2cd62d8e3a051e23c8f40c149d512fd2
4
+ data.tar.gz: d39e4b2b6a05799411085d5cf50310d667582aed6e6b972e5abc74d8005c9974
5
5
  SHA512:
6
- metadata.gz: d24831c1a8a3094e0078389efa492792d6cbf39f6320053c447865658e380c06c8fd36a5c701f68e446ad7339b1a9ae24e6ed97a6c9ae1b19d2d453c084cd1b2
7
- data.tar.gz: ba33cb455f1cd6ebd7402be7e29e835abe7b2c16e6e5fd2ad780eb3f1d02ba546070a8aec9dfd7e1238043fcaac7b52c0ee95f1bac40dc383124b57489aea2aa
6
+ metadata.gz: f74879beb4a27d013dea5ecc8027737bac4fd9bc904c262323533b8f57d696a6ee0d7fe6e6bd255605911c30ce44a639fa5e97870ff6c0f60eb97525ec0172e1
7
+ data.tar.gz: bb2d97f7d47f748693a3fe528699c07ee8d9fd5888aca61a5cb2e5d00b22a6d0c4df85fe099d57e6f12296b1b039edbc5cfb177a5a33d30a943c8c23c52faa5e
@@ -52,19 +52,6 @@ module Terminalwire::Client::Entitlement
52
52
  class Root < Base
53
53
  AUTHORITY = "terminalwire.com".freeze
54
54
 
55
- # Terminalwire checks these to install the binary stubs path.
56
- SHELL_INITIALIZATION_FILE_PATHS = %w[
57
- ~/.bash_profile
58
- ~/.bashrc
59
- ~/.zprofile
60
- ~/.zshrc
61
- ~/.profile
62
- ~/.config/fish/config.fish
63
- ~/.bash_login
64
- ~/.cshrc
65
- ~/.tcshrc
66
- ].freeze
67
-
68
55
  # Ensure the binary stubs are executable. This increases the
69
56
  # file mode entitlement so that stubs created in ./bin are executable.
70
57
  BINARY_PATH_FILE_MODE = 0o755
@@ -77,7 +64,7 @@ module Terminalwire::Client::Entitlement
77
64
  @paths.permit root_path
78
65
  @paths.permit root_pattern
79
66
  # Permit the dotfiles so terminalwire can install the binary stubs.
80
- SHELL_INITIALIZATION_FILE_PATHS.each do |path|
67
+ Terminalwire::Shells::All.login_files.each do |path|
81
68
  @paths.permit path
82
69
  end
83
70
 
@@ -86,6 +73,9 @@ module Terminalwire::Client::Entitlement
86
73
 
87
74
  # Used to check if terminalwire is setup in the user's PATH environment variable.
88
75
  @environment_variables.permit "PATH"
76
+
77
+ # Permit the shell environment variable so we can detect the user's shell.
78
+ @environment_variables.permit "SHELL"
89
79
  end
90
80
 
91
81
  # Grant access to the `~/.terminalwire/**/*` path so users can install
@@ -34,8 +34,8 @@ module Terminalwire
34
34
  alpn_protocols: Async::HTTP::Protocol::HTTP11.names
35
35
  )
36
36
 
37
- Async::WebSocket::Client.connect(endpoint) do |adapter|
38
- transport = Terminalwire::Transport::WebSocket.new(adapter)
37
+ Async::WebSocket::Client.connect(endpoint) do |connection|
38
+ transport = Terminalwire::Transport::WebSocket.new(connection)
39
39
  adapter = Terminalwire::Adapter::Socket.new(transport)
40
40
  Terminalwire::Client::Handler.new(adapter, arguments:, endpoint:, &configuration).connect
41
41
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminalwire-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.alpha2
4
+ version: 0.3.0.alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-23 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: launchy
@@ -29,14 +30,14 @@ dependencies:
29
30
  requirements:
30
31
  - - '='
31
32
  - !ruby/object:Gem::Version
32
- version: 0.3.0.alpha2
33
+ version: 0.3.0.alpha4
33
34
  type: :runtime
34
35
  prerelease: false
35
36
  version_requirements: !ruby/object:Gem::Requirement
36
37
  requirements:
37
38
  - - '='
38
39
  - !ruby/object:Gem::Version
39
- version: 0.3.0.alpha2
40
+ version: 0.3.0.alpha4
40
41
  description: Stream command-line apps from your server without a web API
41
42
  email:
42
43
  - brad@terminalwire.com
@@ -64,6 +65,7 @@ metadata:
64
65
  source_code_uri: https://github.com/terminalwire/ruby/tree/main/terminalwire-client
65
66
  changelog_uri: https://github.com/terminalwire/ruby/tags
66
67
  funding_uri: https://terminalwire.com/funding
68
+ post_install_message:
67
69
  rdoc_options: []
68
70
  require_paths:
69
71
  - lib
@@ -78,7 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
80
  - !ruby/object:Gem::Version
79
81
  version: '0'
80
82
  requirements: []
81
- rubygems_version: 3.6.2
83
+ rubygems_version: 3.5.9
84
+ signing_key:
82
85
  specification_version: 4
83
86
  summary: Ship a CLI for your web app. No API required.
84
87
  test_files: []