terminalwire 0.3.0 → 0.3.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. metadata +4 -5
  3. data/Rakefile +0 -70
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ffb99692551801d30cf60032edb63b9c7e75f75a715d1cd51c058cbf0ffcf76
4
- data.tar.gz: 8af8d921da71922bded4c3913d927e95db70badb9cd16cca207e31931741d019
3
+ metadata.gz: 762b422a096fdb6abe6b0d5d2a44046a1a92e0ed13b7a7833930a77761aabd48
4
+ data.tar.gz: b7f35e8e78f02888466add7fde1b48440c3faa1325f69d3a20a8f1711f68871b
5
5
  SHA512:
6
- metadata.gz: e9dca80eff4d376bbe92105e1ffd859960e115f9e9077cfb68e8d82a34d86aab8929c7dfd721b3348b9933dcd3c9bdb2d9531781634a748fabdcc15d6a9e7c08
7
- data.tar.gz: a5fa02196c66d6d107aa3d3573d490a58ed4dfbbc348ee500a7bfbc6367c6f0b42fdc713acccc6647657376009b89f828a441789641080503470dc66072bf3b8
6
+ metadata.gz: 1c9123883b8327926d208ec1b754b08de9635799c64f645a61a2c4f3913586583991ee72efe4dd433e76431db3e70cb6e9dabc77ac948ef2cbb925bfd872df8f
7
+ data.tar.gz: 79854c0aff6c008c8504ca921c8ad1ffed557a9e193b0336247e07dc0bde032f4ca4bbbccd30d8e5f032c9992f2a2efe41a597920a63938d83c9c1972c1616ec
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminalwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  bindir: exe
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: terminalwire-client
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.3.0
18
+ version: 0.3.2
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.3.0
25
+ version: 0.3.2
26
26
  description: Stream command-line apps from your server without a web API
27
27
  email:
28
28
  - brad@terminalwire.com
@@ -32,7 +32,6 @@ executables:
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - Rakefile
36
35
  - exe/terminalwire
37
36
  - exe/terminalwire-exec
38
37
  homepage: https://terminalwire.com/ruby
data/Rakefile DELETED
@@ -1,70 +0,0 @@
1
- require 'pathname'
2
-
3
- task :default do
4
- ruby_version = "3.3.6"
5
- os = "osx"
6
- platform = "arm64"
7
- url = "https://github.com/YOU54F/traveling-ruby/releases/download/rel-20241122/traveling-ruby-20241122-#{ruby_version}-#{os}-#{platform}-full.tar.gz"
8
- path = Pathname.new("package/#{os}-#{platform}")
9
- gem = Gem::Specification.load("terminalwire.gemspec")
10
-
11
- sh "mkdir -p #{path}"
12
-
13
- # Don't bother downloading if we already have the file
14
- unless File.exist? path.join("lib/ruby/info/RUBY_COMPAT_VERSION")
15
- sh "mkdir -p #{path.join("lib/ruby")}"
16
- sh "curl -L #{url} | tar -xzf - -C #{path.join("lib/ruby")}"
17
- end
18
-
19
- # Install the base gem and all of its dependencies in the vendor directory.
20
- sh "gem install #{gem.name} --version '#{gem.version}' --install-dir #{path.join("lib/vendor")} --no-document --verbose"
21
-
22
- # Remove caches to make package smaller
23
- sh "rm -rf #{path.join("lib/vendor/cache")}"
24
- sh "rm -rf #{path.join("lib/vendor/bin")}"
25
- sh "rm -rf #{path.join("lib/vendor/doc")}"
26
- sh "rm -rf #{path.join("lib/vendor/plugins")}"
27
-
28
- File.write path.join("lib/boot.rb"), <<~RUBY
29
- # Resolve the base directory
30
- base_dir = File.expand_path("../..", __FILE__)
31
-
32
- # Add all gem paths under lib/vendor to the load path
33
- Dir.glob(File.join(base_dir, "lib/vendor/gems/*/lib")).each do |gem_path|
34
- $LOAD_PATH.unshift gem_path
35
- end
36
- RUBY
37
-
38
- gems = path.glob("lib/vendor/specifications/*.gemspec").each_with_object({}) do |spec_path, hash|
39
- spec = Gem::Specification.load(spec_path.to_s)
40
- hash[spec.name] = spec
41
- end
42
-
43
- terminalwire_gem = gems.fetch("terminalwire")
44
-
45
- gem_path = Pathname.new(terminalwire_gem.full_gem_path).relative_path_from path.expand_path
46
- exe_path = gem_path.join(terminalwire_gem.bindir, "terminalwire-exec")
47
-
48
- # Let's write the executable path into the thing...'
49
- File.write path.join("terminalwire-exec"), <<~RUBY
50
- #!/bin/bash
51
- # Resolve the directory of the current script
52
- SELFDIR="$(cd "$(dirname "$0")" && pwd)"
53
-
54
- # Path to the embedded Ruby executable
55
- RUBY_EXEC="$SELFDIR/lib/ruby/bin/ruby"
56
- BOOT_SCRIPT="$SELFDIR/lib/boot.rb"
57
- PROGRAM="$SELFDIR/#{exe_path}"
58
-
59
- # Pass the boot script and the main Ruby script to Ruby
60
- exec "$RUBY_EXEC" -r"$BOOT_SCRIPT" "$PROGRAM" "$@"
61
- RUBY
62
-
63
- File.chmod 0755, path.join("terminalwire-exec")
64
-
65
- # TODO: download and install each gem extension for its platform.
66
- native_gems = gems.values.select{ _1.extensions.any? }
67
- native_gems.each do |native_gem|
68
- p native_gem
69
- end
70
- end