yamine 0.9.0 → 0.9.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/lib/yamine/doctor.rb +9 -0
- data/lib/yamine/proxy_control.rb +6 -0
- data/lib/yamine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10912afade2197809c63bc0d6382d754eaa236f5996462a242554775f9e48c1e
|
|
4
|
+
data.tar.gz: f2100f695bc378b3bf95ad2089907e614eea6deea10cc4f3029a98397439eea0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abfaa410dd665fb70e0d280b0ba0142607a095fc94ea3c88c5ea213cf32dec415fd0fec6723770a3a346a2b5ce4042d0b23a78d7796bb50e280f11fad7dedb13
|
|
7
|
+
data.tar.gz: ffef03352feb6c30328769b6e6e5c87705458b711cb0b5cc7a7c0b0b6b9061c06ece931766cbd4c2ec9cf09e397f2fdacaf2ee6fcb87c6e707e9163026457926
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.2] — 2026-09-10
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **doctor's version check was blind to its own motivating case.** A
|
|
8
|
+
serving proxy that recorded no version predates the marker (added in
|
|
9
|
+
0.9.0), which means it is definitely not the code you have installed —
|
|
10
|
+
but with `version == nil` the check stayed silent. So the exact service
|
|
11
|
+
it exists to catch, a root service left behind by an older gem, kept
|
|
12
|
+
serving old code with doctor reporting `[ok] proxy state: consistent`.
|
|
13
|
+
It now warns and points at `sudo yamine service install`. (A machine
|
|
14
|
+
with no proxy at all is still silent — no version and nothing serving
|
|
15
|
+
is not a problem.)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.9.1] — 2026-09-10
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **`proxy stop` no longer says "not running" while a root service is
|
|
23
|
+
serving.** With nothing recorded — the shape left by a service
|
|
24
|
+
installed by a gem version that did not record state — it returned
|
|
25
|
+
`:not_running` even though 443 answered, sending people to hunt for a
|
|
26
|
+
process that was right there. It now detects the serving proxy and
|
|
27
|
+
points at `sudo yamine service uninstall`.
|
|
28
|
+
|
|
29
|
+
|
|
3
30
|
## [0.9.0] — 2026-09-10
|
|
4
31
|
|
|
5
32
|
### Fixed
|
data/lib/yamine/doctor.rb
CHANGED
|
@@ -124,6 +124,15 @@ module Yamine
|
|
|
124
124
|
if version && version != Yamine::VERSION
|
|
125
125
|
problems << "the running proxy is v#{version}, this CLI is v#{Yamine::VERSION}" \
|
|
126
126
|
" — re-register it: sudo yamine service install"
|
|
127
|
+
elsif version.nil? && serving
|
|
128
|
+
# A serving proxy that recorded no version predates the marker
|
|
129
|
+
# (added in 0.9.0), so it is definitely not the code we ship with
|
|
130
|
+
# now. Without this the version check was blind to exactly the
|
|
131
|
+
# service it exists to catch — an old root service keeps serving
|
|
132
|
+
# old code until it is re-registered.
|
|
133
|
+
problems << "the running proxy does not report a version (installed before " \
|
|
134
|
+
"v0.9.0), this CLI is v#{Yamine::VERSION}" \
|
|
135
|
+
" — re-register it: sudo yamine service install"
|
|
127
136
|
end
|
|
128
137
|
|
|
129
138
|
if problems.empty?
|
data/lib/yamine/proxy_control.rb
CHANGED
|
@@ -285,6 +285,12 @@ module Yamine
|
|
|
285
285
|
pid = read_pid(store)
|
|
286
286
|
port = proxy_port(store)
|
|
287
287
|
if pid.nil?
|
|
288
|
+
# Nothing recorded, but a service can still be serving — a
|
|
289
|
+
# root-installed proxy from an older gem recorded no state at all,
|
|
290
|
+
# and "Proxy is not running." while 443 answers would be a lie
|
|
291
|
+
# that sends people looking for a process that is right there.
|
|
292
|
+
return :needs_root if serving_port(store)
|
|
293
|
+
|
|
288
294
|
return :not_running unless port && listening?(port)
|
|
289
295
|
|
|
290
296
|
return :unknown_process
|
data/lib/yamine/version.rb
CHANGED