chronic_cron 0.2.32 → 0.2.33
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 +1 -2
- data.tar.gz.sig +0 -0
- data/lib/chronic_cron.rb +11 -0
- metadata +19 -17
- 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: a7bcc699124b398877ec9336145f48360efd1367
|
4
|
+
data.tar.gz: 7d6100481983fa65e173c3daca2c328f508aa396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7730d6a3f63e84a56cfb9e8e5568a7e28fb4aa0536f996ab081b93308880873da26e2f579907fb3043c846a487b279510be92541f6c564fe7cf6a8552fbc220
|
7
|
+
data.tar.gz: a5ff9e173653fa24d5930f8afcc2c009dd8754245b55e167b4c7caca193a12b081859183bf0abf017f296771f49e42ecaeab71587bf2eea7a5000a3c09bdc45a
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
r�{���H1�1�����'�pbwW�c@i��RM��#U����I���#Ϧ�ë����r+A�ո#x����@F�T��`A}��ݳq��mo�seL��*�"}�Z��4,m!�vN��;�y��.�8�Z��{��짝N���&��?f�vg�1 �%D�Hn�ThV.�7�\�;�v����S��Z��R��G.T��x���EM�;��{&�dNS��D�����͎�Ǵ�]�şiH9�nj
|
1
|
+
6�x� x��ީl�}PDi��_gLM��ۨYx�e^.^�Nc��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/chronic_cron.rb
CHANGED
@@ -131,6 +131,17 @@ class ChronicCron
|
|
131
131
|
# e.g. every 2 days
|
132
132
|
get(/every (\d{1,2}) days?/){|days| "* * */%s * *" % [days]}
|
133
133
|
get(/#{daily}/){ "0 0 * * *"}
|
134
|
+
|
135
|
+
get /(?:any\s?time)?(?: today)? between (\S+) and (\S+)/ do |s1, s2|
|
136
|
+
self.instance_eval %Q(
|
137
|
+
def next()
|
138
|
+
t = TimeToday.between('#{s1}','#{s2}') + DAY
|
139
|
+
@cf = CronFormat.new("%s %s %s %s *" % t.to_a[1..4])
|
140
|
+
t
|
141
|
+
end
|
142
|
+
)
|
143
|
+
"%s %s %s %s *" % TimeToday.between(s1,s2).to_a[1..4]
|
144
|
+
end
|
134
145
|
|
135
146
|
get /any\s?time today/ do
|
136
147
|
self.instance_eval %q(
|
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.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,26 +10,28 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MDIxNTExNTAyOVoXDTE1MDIxNTExNTAyOVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
ggEBANp8xP2TQEw8KYy84nxeZPELQMsTQ3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-15 00:00:00.000000000 Z
|
33
35
|
dependencies:
|
34
36
|
- !ruby/object:Gem::Dependency
|
35
37
|
name: app-routes
|
metadata.gz.sig
CHANGED
Binary file
|