good_job 4.21.0 → 4.21.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 +12 -0
- data/app/models/good_job/cron_entry.rb +3 -14
- data/lib/good_job/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: 510354d3834b40133fff5b01cda0ac035f58b327317098467a305ac2ca5372d4
|
|
4
|
+
data.tar.gz: 0bee2064ac6fc2f6d89c69e22ed3639d07341120a4dfecb0d77e025e94455148
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae50900ba6a6db18dc13112a3999a12fc215e1f0f856e761b253fbfa02689ded6a01e3c2bb7aaf776465e822fb7b0ca1d2075dff9c784fc14e62a4ebbec82dcb
|
|
7
|
+
data.tar.gz: 5b939f61fa88f4dbdfed4ef48bc7ea0d0702e09b01c8e7ca7008e2e9cf4c112568e0a299197eb7985da9fb05e89a81d5d332a4bedbc98aac7dad6268d9f91579
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v4.21.1](https://github.com/bensheldon/good_job/tree/v4.21.1) (2026-10-07)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.21.0...v4.21.1)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Fix crash on natural language cron schedules \(v4.21.0 regression\) [\#1853](https://github.com/bensheldon/good_job/pull/1853) ([bensheldon](https://github.com/bensheldon))
|
|
10
|
+
|
|
11
|
+
**Closed issues:**
|
|
12
|
+
|
|
13
|
+
- v4.21.0 regression: undefined method 'next\_time' for an instance of EtOrbi::EoTime [\#1852](https://github.com/bensheldon/good_job/issues/1852)
|
|
14
|
+
|
|
3
15
|
## [v4.21.0](https://github.com/bensheldon/good_job/tree/v4.21.0) (2026-10-06)
|
|
4
16
|
|
|
5
17
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.20.0...v4.21.0)
|
|
@@ -226,24 +226,13 @@ module GoodJob # :nodoc:
|
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
def fugit
|
|
229
|
-
@_fugit
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
# Parses strictly so Fugit's natural language parser cannot turn nonsense
|
|
233
|
-
# into a misleading schedule (e.g. "every 5 hours" becomes "0 */5 * * *",
|
|
234
|
-
# running five times a day rather than every five hours).
|
|
235
|
-
def parse_schedule(schedule)
|
|
236
|
-
Fugit.parse(schedule, strict: true)
|
|
237
|
-
rescue NoMethodError => e
|
|
238
|
-
# Fugit::Nat#restrict calls Integer#match on non-interval slots; in that
|
|
239
|
-
# case there is nothing to reject and the lenient parse is equivalent.
|
|
240
|
-
raise unless e.name == :match && e.receiver.is_a?(Integer)
|
|
229
|
+
return @_fugit if defined?(@_fugit)
|
|
241
230
|
|
|
242
|
-
|
|
231
|
+
@_fugit = parse_cron_string(cron)
|
|
243
232
|
end
|
|
244
233
|
|
|
245
234
|
def parse_cron_string(string)
|
|
246
|
-
schedule =
|
|
235
|
+
schedule = Fugit.parse(string)
|
|
247
236
|
schedule if schedule.instance_of?(Fugit::Cron)
|
|
248
237
|
end
|
|
249
238
|
|
data/lib/good_job/version.rb
CHANGED