fugit 1.7.0 → 1.7.1

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: ea7cc032d87a0f7ae6b3d1c10b78b3a51ed489db18a1c8dd63f52ef05cfb165f
4
- data.tar.gz: 737984c5dfc4898ce0db368b63ddc8768feb5a88a02406dcb2ba17990e6e04ba
3
+ metadata.gz: 318e360c503855580a65262f188ae07d02a17c1e833aeb5d8d21e25a67a9805c
4
+ data.tar.gz: 54b9eaeba60e6c1a64db0ca2b5e86ed09e74d8c4afeb32677314946f8b1d5211
5
5
  SHA512:
6
- metadata.gz: 41f17852170b61062dabba069888f8e6323a9f58df21fb00855b151f9312c15bbc8dbcfdad9afc3704a5c0033ff753880c8cbc89b0886be620766637bc934486
7
- data.tar.gz: 47381199f997c6ad29d65eb1364fe5f931f025f32ef94c2c9c07badfa34a29aad9b8854c97b36151db7d0b976d053079e14f1411050107920cf15928c6d97300
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
@@ -1,6 +1,7 @@
1
1
 
2
2
  # fugit credits
3
3
 
4
+ * Joseph Halter, https://github.com/JosephHalter, gh-79
4
5
  * James Healy, https://github.com/yob, gh-76
5
6
  * John Bachir, https://github.com/jjb, gh-74
6
7
  * Vivek Miyani, https://github.com/vivekmiyani, gh-71
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Fugit
5
5
 
6
- VERSION = '1.7.0'
6
+ VERSION = '1.7.1'
7
7
  end
8
8
 
9
9
  require 'time'
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.0
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-15 00:00:00.000000000 Z
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
-