chronic_cron 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d870d82ae01a3ac3bf9267c0148bfb691edd1492
4
- data.tar.gz: 801bb5c25868214dcaaf10e1c9ef473819a2f6a6
3
+ metadata.gz: 6880061d93fedcede28b7e651d068f16f7add182
4
+ data.tar.gz: c4c085e839bc2beb70cbe76a26bf62e58922b8e9
5
5
  SHA512:
6
- metadata.gz: ebae4c052267ecbed64e024cd38dff2b32a0b90644db19d747309935b524219d8b9b385b6cc1336e68fbf4b36cbd25090560ab001a5f0f1369238ff1eca6681a
7
- data.tar.gz: c1532146c05dd8864a4fe0dc4274d2abe2ea89fd7fbfafe7bda3c014706785c087668adec3457bf4e60549576045992b803dab4059096459ae5b989d2d93653f
6
+ metadata.gz: c73c6e91eeaca2e88c8d0079d1c593bf4379907c034ace3d0c104725dfa61ba2c144ce6616750226db106ff1b8fa0e451c8544ed12dbbeff65c4bf7ad35ed606
7
+ data.tar.gz: 3dcbe3cb2092b39a51c8758fa24eac419b2574a08c3803e1548ba237a44747fec72dc86ccebe7719dfdef36d755af6771e5ba8cfad43679977231313dd4c1964
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- [h��\hx�e��j����������^z��:+F����[�J�8�2�8<Q�c��/�*b�9>�=�eh�W��hgD��(>�4���G*������G)t*L4K������d\h2c7�T�/�2ex� Leh�N�� @K�
2
- ��)�.f����� #Կ�m��� �'j�
1
+ �e��#sc���%H�����+���}��
@@ -165,14 +165,6 @@ class ChronicCron
165
165
  "%s %s %s %s *" % TimeToday.future.to_a[1..4]
166
166
  end
167
167
 
168
- # e.g. every tuesday at 4pm
169
- get /every\s+#{weekday}\s+(?:at\s+)?(\d{1,2})([ap]m)/i do
170
- |wday, raw_hrs, meridiem, |
171
- hrs = in24hrs(raw_hrs, meridiem)
172
-
173
- "0 %s * * %s" % [hrs , Date::DAYNAMES.index(wday.capitalize)]
174
- end
175
-
176
168
  # e.g. first thursday of each month at 7:30pm
177
169
  nday = '(\w+(?:st|rd|nd))\s+' + weekday + '\s+'
178
170
  get /#{nday}(?:of\s+)?(?:the|each|every)\s+month(?:\s+at\s+([^\s]+))?/i do
@@ -198,6 +190,16 @@ class ChronicCron
198
190
 
199
191
  end
200
192
 
193
+ # e.g. every tuesday at 4pm
194
+ get /every\s+#{weekday}\s+(?:at\s+)?(\d{1,2})([ap]m)/i do
195
+ |wday, raw_hrs, meridiem, |
196
+
197
+ hrs = in24hrs(raw_hrs, meridiem)
198
+
199
+ "0 %s * * %s" % [hrs , Date::DAYNAMES.index(wday.capitalize)]
200
+ end
201
+
202
+
201
203
  # e.g. last sunday of March at 1am
202
204
 
203
205
  get /last (#{Date::DAYNAMES.join('|')}) (?:of|in) \
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  0wcgVFIVtcpX9C67gxjhpnaGcldx1X9px9b4jorMz4yZHdq+MonVlmQlYfhPLRog
32
32
  krK/e35wvDmTqQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-06-07 00:00:00.000000000 Z
34
+ date: 2017-06-08 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: app-routes
metadata.gz.sig CHANGED
Binary file