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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49becd54a41d89999955502f0b98d4c799f3d832
4
- data.tar.gz: ae696d566e6e2dfba99015da17bbfa33fbce576d
3
+ metadata.gz: a7bcc699124b398877ec9336145f48360efd1367
4
+ data.tar.gz: 7d6100481983fa65e173c3daca2c328f508aa396
5
5
  SHA512:
6
- metadata.gz: 7e954217054ece9e8ce9d997d76a82ed34a061a6ba9220f87a976c304c818a8a436de5ccab57a2a98f582346682699f5d5bb8f159ee7442c77b7ed3dec73d280
7
- data.tar.gz: b9ebfd400b34ff7ae72a9b89b04fb85d037dadf29084cf1020f259c7a42c84ebcaa2f484eb93b3eaab375e3fe77c14df91cf50be4ed49c13df92d64de88f761d
6
+ metadata.gz: a7730d6a3f63e84a56cfb9e8e5568a7e28fb4aa0536f996ab081b93308880873da26e2f579907fb3043c846a487b279510be92541f6c564fe7cf6a8552fbc220
7
+ data.tar.gz: a5ff9e173653fa24d5930f8afcc2c009dd8754245b55e167b4c7caca193a12b081859183bf0abf017f296771f49e42ecaeab71587bf2eea7a5000a3c09bdc45a
@@ -1,2 +1 @@
1
- _��r���f�ȉ
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
@@ -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.32
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
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIwNTQ0MFoXDTE0MDIwNjIwNTQ0MFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MDIxNTExNTAyOVoXDTE1MDIxNTExNTAyOVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBALJ8B1hPkaGIr0xWa4IFM28RLPOaNETzEJiMx95qgZlHwcTte5eA+JaaFkuP
19
- 2MCLaHPQ96gBDHTymTpn1clbDl5/5yc6nZ0uzmCy41CU7aLD0Oq/LBiSB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L
23
+ nKB1/muBpu0y0L4SdtSX3VSiOncCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQUEBOUxUMVi/gVulx88Kvz1dhHR1kwJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEACDpxXQ8O
27
+ m1aeDrlaA+/k2phJx+Vu9B7m2o435PddTxwm93F/ElOiLCTtNgyFVGtvwM42Ksyh
28
+ 4oMINo8UvZw+GJiLfThJIPOIkZXaSVIu6fsTCIJb+jgNQ7ivchC0HFbMTCNBaKdK
29
+ z0zefNTEDfFQHFs9XbLBFzvSQHH64GV5gJPPeRhVYolH9VZGXhrh4I+lqrF9VKlU
30
+ T7PeAZGcxGWXGGscTaWwnTVTdSafeiQxy7dApxwRxqVqsptiUe0Sc1DpUJW+he8s
31
+ nWO4x6WpqjcmB1Woj5XGJhRoWqPEdpB7dv+oitT+rBDJnsYAVXx50tBSE8iv+u11
32
+ 9OUH3bEVRYl7Cg==
31
33
  -----END CERTIFICATE-----
32
- date: 2014-01-16 00:00:00.000000000 Z
34
+ date: 2014-02-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