etunnel 1.0.0 → 1.2.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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/lib/etunnel.rb +2 -2
  4. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fef3d0b4489dc6b413507a3df7b135535d6dcb108435a4549375fbb0a0519bf
4
- data.tar.gz: d3bdb54234f9caefe126784dced3c7f2cd252b7a2f1526448bdeaf7e8d41f738
3
+ metadata.gz: cfb6df27afac9bec851c57f58a89ab8fe538e0d152f593547a4a4af83fe4a496
4
+ data.tar.gz: cb7486b818ba6df62231b3da6359b1526d2f3d9bf2e5f365a2406d1bf05afb65
5
5
  SHA512:
6
- metadata.gz: fa6516ba349f1e9562195489a218062ca6dc6f86cd5f89ba224f2677eff8d00d6ada789919b2118577f08546a6f828322e74e4c163569fa065a933c09ec5ad83
7
- data.tar.gz: a8960d0a92e76922465837ea21ca05fa6d7faeecb0b1d191e98cde8376a47a18aed6075739cceab923b2aae74b7b14d149dfcc3229506cdc53c9dd9da947833b
6
+ metadata.gz: 80ada77a65248e850d5759a240e24f8f87dc2e7e6e62ca9799acdb6c47b242b8deb7b18a08ca3f4aa3cac5ad16dffd4ae7844ddbb8b15ab3421ead0d85dc8292
7
+ data.tar.gz: 1c7314d6de645bf7b082545fcd72c497226a35a266eba57025778936e36acc2b6f29d62750354fd21992f062d0e0d0d85df94b7f712dd8de5fa7bf05e8229a08
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # etunnel for Ruby
2
2
 
3
+ [![RubyGems](https://img.shields.io/gem/v/etunnel?label=RubyGems%20etunnel)](https://rubygems.org/gems/etunnel)
4
+
3
5
  EventMachine/faye-websocket based.
4
6
 
5
7
  Zero registration: every SDK client speaks the same tiny wire protocol
6
8
  ([PROTOCOL.md](../../PROTOCOL.md)) against any etunnel server
7
- (default `wss://t.ggcode.uk/tunnel`).
9
+ (default `wss://t.etun.uk/tunnel`).
8
10
 
9
11
  ## Install
10
12
 
@@ -20,14 +22,14 @@ Requires Ruby >= 2.7 (pulls in faye-websocket).
20
22
  etunnel 3000
21
23
  ```
22
24
 
23
- Prints `TUNNEL_URL: https://<subdomain>.t.ggcode.uk` — that URL now routes to
25
+ Prints `TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
24
26
  your local service. Ctrl-C closes the tunnel.
25
27
 
26
28
  ## Embed
27
29
 
28
30
  ```ruby
29
31
  require 'etunnel'
30
- t = Etunnel.connect('wss://t.ggcode.uk/tunnel', 3000)
32
+ t = Etunnel.connect('wss://t.etun.uk/tunnel', 3000)
31
33
  puts t.url
32
34
  ```
33
35
 
@@ -35,7 +37,7 @@ puts t.url
35
37
 
36
38
  | Variable | Meaning | Default |
37
39
  |---|---|---|
38
- | `ETUNNEL_SERVER` | tunnel server WebSocket URL | `wss://t.ggcode.uk/tunnel` |
40
+ | `ETUNNEL_SERVER` | tunnel server WebSocket URL | `wss://t.etun.uk/tunnel` |
39
41
  | `ETUNNEL_LOCAL` | local port or `host:port` (or 1st CLI arg) | `3000` |
40
42
  | `ETUNNEL_TOKEN` | paid-plan API key (optional) | - |
41
43
  | `ETUNNEL_SUBDOMAIN` | custom subdomain (paid plans) | random |
data/lib/etunnel.rb CHANGED
@@ -8,7 +8,7 @@
8
8
  #
9
9
  # Embed:
10
10
  # require_relative 'etunnel'
11
- # t = Etunnel.connect('wss://t.ggcode.uk/tunnel', 3000)
11
+ # t = Etunnel.connect('wss://t.etun.uk/tunnel', 3000)
12
12
  # puts t.url
13
13
  require 'json'
14
14
  require 'socket'
@@ -157,7 +157,7 @@ module Etunnel
157
157
  end
158
158
 
159
159
  def Etunnel.main(argv = ARGV)
160
- server = ENV['ETUNNEL_SERVER'] || 'wss://t.ggcode.uk/tunnel'
160
+ server = ENV['ETUNNEL_SERVER'] || 'wss://t.etun.uk/tunnel'
161
161
  local = argv[0] || ENV['ETUNNEL_LOCAL'] || '3000'
162
162
  begin
163
163
  t = Etunnel.connect(server, local,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - etunnel authors
@@ -23,8 +23,7 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '0.11'
26
- description: 'Expose a local service through an etunnel reverse-tunnel server with
27
- one line of code. '
26
+ description: "#{LONG} "
28
27
  executables:
29
28
  - etunnel
30
29
  extensions: []
@@ -55,6 +54,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
54
  requirements: []
56
55
  rubygems_version: 4.0.23
57
56
  specification_version: 4
58
- summary: Expose a local service through an etunnel reverse-tunnel server with one
59
- line of code
57
+ summary: 'Expose local services to the internet in one line of code: instant public
58
+ HTTPS URLs with automatic TLS, through NAT and firewalls, no signup.'
60
59
  test_files: []