terminalwire 0.1.4 → 0.1.6

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: 1961141ea3c3667bbff1f44be8f95ce247128f9c41fe7c98b0f96bb4b1c5099e
4
- data.tar.gz: e206f7d31c8632a5e25a9d8e2d5e4eb974927450c463abb7f474887d07b7c1a1
3
+ metadata.gz: 3966d8f8d821f901ef4d25e99354c41f9f3076e11bc48a540bcc658c35361ebd
4
+ data.tar.gz: 00d0db43c02f230b6446daac71dc7e4cfdf2d4691daa74221060a7230272dea3
5
5
  SHA512:
6
- metadata.gz: 765fb306bb7c354511db2c0e6be9641c91d9207bbf2a97bcc6a0e67b039ab785061be38b0acc4ebea8a9784e43b3f211acefe9cda3200ed16dce1d14b95ce3f8
7
- data.tar.gz: 3d2ebd1e83bdc9bd6fa742b2ebc496fc871ead16bf43a487c47d236ac18a863494542c0fcb5cbea6bf9c3f366fbffe5c374a49c054b96463d134912329c243a4
6
+ metadata.gz: 94b404456c9393743d89bab399c43cb68ba6ad2f514697b4d43a49cff72f4afb0e819eb071185099f02d71eac375043fa3f79a7f821463881b14cf06a950076c
7
+ data.tar.gz: c79848bbc4b19d9021ebaa027689d97120b21a74b5100da23cd10ec2bce730bb413668ae8a3de0f3798ef0a205f5024357b64064659f1627282fecddbfd67058
data/exe/terminalwire ADDED
@@ -0,0 +1,9 @@
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.4"
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.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -140,6 +140,7 @@ description: Stream command-line apps from your server without a web API
140
140
  email:
141
141
  - brad@terminalwire.com
142
142
  executables:
143
+ - terminalwire
143
144
  - terminalwire-exec
144
145
  extensions: []
145
146
  extra_rdoc_files: []
@@ -151,6 +152,7 @@ files:
151
152
  - README.md
152
153
  - Rakefile
153
154
  - examples/exec/localrails
155
+ - exe/terminalwire
154
156
  - exe/terminalwire-exec
155
157
  - lib/generators/terminalwire/install/USAGE
156
158
  - lib/generators/terminalwire/install/install_generator.rb