gemkeeper 0.6.1 → 0.6.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: 1d3e578c286af3dd2fb1afe05cd1ff3ebdb275e6e024f2a69161ceb2ee812ac1
4
- data.tar.gz: db0d6c5b4b3af1aebafcc9875c324ad2b4991e12462aa247ff5ab0dc3711dbcb
3
+ metadata.gz: bdd18af649795ff1aea0372086c35be5c222bb61bde9d0f6df897037583ebfc1
4
+ data.tar.gz: 3ac3a4e5746ba9b5d5190c61a784db31b902d58dba50430644fcc81af2760d4b
5
5
  SHA512:
6
- metadata.gz: fc3b87939d1a5ba8cc2969b3a357600a71713676cb24e56192af313e88422fe3db388974396e17ffd864ba7690102f8b04f6befe325041d366a253daf6f3cbe9
7
- data.tar.gz: 54fa8c97cfc88018db387635156bedf9586cb05bdc4a27dc580a43f487dc89b9251a0db6025f58df6441f6e298b9ed540c2068b24872c869e56d21d9c39ad743
6
+ metadata.gz: b1d4a41032baa7fcc6b5d0b2297ced39290deebff90e31509e035bc05c46fbb6954ef5da9eda87873abe7c96fa5635388364bb516241db530794b2c567e020c6
7
+ data.tar.gz: 87cea4e589b463e79ecf716ce05c077eeeda1fbbaf0521250e0c0fed72f0b06ef8c5a61192210e5f35458de4a9daf7a3bf824ec83d75713a6d3acf82e7772570
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.6.2] - 2026-05-28
4
+
5
+ ### Fixed
6
+
7
+ - `gemkeeper server start --foreground` now works correctly when run as a Homebrew service (via `brew services start`).
8
+ launchd runs with a minimal PATH that does not include the gem's `bin/` directory, so `rackup` was silently not found and the server exited 0 on every launch attempt.
9
+ The server now resolves `rackup` from `GEM_HOME/bin` when available, matching the path set by the Homebrew bin wrapper.
10
+
3
11
  ## [0.6.1] - 2026-05-28
4
12
 
5
13
  ### Fixed
@@ -89,7 +97,8 @@
89
97
 
90
98
  - Initial release
91
99
 
92
- [Unreleased]: https://github.com/danhorst/gemkeeper/compare/v0.6.1...HEAD
100
+ [Unreleased]: https://github.com/danhorst/gemkeeper/compare/v0.6.2...HEAD
101
+ [0.6.2]: https://github.com/danhorst/gemkeeper/compare/0.6.1...0.6.2
93
102
  [0.6.1]: https://github.com/danhorst/gemkeeper/compare/0.6.0...0.6.1
94
103
  [0.6.0]: https://github.com/danhorst/gemkeeper/compare/0.5.0...0.6.0
95
104
  [0.5.0]: https://github.com/danhorst/gemkeeper/compare/0.4.0...0.5.0
@@ -47,10 +47,18 @@ module Gemkeeper
47
47
  end
48
48
 
49
49
  def build_rackup_cmd(*extra)
50
- ["rackup", @config.config_ru_path, "--host", "127.0.0.1",
50
+ [rackup_bin, @config.config_ru_path, "--host", "127.0.0.1",
51
51
  "-p", @config.port.to_s, "-s", "puma", *extra]
52
52
  end
53
53
 
54
+ def rackup_bin
55
+ gem_home = ENV.fetch("GEM_HOME", nil)
56
+ return "rackup" unless gem_home
57
+
58
+ candidate = File.join(gem_home, "bin", "rackup")
59
+ File.exist?(candidate) ? candidate : "rackup"
60
+ end
61
+
54
62
  def launch_daemon
55
63
  _stdout, stderr, status = Open3.capture3(*build_rackup_cmd("-D", "-P", @config.pid_file))
56
64
  raise ServerError, "Failed to start server:\n#{stderr}" unless status.success? || File.exist?(@config.pid_file)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemkeeper
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Brubaker Horst