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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e04ffd3cc7f9e27dc57953e65230cc43d518e3c03413ad1a0f39ef07ac9cde73
4
- data.tar.gz: ab9648e703ca1baa1397f07a397dad8a5bac19d4c9773a32c64a82e8ca1e1f92
3
+ metadata.gz: 2622fb61abf2dd4f12286a7e70495e944b86a9ceee6c5997e3e90e60fe4c730f
4
+ data.tar.gz: ed3bb3de43b80f356fcce080b1f610980105523dc8817386a3edc5fe1a1a089c
5
5
  SHA512:
6
- metadata.gz: f6ed9a0f0486689336f4eccc6d0d7c75eb20038b999399240ddab1015b5c85d8411a4b7aa08e8ba21943998b5f5efcfa67a6b288a149684ffdd95942744df721
7
- data.tar.gz: 4713a1d1f9ee0f4ee9e6e74de2dadac6f18b70fb85bb1f0036554a28feb487a35e1c2b01aea9fe3f7927a9beeb532adc1a87f3840a467cc660fe628fd5a98df8
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.
@@ -21,8 +21,13 @@ module JobTick
21
21
  return unless JobTick.config.enabled?
22
22
 
23
23
  payload = { monitors: monitors }
24
- payload[:app_name] = app_name if app_name && !app_name.empty?
25
- payload[:prune] = true if 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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JobTick
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobtick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clearstack Labs