chronic_cron 0.2.10 → 0.2.11
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 +4 -4
- metadata +2 -2
- 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: d46539b38f0eef931d901041c79771db9a674f6d
|
4
|
+
data.tar.gz: 4b6281e91893a9e09352f19c8d68a96512e8c086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 401626d1be1d61ab015b0424b3fb579cf5a3b4308cf58eb09db6bcad5a9a8b59a94cd117c3373ced92ec5dda0a4f072db35c9b36bbe2ea0e280d4f82a587b261
|
7
|
+
data.tar.gz: 21930007780f44ae80a817f58af2b567195b9d265c47448cfd5a0ff168b49590b7470f309ed810213e59d52d1272e9e992f62e717a4a2fe45379e3bd6ac77bcc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/chronic_cron.rb
CHANGED
@@ -18,7 +18,8 @@ class ChronicCron
|
|
18
18
|
super()
|
19
19
|
@params = {}
|
20
20
|
expressions(@params)
|
21
|
-
|
21
|
+
|
22
|
+
@to_expression = find_expression s.sub!(/^(?:on|at)\s+/,'')
|
22
23
|
|
23
24
|
if @to_expression.nil? then
|
24
25
|
t = Chronic.parse(s)
|
@@ -83,12 +84,11 @@ class ChronicCron
|
|
83
84
|
self.instance_eval %q(
|
84
85
|
def next()
|
85
86
|
t = TimeToday.any + DAY
|
86
|
-
@cf = CronFormat.new("%s %s %s %s *" %
|
87
|
-
.to_a.values_at(1,2,3,4))
|
87
|
+
@cf = CronFormat.new("%s %s %s %s *" % t.to_a[1..4])
|
88
88
|
t
|
89
89
|
end
|
90
90
|
)
|
91
|
-
"%s %s %s %s *" % TimeToday.future.to_a
|
91
|
+
"%s %s %s %s *" % TimeToday.future.to_a[1..4]
|
92
92
|
end
|
93
93
|
|
94
94
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chronic_cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
aYYwh4InyS/QZr4LG0nh0TuYVP5vwm1cCSlLlo4dlv7bl7Q4y815j70z8O4oUrT8
|
30
30
|
5oSIzmlVDEDmwAibYqdf+aHqmum1mkYW
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-07-
|
32
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: app-routes
|
metadata.gz.sig
CHANGED
Binary file
|