terminalwire-client 0.3.0.alpha2 → 0.3.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terminalwire/client/entitlement/policy.rb +4 -14
- data/lib/terminalwire/client.rb +2 -2
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b901bcd9fba0455f7bbd34c4a8d734f2cd62d8e3a051e23c8f40c149d512fd2
|
4
|
+
data.tar.gz: d39e4b2b6a05799411085d5cf50310d667582aed6e6b972e5abc74d8005c9974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/terminalwire/client.rb
CHANGED
@@ -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 |
|
38
|
-
transport = Terminalwire::Transport::WebSocket.new(
|
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.
|
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-
|
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.
|
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.
|
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.
|
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: []
|