fugit 1.3.8 → 1.3.9
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 +5 -0
- data/CREDITS.md +1 -0
- data/lib/fugit.rb +1 -1
- data/lib/fugit/cron.rb +10 -2
- 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: ff6ed980e9137d5c51dda0b2ca0a66dffb35ae99352168a50e92fadbf272442a
|
|
4
|
+
data.tar.gz: '00977091b588564591b180debb728806bce562eaf2145b413e752c2eda90652e'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c9290c85529fefb3ec1d8c664f4dabaa0e1bbe8d9430555a1af1c5c382e15afeb9f729fbc4b9eba00bf7db0a47625daf0f12a5328743b3f25af66728bd3d0b2
|
|
7
|
+
data.tar.gz: 67e65d620ebfb16c4c9d649e61ac743691c1bb77a2573ce750d8202bf5bb4f090a8d1feb86aab362b6916de9b028c3e7e00bdad8a708d3397736ede1c14f1b61
|
data/CHANGELOG.md
CHANGED
data/CREDITS.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# fugit credits
|
|
3
3
|
|
|
4
|
+
* Honglooker https://github.com/honglooker gh-43, New York cron skip
|
|
4
5
|
* Jérôme Dalbert https://github.com/jeromedalbert gh-41, gh-42
|
|
5
6
|
* Danny Ben Shitrit https://github.com/DannyBen nat variants, gh-38
|
|
6
7
|
* Dominik Sander https://github.com/dsander #rough_frequency 0, gh-36
|
data/lib/fugit.rb
CHANGED
data/lib/fugit/cron.rb
CHANGED
|
@@ -236,6 +236,8 @@ module Fugit
|
|
|
236
236
|
# the translation occurs in the timezone of
|
|
237
237
|
# this Fugit::Cron instance
|
|
238
238
|
|
|
239
|
+
zfrom = t.time.strftime('%z|%Z')
|
|
240
|
+
|
|
239
241
|
loop do
|
|
240
242
|
|
|
241
243
|
fail RuntimeError.new(
|
|
@@ -251,8 +253,14 @@ module Fugit
|
|
|
251
253
|
min_match?(t) || (t.inc_min; next)
|
|
252
254
|
sec_match?(t) || (t.inc_sec; next)
|
|
253
255
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
+
tt = t.time
|
|
257
|
+
st = tt.strftime('%F|%T')
|
|
258
|
+
zt = tt.strftime('%z|%Z')
|
|
259
|
+
#
|
|
260
|
+
if st == sfrom && zt != zfrom
|
|
261
|
+
from, sfrom, zfrom, ifrom = tt, st, zt, t.to_i
|
|
262
|
+
next
|
|
263
|
+
end
|
|
256
264
|
#
|
|
257
265
|
# when transitioning out of DST, this prevents #next_time from
|
|
258
266
|
# yielding the same literal time twice in a row, see gh-6
|
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.3.
|
|
4
|
+
version: 1.3.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Mettraux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: raabro
|