fugit 1.7.0 → 1.7.1
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 +6 -0
- data/CREDITS.md +1 -0
- data/fugit.gemspec +1 -1
- data/lib/fugit/cron.rb +2 -2
- data/lib/fugit.rb +1 -1
- metadata +2 -3
- data/Makefile +0 -55
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 318e360c503855580a65262f188ae07d02a17c1e833aeb5d8d21e25a67a9805c
|
|
4
|
+
data.tar.gz: 54b9eaeba60e6c1a64db0ca2b5e86ed09e74d8c4afeb32677314946f8b1d5211
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2813ab3974e9dcc7b3b6552bc8a5855617ac40b26190f84a3cbd413108d4b2ebc6a8c9418389a873844161289f60d48bece8fc10ca25295414e2e04c1da1474
|
|
7
|
+
data.tar.gz: 6e8587a3894c801bc220f967e3f5b0fed6e1bdea0bc606841fe188f890c8a0f6756f4b5357fd4cd887ff7d9bfd0a6bde68a1405ff369f7b4d41b8ec3e14c1c4b
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
# CHANGELOG.md
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## fugit 1.7.1 released 2022-09-21
|
|
6
|
+
|
|
7
|
+
* Change behaviour for "0 0/5 * * *", gh-79
|
|
8
|
+
go "every 5h start hour 0", previous behaviour only triggered at hour 0
|
|
9
|
+
|
|
10
|
+
|
|
5
11
|
## fugit 1.7.0 released 2022-09-15
|
|
6
12
|
|
|
7
13
|
* Introduce the & cron syntax (day-of-month AND day-of-week), gh-78
|
data/CREDITS.md
CHANGED
data/fugit.gemspec
CHANGED
|
@@ -32,7 +32,7 @@ Time tools for flor and the floraison project. Cron parsing and occurrence compu
|
|
|
32
32
|
s.files = Dir[
|
|
33
33
|
'README.{md,txt}',
|
|
34
34
|
'CHANGELOG.{md,txt}', 'CREDITS.{md,txt}', 'LICENSE.{md,txt}',
|
|
35
|
-
'Makefile',
|
|
35
|
+
#'Makefile',
|
|
36
36
|
'lib/**/*.rb', #'spec/**/*.rb', 'test/**/*.rb',
|
|
37
37
|
"#{s.name}.gemspec",
|
|
38
38
|
]
|
data/lib/fugit/cron.rb
CHANGED
|
@@ -509,8 +509,6 @@ module Fugit
|
|
|
509
509
|
|
|
510
510
|
sta, edn, sla = r
|
|
511
511
|
|
|
512
|
-
sla = nil if sla == 1 # don't get fooled by /1
|
|
513
|
-
|
|
514
512
|
edn = max if sla && edn.nil?
|
|
515
513
|
|
|
516
514
|
return [ nil ] if sta.nil? && edn.nil? && sla.nil?
|
|
@@ -525,6 +523,8 @@ module Fugit
|
|
|
525
523
|
|
|
526
524
|
def range(min, max, sta, edn, sla)
|
|
527
525
|
|
|
526
|
+
return [ nil ] if sta == min && edn == max && sla == 1
|
|
527
|
+
|
|
528
528
|
fail ArgumentError.new(
|
|
529
529
|
'both start and end must be negative in ' +
|
|
530
530
|
{ min: min, max: max, sta: sta, edn: edn, sla: sla }.inspect
|
data/lib/fugit.rb
CHANGED
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.7.
|
|
4
|
+
version: 1.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Mettraux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: raabro
|
|
@@ -83,7 +83,6 @@ files:
|
|
|
83
83
|
- CHANGELOG.md
|
|
84
84
|
- CREDITS.md
|
|
85
85
|
- LICENSE.txt
|
|
86
|
-
- Makefile
|
|
87
86
|
- README.md
|
|
88
87
|
- fugit.gemspec
|
|
89
88
|
- lib/fugit.rb
|
data/Makefile
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## gem tasks ##
|
|
3
|
-
|
|
4
|
-
NAME = \
|
|
5
|
-
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name")
|
|
6
|
-
VERSION = \
|
|
7
|
-
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version")
|
|
8
|
-
|
|
9
|
-
count_lines:
|
|
10
|
-
find lib -name "*.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
|
|
11
|
-
find spec -name "*_spec.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
|
|
12
|
-
cl: count_lines
|
|
13
|
-
|
|
14
|
-
scan:
|
|
15
|
-
scan lib/**/*.rb
|
|
16
|
-
|
|
17
|
-
gemspec_validate:
|
|
18
|
-
@echo "---"
|
|
19
|
-
ruby -e "s = eval(File.read(Dir['*.gemspec'].first)); p s.validate"
|
|
20
|
-
@echo "---"
|
|
21
|
-
|
|
22
|
-
name: gemspec_validate
|
|
23
|
-
@echo "$(NAME) $(VERSION)"
|
|
24
|
-
|
|
25
|
-
cw:
|
|
26
|
-
find lib -name "*.rb" -exec ruby -cw {} \;
|
|
27
|
-
|
|
28
|
-
build: gemspec_validate
|
|
29
|
-
gem build $(NAME).gemspec
|
|
30
|
-
mkdir -p pkg
|
|
31
|
-
mv $(NAME)-$(VERSION).gem pkg/
|
|
32
|
-
|
|
33
|
-
push: build
|
|
34
|
-
gem push --otp "$(OTP)" pkg/$(NAME)-$(VERSION).gem
|
|
35
|
-
|
|
36
|
-
spec:
|
|
37
|
-
bundle exec rspec
|
|
38
|
-
test: spec
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## specific to project ##
|
|
42
|
-
|
|
43
|
-
info:
|
|
44
|
-
uname -a
|
|
45
|
-
bundle exec ruby -v
|
|
46
|
-
bundle exec ruby -Ilib -r et-orbi -e "EtOrbi._make_info"
|
|
47
|
-
|
|
48
|
-
tzones:
|
|
49
|
-
bundle exec ruby -r tzinfo -e "TZInfo::Timezone.all.each { |tz| p tz.name }"
|
|
50
|
-
#tzonesd:
|
|
51
|
-
# bundle exec ruby -r tzinfo -r tzinfo-data -e "::TZInfo::Timezone.all.each { |tz| p tz.name }"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.PHONY: count_lines scan gemspec_validate name cw build push spec info tzones
|
|
55
|
-
|