jobtick 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jobtick/client.rb +7 -2
- data/lib/jobtick/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: 2622fb61abf2dd4f12286a7e70495e944b86a9ceee6c5997e3e90e60fe4c730f
|
|
4
|
+
data.tar.gz: ed3bb3de43b80f356fcce080b1f610980105523dc8817386a3edc5fe1a1a089c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b144dca7abfdc17f058dfcd792a83baf06c8a41e565624ddd35fda59c51a49ed1d8ec8af2b937f0ebc91414fbaf24b16a7371163764667b0e249684f7a7fd57
|
|
7
|
+
data.tar.gz: ae65ebbe65e372e788a10fabdc390e87d1371f8d215dc7950db9ab91021638874c0f4c91075aa95e236426452a24f00e84c78f13e1b584fe1fc5cb5a6e53d8cb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [0.3.1] - 2026-09-03
|
|
2
|
+
|
|
3
|
+
- Send the app's `Time.zone` (when running under Rails) with every monitor sync, so the server can resolve cron schedules like `20 4 * * *` in the app's own time zone instead of guessing. Fixes false "late" alerts for apps not running in UTC. Apps outside Rails, or without `Time.zone` set, are unaffected — the server falls back to the account's dashboard-configured time zone.
|
|
4
|
+
|
|
1
5
|
## [0.3.0] - 2026-08-20
|
|
2
6
|
|
|
3
7
|
- **Fix: Whenever monitors never actually registered.** `Parsers::Whenever` called a `Whenever::JobList#jobs` API that doesn't exist on the real gem (only `attr_reader :roles`), so every discovery attempt raised and was silently swallowed — no Whenever job has ever been registered by prior versions. The parser now reads the real, public `generate_cron_output` instead, and `WheneverSetup` injects the monitor key as a literal job option so the registered key and the pinged key are always the same value by construction. `config/schedule.rb` needs `require 'jobtick/whenever_setup'` before `JobTick::WheneverSetup.install!(self)` now — see the README.
|
data/lib/jobtick/client.rb
CHANGED
|
@@ -21,8 +21,13 @@ module JobTick
|
|
|
21
21
|
return unless JobTick.config.enabled?
|
|
22
22
|
|
|
23
23
|
payload = { monitors: monitors }
|
|
24
|
-
payload[:app_name]
|
|
25
|
-
payload[:prune]
|
|
24
|
+
payload[:app_name] = app_name if app_name && !app_name.empty?
|
|
25
|
+
payload[:prune] = true if prune
|
|
26
|
+
# Cron schedules (e.g. "20 4 * * *") are ambiguous without a zone — the
|
|
27
|
+
# server needs to know they mean 4:20am *here*, not 4:20am UTC. Only
|
|
28
|
+
# Rails apps define Time.zone; plain Ruby apps skip this and JobTick
|
|
29
|
+
# falls back to the account's dashboard-configured time zone.
|
|
30
|
+
payload[:time_zone] = Time.zone.name if Time.respond_to?(:zone) && Time.zone
|
|
26
31
|
|
|
27
32
|
if sync
|
|
28
33
|
Dispatcher.send_sync(SYNC_PATH, payload)
|
data/lib/jobtick/version.rb
CHANGED