etunnel 1.7.36 → 1.7.37

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. data/README.md +5 -9
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c2ca57f4f352c01930317a9d4a92576b47daaaabb2934ce8bbd5d8f56fd2b76
4
- data.tar.gz: 7bed7c27f07b94d7a79ed766ecc293ce907e5a531557c67abc9df03a3c33eeee
3
+ metadata.gz: e575dd50595ae77ac4a0de148917a9bb0ee6f8329f2eea6c614c9b85477ec45f
4
+ data.tar.gz: 6728ee2481cd9896ccdd1b112f743c6b016b6f311bd29a78a1989e0ea964f4c2
5
5
  SHA512:
6
- metadata.gz: df3b3bbae54cc65b204b1c79ad317e8466011d02a1a56aa20704a858b9e06aeda96a63251c1b6df9dce15b71c8fca5d3feb9ec95db0d2110d86482f8b4eaac2c
7
- data.tar.gz: 74c5d196130b907f3073933037975ef9a00d946177e427f403a9fb2e040ff4e45192e8f75b7708422f63525dbe8ec1fd6503162f058223cfae4f72d4e0cdf4a8
6
+ metadata.gz: 7c794db0554a2d39159eaa6361fec9b319d1bccf3285426e9045668c7e408755e125fb75a207f45211f74e2eb06bada3d355793a5d3c502c2a15549a5fa8caf4
7
+ data.tar.gz: 8581460cde7022adc7192945b54318d6a9027ccfddc87b83f31777733238b6a5a858dc8d5149db525c9708fd2314d1889d59ecb6c10afb971a0424ee970a4d06
data/README.md CHANGED
@@ -34,7 +34,6 @@ sleep
34
34
  ```
35
35
  - Rules: print the public URL as `TUNNEL_URL: <url>` and keep the process alive; call `t.close` on shutdown to release the subdomain. This SDK is buffer-based (no WebSocket upgrades, no streaming) - fine for webhooks/APIs/dashboards.
36
36
  - Do not invent other options. Full API/options: #embed and #multi-target-routing. Wire protocol: https://github.com/topcheer/etunnel/blob/main/PROTOCOL.md
37
- - Known issue in 1.7.35: `t.resume_token` and the `etunnel` CLI crash (SystemStackError); do not rely on them.
38
37
  ````
39
38
 
40
39
  ## CLI
@@ -43,8 +42,9 @@ sleep
43
42
  etunnel 3000
44
43
  ```
45
44
 
46
- Prints `TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
47
- your local service. Ctrl-C closes the tunnel.
45
+ `bin/etunnel` calls `Etunnel.main`, which reads `ETUNNEL_*`, prints
46
+ `TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
47
+ your local service — and exits 0 on Ctrl-C.
48
48
 
49
49
  **Reconnects automatically.** If the connection drops (including a server
50
50
  restart) the CLI re-dials with exponential backoff (500ms → 30s, ±20%
@@ -54,10 +54,6 @@ jitter, reset on success) and prints `TUNNEL_URL:` again. The subdomain is
54
54
  server needs a stable `SESSION_SECRET`; see PROTOCOL.md §1). Set
55
55
  `ETUNNEL_RECONNECT=0` to restore the old one-shot behaviour.
56
56
 
57
- > **Status 1.7.35:** the gem's `etunnel` executable crashes right after
58
- > `welcome` (`SystemStackError` in `Etunnel.connect` -> `resume_token`,
59
- > `lib/etunnel.rb:166`). Use the embed below until a fixed gem is published.
60
-
61
57
  ## Embed
62
58
 
63
59
  ```ruby
@@ -72,9 +68,9 @@ sleep # keep the process alive
72
68
  ```
73
69
 
74
70
  `Etunnel.connect(server, local, token: nil, subdomain: nil, resume: nil, routes: nil)`
75
- blocks until `welcome` and returns a tunnel object: `t.url` (public URL),
71
+ blocks until `welcome` and returns an `Etunnel::Tunnel`: `t.url` (public URL),
76
72
  `t.resume_token` (server-signed token; replay it via `resume:` to reclaim the
77
- same subdomain - raises in 1.7.35, see above), `t.close` (sends `bye`).
73
+ same subdomain), `t.close` (sends `bye`).
78
74
  `local` is a port, `"host:port"`, or `nil` when `routes` is given. Each
79
75
  request is served on a worker thread; EventMachine runs in a background
80
76
  thread if no reactor is running (Rails: call `connect` from an initializer).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.36
4
+ version: 1.7.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - etunnel authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faye-websocket