fugit 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/CREDITS.md +2 -0
- data/LICENSE.txt +1 -1
- data/lib/fugit.rb +1 -1
- data/lib/fugit/cron.rb +6 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0a2fdae36b04308242e58a5da6b2d5e65e749cb10b02d0d408988611067e46b
|
4
|
+
data.tar.gz: 19d7a91ec345a2b35c1b7568e3a6cfe4e70fc6f780e0332972507bbef6bda0e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f5eccb6a96c688390dfdf231ba30812b05bdb22010ff1820b08eae5348809dd5793900c45c073500b8e1358ab90b4e40ee6bfd8badf4838d8e5b13a1d0f1428
|
7
|
+
data.tar.gz: 69fdda6d16c19beebae198a0610d69ab4496f1873b2ee7b825737f635ffd8744d054436f0b51dd372caa45e2945d8051d6a191b89ecd27d3c4a8b72bca59cffa
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
# CHANGELOG.md
|
3
3
|
|
4
4
|
|
5
|
+
## fugit 1.4.2 released 2021-01-12
|
6
|
+
|
7
|
+
* Fix Fugit::Cron.previous_time vs last day of month, gh-51
|
8
|
+
* Let Fugit::Cron.parse('') return nil, gh-49
|
9
|
+
|
10
|
+
|
5
11
|
## fugit 1.4.1 released 2020-11-25
|
6
12
|
|
7
13
|
* Suppress warning, gh-46, thanks @amatsuda
|
data/CREDITS.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
|
2
2
|
# fugit credits
|
3
3
|
|
4
|
+
* Solteszad https://github.com/solteszad gh-51, fix previous_time vs last day of month
|
5
|
+
* Niklas https://github.com/gr8bit gh-49, Fugit::Cron.parse('')
|
4
6
|
* Matsuda Akira https://github.com/amatsuda gh-46, warning suppression
|
5
7
|
* Honglooker https://github.com/honglooker gh-43, New York cron skip
|
6
8
|
* Jérôme Dalbert https://github.com/jeromedalbert gh-41, gh-42
|
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
Copyright (c) 2017-
|
2
|
+
Copyright (c) 2017-2021, John Mettraux, jmettraux+flor@gmail.com
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
data/lib/fugit.rb
CHANGED
data/lib/fugit/cron.rb
CHANGED
@@ -112,12 +112,7 @@ module Fugit
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def dec_month
|
115
|
-
|
116
|
-
#dec(@t.day * 24 * 3600 + @t.hour * 3600 + @t.min * 60 + @t.sec + 1)
|
117
|
-
#
|
118
|
-
# gh-18, so that '0 9 29 feb *' doesn't get skipped (over and over)
|
119
|
-
#
|
120
|
-
dec(@t.day * 24 * 3600 + 1)
|
115
|
+
dec((@t.day - 1) * 24 * 3600 + @t.hour * 3600 + @t.min * 60 + @t.sec + 1)
|
121
116
|
end
|
122
117
|
|
123
118
|
def dec_day
|
@@ -780,8 +775,12 @@ module Fugit
|
|
780
775
|
|
781
776
|
def rewrite_cron(t)
|
782
777
|
|
783
|
-
|
778
|
+
st = t
|
784
779
|
.sublookup(nil) # go to :ccron or :scron
|
780
|
+
|
781
|
+
return nil unless st
|
782
|
+
|
783
|
+
hcron = st
|
785
784
|
.subgather(nil) # list min, hou, mon, ...
|
786
785
|
.inject({}) { |h, tt|
|
787
786
|
h[tt.name] = tt.name == :tz ? rewrite_tz(tt) : rewrite_entry(tt)
|
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.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: raabro
|