chronic_cron 0.2.11 → 0.2.12
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.tar.gz.sig +0 -0
- data/lib/chronic_cron.rb +3 -3
- metadata +1 -1
- metadata.gz.sig +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5993174023cf0c1d4e292acac26d21f06c675775
|
4
|
+
data.tar.gz: ba5f05a6ec696acdfc5a0dd708217290936cef63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21fda04446ac1d0f0144e119a702c44467b87bda5ce94ec774869bdefce2b5c7aad9a7069cfcfedb37b22c19847c152d25605e2ad121f28a981f6f3ee7b740db
|
7
|
+
data.tar.gz: cf09f5cb2ae553a8f2c45134c2951c7a1cd10a01a9dbb22bf67bfe5f30a00c70b02d355b56039efe035fbbfd2ca651c70d72db24d8930fdf752806e694301484
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/chronic_cron.rb
CHANGED
@@ -19,14 +19,15 @@ class ChronicCron
|
|
19
19
|
@params = {}
|
20
20
|
expressions(@params)
|
21
21
|
|
22
|
-
@to_expression = find_expression
|
23
|
-
|
22
|
+
@to_expression = find_expression(s.sub(/^(?:on|at)\s+/,''))
|
23
|
+
|
24
24
|
if @to_expression.nil? then
|
25
25
|
t = Chronic.parse(s)
|
26
26
|
@to_expression = "%s %s %s %s * %s" % t.to_a.values_at(1,2,3,4,5)
|
27
27
|
end
|
28
28
|
|
29
29
|
@cf = CronFormat.new(@to_expression, now)
|
30
|
+
|
30
31
|
end
|
31
32
|
|
32
33
|
def next() @cf.next end
|
@@ -90,7 +91,6 @@ class ChronicCron
|
|
90
91
|
)
|
91
92
|
"%s %s %s %s *" % TimeToday.future.to_a[1..4]
|
92
93
|
end
|
93
|
-
|
94
94
|
end
|
95
95
|
|
96
96
|
alias find_expression run_route
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
��
|
1
|
+
7gk�5`�D�z�7L4l�!�������z0�>;)p��ݜ��wm�&��m֑`����?]��VY���=�^С��L8���H�k�h~Nȯ}#Z
|
2
|
+
fC����:����wZ�t�����u1x�,s�ൃ�T�t*M�b"^���/u)�O��V��r���ߢ�_��������t�Ѓ�趕�u`��?-�/�ɵci�,tL�
|
3
|
+
������9�q
|
4
|
+
����_���|�V����|=�/�{N�I�+P
|