fugit 1.1.10 → 1.2.0
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/fugit.gemspec +1 -1
- data/lib/fugit.rb +1 -1
- data/lib/fugit/cron.rb +19 -12
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb66d9d6eedbe579f1c5ee04d70cd10af36b2be
|
4
|
+
data.tar.gz: cc83ab367d09e4af91cc1fc82d43077eab81285b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5abf2492c6a49f7ce5ae70cd49b769f597d363aefee055d806676b5b0d45078cd6e03291f06bbf1e04eed2f4052692413b0450bce7d5fc85a851592ee7bdd7d8
|
7
|
+
data.tar.gz: fac490d0d5deea7d429001b7ee9e9420b5855679d2bc2bb8b1db2d5a919cf045065b7751d41673e5db1276526ec4206a651a8bb22df16be16e40be6ff2edf52e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
# CHANGELOG.md
|
3
3
|
|
4
4
|
|
5
|
+
## fugit 1.2.0 released 2019-04-22
|
6
|
+
|
7
|
+
* Accept "/15 * * * *" et al, gh-19 and resque/resque-scheduler#649
|
8
|
+
* Stop fooling around and stick to https://semver.org
|
9
|
+
|
10
|
+
|
5
11
|
## fugit 1.1.10 released 2019-04-12
|
6
12
|
|
7
13
|
* Implement `"0 9 * * sun%2+1"`
|
data/fugit.gemspec
CHANGED
@@ -43,7 +43,7 @@ Time tools for flor and the floraison project. Cron parsing and occurrence compu
|
|
43
43
|
s.add_runtime_dependency 'raabro', '~> 1.1'
|
44
44
|
s.add_runtime_dependency 'et-orbi', '~> 1.1', '>= 1.1.8'
|
45
45
|
|
46
|
-
s.add_development_dependency 'rspec', '~> 3.
|
46
|
+
s.add_development_dependency 'rspec', '~> 3.8'
|
47
47
|
s.add_development_dependency 'chronic', '~> 0.10'
|
48
48
|
|
49
49
|
s.require_path = 'lib'
|
data/lib/fugit.rb
CHANGED
data/lib/fugit/cron.rb
CHANGED
@@ -567,25 +567,32 @@ module Fugit
|
|
567
567
|
def sor_dow(i); alt(nil, i, :star, :r_dow); end
|
568
568
|
|
569
569
|
# sorws: star or range with[out] slash
|
570
|
-
def sorws_mos(i); seq(
|
571
|
-
def sorws_hou(i); seq(
|
572
|
-
def sorws_dom(i); seq(
|
573
|
-
def sorws_mon(i); seq(
|
574
|
-
def sorws_dow(i); seq(
|
570
|
+
def sorws_mos(i); seq(nil, i, :sor_mos, :slash, '?'); end
|
571
|
+
def sorws_hou(i); seq(nil, i, :sor_hou, :slash, '?'); end
|
572
|
+
def sorws_dom(i); seq(nil, i, :sor_dom, :slash, '?'); end
|
573
|
+
def sorws_mon(i); seq(nil, i, :sor_mon, :slash, '?'); end
|
574
|
+
def sorws_dow(i); seq(nil, i, :sor_dow, :slash, '?'); end
|
575
|
+
|
576
|
+
# ssws: slash or sorws
|
577
|
+
def mos_elt(i); alt(:elt, i, :slash, :sorws_mos); end
|
578
|
+
def hou_elt(i); alt(:elt, i, :slash, :sorws_hou); end
|
579
|
+
def dom_elt(i); alt(:elt, i, :slash, :sorws_dom); end
|
580
|
+
def mon_elt(i); alt(:elt, i, :slash, :sorws_mon); end
|
581
|
+
def dow_elt(i); alt(:elt, i, :slash, :sorws_dow); end
|
575
582
|
|
576
583
|
def mod(i); rex(:mod, i, /%\d+(\+\d+)?/); end
|
577
584
|
|
578
585
|
def mod_dow(i); seq(:elt, i, :dow, :mod); end
|
579
586
|
def h_dow(i); seq(:elt, i, :dow, :dow_hash); end
|
580
587
|
|
581
|
-
def
|
588
|
+
def dow_elt_(i); alt(nil, i, :h_dow, :mod_dow, :dow_elt); end
|
582
589
|
|
583
|
-
def list_sec(i); jseq(:sec, i, :
|
584
|
-
def list_min(i); jseq(:min, i, :
|
585
|
-
def list_hou(i); jseq(:hou, i, :
|
586
|
-
def list_dom(i); jseq(:dom, i, :
|
587
|
-
def list_mon(i); jseq(:mon, i, :
|
588
|
-
def list_dow(i); jseq(:dow, i, :
|
590
|
+
def list_sec(i); jseq(:sec, i, :mos_elt, :comma); end
|
591
|
+
def list_min(i); jseq(:min, i, :mos_elt, :comma); end
|
592
|
+
def list_hou(i); jseq(:hou, i, :hou_elt, :comma); end
|
593
|
+
def list_dom(i); jseq(:dom, i, :dom_elt, :comma); end
|
594
|
+
def list_mon(i); jseq(:mon, i, :mon_elt, :comma); end
|
595
|
+
def list_dow(i); jseq(:dow, i, :dow_elt_, :comma); end
|
589
596
|
|
590
597
|
def lsec_(i); seq(nil, i, :list_sec, :s); end
|
591
598
|
def lmin_(i); seq(nil, i, :list_min, :s); end
|
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
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: raabro
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '3.
|
53
|
+
version: '3.8'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '3.
|
60
|
+
version: '3.8'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: chronic
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.6.14.3
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: time tools for flor
|