fugit 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fugit might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0c9e5123de2ba25d006290c43946a4028fc3467ec3f424bf57b23ce5c41cd65
4
- data.tar.gz: c9f6a5bdc8d40e7b6c585dca633066df98ff22b298c9158c333c54c2fbb2bab3
3
+ metadata.gz: c0a2fdae36b04308242e58a5da6b2d5e65e749cb10b02d0d408988611067e46b
4
+ data.tar.gz: 19d7a91ec345a2b35c1b7568e3a6cfe4e70fc6f780e0332972507bbef6bda0e7
5
5
  SHA512:
6
- metadata.gz: 9135ff881b272674fb1768d2548efca04541f1aab790b04c6a9e060e172c722df7c73bd9dc98a221f7ab4e566b4600cb7e3f667ced5fbc92d7683667c7ab1c21
7
- data.tar.gz: 0f6e3113b06d2bc287a608f6215c3a902e3eedf410f6c83e5e7d9da79122b6562f9d400d3cf19f1cc45b662b72e1d740115aedf0502f9552e8af6bdb39db750f
6
+ metadata.gz: 1f5eccb6a96c688390dfdf231ba30812b05bdb22010ff1820b08eae5348809dd5793900c45c073500b8e1358ab90b4e40ee6bfd8badf4838d8e5b13a1d0f1428
7
+ data.tar.gz: 69fdda6d16c19beebae198a0610d69ab4496f1873b2ee7b825737f635ffd8744d054436f0b51dd372caa45e2945d8051d6a191b89ecd27d3c4a8b72bca59cffa
@@ -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
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2017-2020, John Mettraux, jmettraux+flor@gmail.com
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Fugit
4
4
 
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.2'
6
6
  end
7
7
 
8
8
  require 'time'
@@ -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
- hcron = t
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.1
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: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raabro