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 +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/gemkeeper/rackup_process.rb +9 -1
- data/lib/gemkeeper/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: bdd18af649795ff1aea0372086c35be5c222bb61bde9d0f6df897037583ebfc1
|
|
4
|
+
data.tar.gz: 3ac3a4e5746ba9b5d5190c61a784db31b902d58dba50430644fcc81af2760d4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
[
|
|
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)
|
data/lib/gemkeeper/version.rb
CHANGED