fugit 1.12.2 → 1.12.3

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: dbfc8b39f64a9745e37dcc8f20b5e923378a76a66a5ceecda42d9892ebcfc6fb
4
- data.tar.gz: 19dc7123a550e62a242aed23ce401a8f3084cbc6fb6321e281dc03b706702b0a
3
+ metadata.gz: f588451db0cf7643afd0ecd89313863b4ca89913872547f0dd8342343fec1b57
4
+ data.tar.gz: a0832d2aecbe4b158a3deef01ac7c230cd8de3ff2c3dc5a1da4e871a516d27c6
5
5
  SHA512:
6
- metadata.gz: '089240f70ced2e63f3cd18c74dd58da00e372137ee2768b002a24fb452cf6c0f0bd539e192667a0e20b2dd83082eccefc82ff2c8605a0ca405e667c6ba3c81c6'
7
- data.tar.gz: 59dca013d409f191481ad0f3038ed697627f5f2f5b589cfd33c9547cde3d35ab6771c35f28b751504dc6325b107b1556b75949fab0f4ca94d47204ebfb3b14b1
6
+ metadata.gz: 5fca6043aef60a7c895b991f364714f1d26f3ef0922d477fc624a4f4cdc51dc948542fca4638567e2416fa4ff4c75e267f03991d7624f2515745d8e8be203314
7
+ data.tar.gz: 8ddb37f7d0f961dc341757fff83ef1cf844df7a7ffc7aaedc1eed0dca6fea4be217029e2a266cb8ce774303e174f4e27713854b4058cf6f12b3c2aa6eb78d1ca
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## fugit 1.12.3 released 2026-07-01
6
+
7
+ * Wrap-around for weekday ranges with step value, gh-119 Nicolas Bachschmidt
8
+
9
+
5
10
  ## fugit 1.12.2 released 2026-05-28
6
11
 
7
12
  * Fix "divide by zero" gh-117
data/CREDITS.md CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  # fugit credits
3
3
 
4
+ * Nicolas Bachschmidt https://github.com/baarde gh-120 weekday wrap fix
4
5
  * JebeenLee https://github.com/JebeenLee gh-117 divide by zero
5
6
  * Eric Claerhout https://github.com/swebra gh-114 rweek readme clarity
6
7
  * Hugh Kelsey https://github.com/hughkelsey gh-114 rweek/rday / wed%4+1,wed%4
data/lib/fugit/cron.rb CHANGED
@@ -692,8 +692,11 @@ module Fugit
692
692
  if ha || mo
693
693
  @weekdays << [ a, ha || mo ]
694
694
  elsif sl
695
- ((a || 0)..(z || (a ? a : 6))).step(sl < 1 ? 1 : sl)
696
- .each { |i| @weekdays << [ i ] }
695
+ z ||= (a ? a : 6)
696
+ a ||= 0
697
+ z = z + 7 if a > z
698
+ (a..z).step(sl < 1 ? 1 : sl)
699
+ .each { |i| @weekdays << [ (i > 6) ? i - 7 : i ] }
697
700
  elsif z
698
701
  z = z + 7 if a > z
699
702
  (a..z).each { |i| @weekdays << [ (i > 6) ? i - 7 : i ] }
data/lib/fugit.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Fugit
5
5
 
6
- VERSION = '1.12.2'
6
+ VERSION = '1.12.3'
7
7
  end
8
8
 
9
9
  require 'time'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fugit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.2
4
+ version: 1.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-28 00:00:00.000000000 Z
11
+ date: 2026-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raabro