fugit 1.3.8 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86abe0dec557524b3ae8c7947f48ab15a52e49b240ecdb3f4103c916348e6e4c
4
- data.tar.gz: d440e0d52d49b6ad2893b05c269b7c6f96936cfcb4a3904750b3204568d2344a
3
+ metadata.gz: ff6ed980e9137d5c51dda0b2ca0a66dffb35ae99352168a50e92fadbf272442a
4
+ data.tar.gz: '00977091b588564591b180debb728806bce562eaf2145b413e752c2eda90652e'
5
5
  SHA512:
6
- metadata.gz: 13fe87e6bc9d37cf3822c1bed665651be254b8e4a3d262f20950dc6f14d6170495721a0cd79ca8324b35048d90ce71d996b654f23da2b4780df536b9f4bd8071
7
- data.tar.gz: 2623e274a96a689639fbbbcc22f77bc86f8bcc0f49644e459673a54eadfd39deecf8158b85948b6969339b7d6c9e2554537aa4c6575f63a56fd0333626b0ed88
6
+ metadata.gz: 1c9290c85529fefb3ec1d8c664f4dabaa0e1bbe8d9430555a1af1c5c382e15afeb9f729fbc4b9eba00bf7db0a47625daf0f12a5328743b3f25af66728bd3d0b2
7
+ data.tar.gz: 67e65d620ebfb16c4c9d649e61ac743691c1bb77a2573ce750d8202bf5bb4f090a8d1feb86aab362b6916de9b028c3e7e00bdad8a708d3397736ede1c14f1b61
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## fugit 1.3.9 released 2020-09-17
6
+
7
+ * Prevent "New York skip", gh-43, thanks @honglooker
8
+
9
+
5
10
  ## fugit 1.3.8 released 2020-08-06
6
11
 
7
12
  * Parse 'every day at 8:30' and ' at 8:30 pm', gh-42
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
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Fugit
3
3
 
4
- VERSION = '1.3.8'
4
+ VERSION = '1.3.9'
5
5
  end
6
6
 
7
7
  require 'time'
@@ -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
- st = t.time.strftime('%F|%T')
255
- (from, sfrom, ifrom = t.time, st, t.to_i; next) if st == sfrom
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.8
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-08-06 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raabro