cron_format 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/cron_format.rb +6 -3
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b7a9ad799ea0d334a9bcdd94b3cd030bc94b6e0
|
4
|
+
data.tar.gz: cfa16945499ebd07cad406d1b44ab5397a701ac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80640d911aa6ca0a7754edbd853b546bab8a8d664ec0c62bccae10f30adab0858edf3e11bc43f5b36fb150563b9caab17a3aeeaa93e2223261576000b035fe2e
|
7
|
+
data.tar.gz: 72804d3f01e34d5ae5b3f478d249fa4248f5d88af191fb58584cd275400e70ffedaddd6cd6bbc48a51ffdc66a95fca002ed7dc14e852b656e49417ddeda9022b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/cron_format.rb
CHANGED
@@ -25,6 +25,7 @@ class CronFormat
|
|
25
25
|
def next()
|
26
26
|
|
27
27
|
nudge() #unless @cron_string =~ %r{/}
|
28
|
+
#puts ':to_time : ' + @to_time.inspect
|
28
29
|
parse()
|
29
30
|
end
|
30
31
|
|
@@ -32,10 +33,11 @@ class CronFormat
|
|
32
33
|
|
33
34
|
def nudge()
|
34
35
|
|
36
|
+
t1 = @to_time
|
35
37
|
a = @cron_string.split
|
36
38
|
|
37
|
-
val = if @cron_string =~ %r{[
|
38
|
-
a.reverse.detect{|x| x[/[
|
39
|
+
val = if @cron_string =~ %r{[/,-]} then
|
40
|
+
a.reverse.detect{|x| x[/[\/,-]/]}
|
39
41
|
else
|
40
42
|
a.detect{|x| x != '*'}
|
41
43
|
end
|
@@ -53,7 +55,7 @@ class CronFormat
|
|
53
55
|
|
54
56
|
else
|
55
57
|
|
56
|
-
if val =~
|
58
|
+
if val =~ /[,-]/ then
|
57
59
|
1
|
58
60
|
else
|
59
61
|
val.to_i
|
@@ -81,6 +83,7 @@ class CronFormat
|
|
81
83
|
]
|
82
84
|
|
83
85
|
r = units[index].call @to_time, n
|
86
|
+
#r += MINUTE if r == t1
|
84
87
|
|
85
88
|
@to_time = r
|
86
89
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cron_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
MmJuAQVfTk9wZd03YN619a64hLGIvud4ASW7UVAW0B4U0PcmbhHvne07e11jt7j5
|
32
32
|
WwVcDIvT38Bo3hAt
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.4.5
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: cron_format
|
metadata.gz.sig
CHANGED
Binary file
|