terminalwire 0.1.5 → 0.1.7

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: 75925c367154b311709c4fbf293db71d7ba656261f6da2fe7b3da985e1aa8d4f
4
- data.tar.gz: e6516a019131634d16b3742453528a2a90decfaeef4e276af8546d60bae1174d
3
+ metadata.gz: 8bd8279b508f75e2d707b7dc94d58321694f3920de9781b65e45f44e3c83595e
4
+ data.tar.gz: 9899e73daed242f8516a03c419f5c07c6f675399fff147125dca99d4515f847a
5
5
  SHA512:
6
- metadata.gz: 8b072aad864cecc96c70a4381e880b778bdd0178490a2bd81f9ae7805eea5f29fb9e4b913fb17973a26d99a177be3f1a46fae038a4f89af66af60c4e7be01548
7
- data.tar.gz: f2e34e0ec2c7217b751d7cd4abf83f0a2c0bcb0cec3590d5bb8de4e3a1145e1be9c0b30d7a116108c6f4837bdf45e7c5161466b74e43ef552e0b44660ee8d622
6
+ metadata.gz: 9136ff6080599802796f2b96089785341128b3a2c814eb53527d47c993b7f21da000a716f4b7aad920bd2da91ff06bb88c34170db83636218d6b7351e2a7ce6d
7
+ data.tar.gz: 114660aa187d13544186409f6b65c9ff2ff429050ab9df49c70440b326c0f1961b30571e81227cc8b44d9c23059915c93ef0bf821ef77eea150100da57542d3b
data/exe/terminalwire CHANGED
@@ -1,2 +1,9 @@
1
- #!/usr/bin/env terminalwire-exec
2
- url: "wss://terminalwire.com/terminal"
1
+ #!/usr/bin/env ruby
2
+ require_relative "../lib/terminalwire.rb"
3
+
4
+ begin
5
+ Terminalwire::Client.websocket(url: "wss://terminalwire.com/terminal")
6
+ rescue Terminalwire::Error => e
7
+ puts e.message
8
+ exit 1
9
+ end
@@ -1,3 +1,5 @@
1
+ require "pathname"
2
+
1
3
  module Terminalwire::Client
2
4
  module Entitlement
3
5
  class Paths
@@ -9,7 +9,7 @@ module Terminalwire::Client
9
9
  def initialize(path:, arguments:)
10
10
  @arguments = arguments
11
11
  @path = Pathname.new(path)
12
- @configuration = YAML.load_file(@path)
12
+ @configuration = YAML.safe_load_file(@path)
13
13
  @url = URI(@configuration.fetch("url"))
14
14
  rescue Errno::ENOENT => e
15
15
  raise Terminalwire::Error, "File not found: #{@path}"
@@ -1,3 +1,5 @@
1
+ require "thor"
2
+
1
3
  module Terminalwire
2
4
  module Server
3
5
  module Resource
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Terminalwire
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminalwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-websocket