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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 735c92664371a084ca36ef44ba7622fabdea3027abe19e64cfd5b39f58bac250
4
- data.tar.gz: bd64cac0a29019fa695a54ef7f9d6f6a8ca7f90aa2ecfd0a0da2d59dec0d52bf
3
+ metadata.gz: 510354d3834b40133fff5b01cda0ac035f58b327317098467a305ac2ca5372d4
4
+ data.tar.gz: 0bee2064ac6fc2f6d89c69e22ed3639d07341120a4dfecb0d77e025e94455148
5
5
  SHA512:
6
- metadata.gz: 23355961d770066f2cba918976485a8557a13b3f714a0b636e63719f3600bb4ad3cc6ad0f78515225a3ff5896befaed5067d87e38efec365190f42e2d4013da0
7
- data.tar.gz: 4f53fa0a1efe24d90d91fbf16f42e092e824ac1bff72b3117b2da794896af90c04a1f65aa292ea96346cecb3d5b4fb442c87eef6b186647c6182bacbd706e2c1
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 ||= parse_schedule(cron)
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
- Fugit.parse(schedule)
231
+ @_fugit = parse_cron_string(cron)
243
232
  end
244
233
 
245
234
  def parse_cron_string(string)
246
- schedule = parse_schedule(string)
235
+ schedule = Fugit.parse(string)
247
236
  schedule if schedule.instance_of?(Fugit::Cron)
248
237
  end
249
238
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '4.21.0'
5
+ VERSION = '4.21.1'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.21.0
4
+ version: 4.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon