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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65dc796c2e121f6376d6a76b1baa7bb1ada3598c7facf8634262c83915c9cf2c
4
- data.tar.gz: 0a2cea7a624133d68512b79e5e1060a96337a7da4948504313ea24ba6ecce080
3
+ metadata.gz: 10912afade2197809c63bc0d6382d754eaa236f5996462a242554775f9e48c1e
4
+ data.tar.gz: f2100f695bc378b3bf95ad2089907e614eea6deea10cc4f3029a98397439eea0
5
5
  SHA512:
6
- metadata.gz: c1f73c73193f3e9c4eae8615ad0b790111bd2c6f29615a19f35c380e99db2d2a1a239e38b10c9328795a6f1c7cf1b28b0ecce721cb5414710769ba63a99b622b
7
- data.tar.gz: 2200ab3b518fac757902b25e7ec2e6933d08e2183830aba2bbf5d893622b2ded021cc7bf4f07064e6efe9ff7500dad408ea73f7bc30a4c83c25b645829bdfdf2
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?
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yamine
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto