cloudflare-tunnel 0.1.0 → 0.1.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: c80792cd4e7e48be6c97df5edf07c554d6285394607f70926e4e2a0d019572c7
4
- data.tar.gz: b0bd9ffc636ec2029a83234d8172d5c8fba76ac20ba8b4e53b42e56c5df4b831
3
+ metadata.gz: 2ea3e9bbd9ecd0f7ef6cb2eeabdca4760e9eb19552b8963f75a2f42e0e5aa1b8
4
+ data.tar.gz: f46147c532acd667159de9c8ecc9c7429161158d87339d0dbf9909c7e2a8d88f
5
5
  SHA512:
6
- metadata.gz: d91a8ac77dd2452910e816080413197b61c4d4b1a6353aa7a75dc9f2e2270ed4f24c14e17163aa00b11b999555ea2df0a535de36891d9b3004bf52c0dfb46c40
7
- data.tar.gz: 6150c30d7d44ab48f3ecfe78fc2e9d192ebd4e41da51b4c31f7c77622a2f5465849923753d110c39fdcca0bee337e6a6722f218c4431e3c6be97e0be8832ca8b
6
+ metadata.gz: a47bb799b0be25af2f4efe7ca62778bacb73626c1e655a25e181cfd5d879db950017e7435c1ecb85e5d27a20ceaa26afe06f99358a1feb346c2e91d662d436f1
7
+ data.tar.gz: fdf2eec0c5773448a2570ce478ae23de834ac7c89392c40962dc970334bccdbc9b50e3ed447c110f2e61bd33806b51ccfd53004613f2c003a27dd6dd1f42243f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,45 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.1] - 2026-11-04
9
+
10
+
11
+ ### Added
12
+
13
+ - migrate Cloudflare Tunnel to Ethos Gemkit
14
+
15
+
16
+
17
+
18
+ ### Changed
19
+
20
+ - remove the verified legacy implementation
21
+
22
+ - pin verified release artifact and tag safeguards
23
+
24
+ - reduce the gem to shared workflow callers
25
+
26
+ - publish reviewed release PRs through gemkit
27
+
28
+ - pin the toolkit cache verification fix
29
+
30
+ - adopt the published Gemkit 0.1.0 release
31
+
32
+
33
+
34
+
35
+ ### Fixed
36
+
37
+ - activate the bundle before loading gemkit tasks
38
+
39
+ - ignore Bundler's CI dependency cache
40
+
41
+
42
+
1
43
  ## [0.1.0] - 2026-11-04
2
44
 
3
45
  ### Added
data/README.md CHANGED
@@ -5,7 +5,8 @@ Offline startup and connection loss stay quiet and do not stop the server or
5
5
  jobs. The gem supervises an existing `cloudflared` executable; it never installs,
6
6
  downloads or updates it, creates a tunnel, or changes DNS.
7
7
 
8
- Requires Ruby 4.0+, Rails 8.1 and a POSIX host (Linux or macOS).
8
+ Requires Ruby 4.0+ and a POSIX host (Linux or macOS). Rails integration
9
+ requires host-installed Rails 8.1+. Runner and probe classes can load without Rails.
9
10
  MIT licensed; maintained by [Ethos Link](https://www.ethos-link.com).
10
11
  This is an independent integration.
11
12
 
@@ -138,8 +139,37 @@ Minitest, Standard Ruby, the gem build and changelog generation. Tests control
138
139
  connector executables and HTTP boundaries; they need no Cloudflare account or
139
140
  internet once dependencies are installed.
140
141
 
141
- Use `bundle exec rake -T` to list available tasks. See the
142
- [changelog](CHANGELOG.md) for version history.
142
+ Development defaults come from the published `ethos-gemkit` 0.1.0 gem. Workflow
143
+ callers pin the same release commit. `bin/ci` runs the shared lint, test, package
144
+ and git-cliff checks.
145
+
146
+ ## Releases
147
+
148
+ After configuring the shared RubyGems trusted publisher, start from clean,
149
+ up-to-date main and run:
150
+
151
+ ```sh
152
+ git switch main
153
+ git pull --ff-only
154
+ bundle install
155
+ bundle exec rake 'release:prepare[patch]'
156
+ ```
157
+
158
+ Use `minor`, `major` or an explicit version instead of `patch` when appropriate.
159
+ The task creates `chore/release-vVERSION`, updates the version, changelog and
160
+ lockfile, runs all checks, commits with hooks enabled, pushes the branch and
161
+ opens a release PR. Review the PR and any upgrade notes before merging.
162
+
163
+ **Merging that release PR builds, tags and publishes the gem automatically.**
164
+ The shared workflow uses the exact reviewed merge commit and creates the GitHub
165
+ release after publication. The normal flow needs no manual tag command.
166
+ For failed release notes, rerun only failed jobs in the original workflow run;
167
+ the same artifact is reused without republishing. The
168
+ [toolkit release guide](https://github.com/ethos-link/ethos-gemkit#releasing-a-gem)
169
+ covers CLI/hook prerequisites, publisher fields, environment permissions,
170
+ preparation failures and upload reconciliation.
171
+
172
+ GitLab sync has no caller because no target URL is configured.
143
173
 
144
174
  ## More from Ethos Link
145
175
 
data/UPGRADE.md ADDED
@@ -0,0 +1,14 @@
1
+ # Upgrade notes
2
+
3
+ ## Unreleased
4
+
5
+ Ruby 4.0 or newer is required. Rails integration requires host-installed Rails
6
+ 8.1 or newer within Rails 8. Railties is optional: core runner and probe entry
7
+ points work without it. Applications that load the core before Rails should
8
+ explicitly require `cloudflare/tunnel/rails` after installing compatible Rails.
9
+
10
+ Development uses a pinned ethos-gemkit dependency. Run `release:prepare` from
11
+ current main to create a verified release PR.
12
+ Merging that PR automatically tags and publishes its reviewed merge commit.
13
+ The shared RubyGems workflow requires the trusted-publisher registration described
14
+ in the toolkit README before its first live release.
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails"
4
+ require "rails/railtie"
5
+ require "cloudflare-tunnel"
6
+ require "cloudflare/tunnel/railtie"
@@ -1,5 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails"
4
+ require "rails/railtie"
5
+
6
+ unless Gem::Requirement.new(">= 8.1", "< 9").satisfied_by?(Gem.loaded_specs.fetch("railties").version)
7
+ raise LoadError, "cloudflare-tunnel integration requires Rails 8.1 or newer within Rails 8"
8
+ end
9
+
3
10
  module Cloudflare
4
11
  module Tunnel
5
12
  class Railtie < Rails::Railtie
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cloudflare
4
4
  module Tunnel
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflare-tunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Fidalgo
@@ -11,25 +11,25 @@ cert_chain: []
11
11
  date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: railties
14
+ name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '8.1'
19
+ version: '3.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '9'
22
+ version: '4'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '8.1'
29
+ version: '3.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '9'
32
+ version: '4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: net-http
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -75,12 +75,14 @@ files:
75
75
  - CHANGELOG.md
76
76
  - LICENSE.txt
77
77
  - README.md
78
+ - UPGRADE.md
78
79
  - lib/cloudflare-tunnel.rb
79
80
  - lib/cloudflare/tasks/tunnel.rake
80
81
  - lib/cloudflare/tunnel.rb
81
82
  - lib/cloudflare/tunnel/check.rb
82
83
  - lib/cloudflare/tunnel/configuration.rb
83
84
  - lib/cloudflare/tunnel/probe.rb
85
+ - lib/cloudflare/tunnel/rails.rb
84
86
  - lib/cloudflare/tunnel/railtie.rb
85
87
  - lib/cloudflare/tunnel/runner.rb
86
88
  - lib/cloudflare/tunnel/version.rb
@@ -104,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
106
  requirements:
105
107
  - - ">="
106
108
  - !ruby/object:Gem::Version
107
- version: 4.0.0
109
+ version: '4.0'
108
110
  required_rubygems_version: !ruby/object:Gem::Requirement
109
111
  requirements:
110
112
  - - ">="