terminalwire 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75925c367154b311709c4fbf293db71d7ba656261f6da2fe7b3da985e1aa8d4f
4
- data.tar.gz: e6516a019131634d16b3742453528a2a90decfaeef4e276af8546d60bae1174d
3
+ metadata.gz: 3966d8f8d821f901ef4d25e99354c41f9f3076e11bc48a540bcc658c35361ebd
4
+ data.tar.gz: 00d0db43c02f230b6446daac71dc7e4cfdf2d4691daa74221060a7230272dea3
5
5
  SHA512:
6
- metadata.gz: 8b072aad864cecc96c70a4381e880b778bdd0178490a2bd81f9ae7805eea5f29fb9e4b913fb17973a26d99a177be3f1a46fae038a4f89af66af60c4e7be01548
7
- data.tar.gz: f2e34e0ec2c7217b751d7cd4abf83f0a2c0bcb0cec3590d5bb8de4e3a1145e1be9c0b30d7a116108c6f4837bdf45e7c5161466b74e43ef552e0b44660ee8d622
6
+ metadata.gz: 94b404456c9393743d89bab399c43cb68ba6ad2f514697b4d43a49cff72f4afb0e819eb071185099f02d71eac375043fa3f79a7f821463881b14cf06a950076c
7
+ data.tar.gz: c79848bbc4b19d9021ebaa027689d97120b21a74b5100da23cd10ec2bce730bb413668ae8a3de0f3798ef0a205f5024357b64064659f1627282fecddbfd67058
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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Terminalwire
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler