terminalwire-server 0.3.0 → 0.3.1

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: 20ffecba832963ca3bfba152b7f38d0b200049d57dff689c1d4fd76869d053dd
4
- data.tar.gz: d1a2bdd9852fb099ee38d75a11acad409207b48e5210cd64542b46a16a86b29b
3
+ metadata.gz: 630e0b19ad77de7edd2b621901d9680ab163c1a3cc88f0c1b158c2fb6640f4dd
4
+ data.tar.gz: f6056b4b3d78595e45b4523542c6c3c6ec04ed1c186062ab2a99e8328e31d39a
5
5
  SHA512:
6
- metadata.gz: 9ac998cf906ce0073a01855bad77f8a18027c629edfe1f4e1458611584abe777b60c4b207dd2092704d8b0aad0ad8df02ebb54e727e0ec0e535b068fff595e58
7
- data.tar.gz: e2e4a48c5f9c03f721c73caac174a168f4174c0d247afda2588075ef894377cfa01ac53e4432552c286db7b9b494c526e6e30ff1adb3e51bb3a3fd24ff41d401
6
+ metadata.gz: a9fcd89df4d47d42461894b041df74fbfbc426d8f9e15decc643bcfdb992792669651734dc9d395186207b23b20b4a3db0462e1247d869751d5d7f0b4b746880
7
+ data.tar.gz: 17fc02c1352b45d634cf0df5e700571d8336111ca89f14b0e48eb1bce7a7a93f642b46bcf3fee3b1705649ff083aab8097179de2f637129c54f96738a506cd99
@@ -57,10 +57,17 @@ module Terminalwire
57
57
  end
58
58
 
59
59
  module ClassMethods
60
- def start(given_args = ARGV, config = {})
61
- context = config.delete(:context)
62
- config[:shell] = Shell.new(context) if context
63
- super(given_args, config)
60
+ def terminalwire(arguments:, context:)
61
+ # I have to manually hack into the Thor dispatcher to get access to the instance
62
+ # of the CLI so I can slap the Rails helper methods in there, or other helpes
63
+ # raise [context.inspect, arguments.inspect, self.inspect].inspect
64
+ dispatch(nil, arguments.dup, nil, shell: terminalwire_shell(context)) do |instance|
65
+ yield instance
66
+ end
67
+ end
68
+
69
+ def terminalwire_shell(context)
70
+ Terminalwire::Server::Thor::Shell.new(context)
64
71
  end
65
72
  end
66
73
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminalwire-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-13 00:00:00.000000000 Z
10
+ date: 2025-02-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thor
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 0.3.0
32
+ version: 0.3.1
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.3.0
39
+ version: 0.3.1
40
40
  description: Stream command-line apps from your server without a web API
41
41
  email:
42
42
  - brad@terminalwire.com