crony 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/features/date.feature +24 -24
- data/lib/crony/formatters/day_of_week_formatter.rb +5 -0
- data/lib/crony/parser.rb +4 -4
- data/lib/crony/version.rb +1 -1
- metadata +39 -62
data/features/date.feature
CHANGED
@@ -27,9 +27,9 @@ Feature: Parsing a cron expression with dates
|
|
27
27
|
| * * 17W 1-11/2 * * | Every minute on the weekday closest to the 17th of every 2nd month from January to November |
|
28
28
|
| * * * 3-7 * * | Every minute on every day of every month from March to July |
|
29
29
|
| * * 3-20/3 3-7 * * | Every minute on every 3rd day from the 3rd to the 20th of every month from March to July |
|
30
|
-
| * * 1-15
|
30
|
+
| * * 1-15 mar-jul * * | Every minute on the 1st to the 15th of every month from March to July |
|
31
31
|
| * * */5 3-7 * * | Every minute on every 5th day of every month from March to July |
|
32
|
-
| * * 2/5
|
32
|
+
| * * 2/5 MAR-jul * * | Every minute on every 5th day starting on the 2nd of every month from March to July |
|
33
33
|
| * * 22 3-7 * * | Every minute on the 22nd of every month from March to July |
|
34
34
|
| * * 4,5,7 3-7 * * | Every minute on the 4th, 5th and 7th of every month from March to July |
|
35
35
|
| * * L 3-7 * * | Every minute on the last day of every month from March to July |
|
@@ -74,7 +74,7 @@ Feature: Parsing a cron expression with dates
|
|
74
74
|
| * * 3-20/3 * 1 * | Every minute on every 3rd day from the 3rd to the 20th and every Monday of every month |
|
75
75
|
| * * 1-15 * 1 * | Every minute on the 1st to the 15th and every Monday of every month |
|
76
76
|
| * * */5 * 1 * | Every minute on every 5th day and every Monday of every month |
|
77
|
-
| * * 2/5 * 1 * | Every minute on every 5th day starting on the 2nd and every Monday of every month
|
77
|
+
| * * 2/5 * 1 * | Every minute on every 5th day starting on the 2nd and every Monday of every month |
|
78
78
|
| * * 22 * 1 * | Every minute on the 22nd and every Monday of every month |
|
79
79
|
| * * 4,5,7 * 1 * | Every minute on the 4th, 5th and 7th and every Monday of every month |
|
80
80
|
| * * L * 1 * | Every minute on the last day and every Monday of every month |
|
@@ -83,7 +83,7 @@ Feature: Parsing a cron expression with dates
|
|
83
83
|
| * * 3-20/3 1-11/2 1 * | Every minute on every 3rd day from the 3rd to the 20th and every Monday of every 2nd month from January to November |
|
84
84
|
| * * 1-15 1-11/2 1 * | Every minute on the 1st to the 15th and every Monday of every 2nd month from January to November |
|
85
85
|
| * * */5 1-11/2 1 * | Every minute on every 5th day and every Monday of every 2nd month from January to November |
|
86
|
-
| * * 2/5 1-11/2 1 * | Every minute on every 5th day starting on the 2nd and every Monday of every 2nd month from January to November
|
86
|
+
| * * 2/5 1-11/2 1 * | Every minute on every 5th day starting on the 2nd and every Monday of every 2nd month from January to November |
|
87
87
|
| * * 22 1-11/2 1 * | Every minute on the 22nd and every Monday of every 2nd month from January to November |
|
88
88
|
| * * 4,5,7 1-11/2 1 * | Every minute on the 4th, 5th and 7th and every Monday of every 2nd month from January to November |
|
89
89
|
| * * L 1-11/2 1 * | Every minute on the last day and every Monday of every 2nd month from January to November |
|
@@ -92,7 +92,7 @@ Feature: Parsing a cron expression with dates
|
|
92
92
|
| * * 3-20/3 5 1 * | Every minute on every 3rd day from the 3rd to the 20th and every Monday of May |
|
93
93
|
| * * 1-15 5 1 * | Every minute on the 1st to the 15th and every Monday of May |
|
94
94
|
| * * */5 5 1 * | Every minute on every 5th day and every Monday of May |
|
95
|
-
| * * 2/5 5 1 * | Every minute on every 5th day starting on the 2nd and every Monday of May
|
95
|
+
| * * 2/5 5 1 * | Every minute on every 5th day starting on the 2nd and every Monday of May |
|
96
96
|
| * * 22 5 1 * | Every minute on May 22nd and every Monday in May |
|
97
97
|
| * * 4,5,7 5 1 * | Every minute on May 4th, 5th and 7th and every Monday in May |
|
98
98
|
| * * L 5 1 * | Every minute on the last day and every Monday of May |
|
@@ -101,7 +101,7 @@ Feature: Parsing a cron expression with dates
|
|
101
101
|
| * * 3-20/3 apr,aug 1 * | Every minute on every 3rd day from the 3rd to the 20th and every Monday of April and August |
|
102
102
|
| * * 1-15 APR,AUG 1 * | Every minute on the 1st to the 15th and every Monday of April and August |
|
103
103
|
| * * */5 apr,aug 1 * | Every minute on every 5th day and every Monday of April and August |
|
104
|
-
| * * 2/5 apr,aug 1 * | Every minute on every 5th day starting on the 2nd and every Monday of April and August
|
104
|
+
| * * 2/5 apr,aug 1 * | Every minute on every 5th day starting on the 2nd and every Monday of April and August |
|
105
105
|
| * * 22 APR,AUG 1 * | Every minute on the 22nd and every Monday of April and August |
|
106
106
|
| * * 4,5,7 apr,aug 1 * | Every minute on the 4th, 5th and 7th and every Monday of April and August |
|
107
107
|
| * * L APR,AUG 1 * | Every minute on the last day and every Monday of April and August |
|
@@ -110,7 +110,7 @@ Feature: Parsing a cron expression with dates
|
|
110
110
|
| * * 3-20/3 * 2-4 * | Every minute on every 3rd day from the 3rd to the 20th and every Tuesday, Wednesday and Thursday of every month |
|
111
111
|
| * * 1-15 * 2-4 * | Every minute on the 1st to the 15th and every Tuesday, Wednesday and Thursday of every month |
|
112
112
|
| * * */5 * 2-4 * | Every minute on every 5th day and every Tuesday, Wednesday and Thursday of every month |
|
113
|
-
| * * 2/5 * 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of every month
|
113
|
+
| * * 2/5 * 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of every month |
|
114
114
|
| * * 22 * 2-4 * | Every minute on the 22nd and every Tuesday, Wednesday and Thursday of every month |
|
115
115
|
| * * 4,5,7 * 2-4 * | Every minute on the 4th, 5th and 7th and every Tuesday, Wednesday and Thursday of every month |
|
116
116
|
| * * L * 2-4 * | Every minute on the last day and every Tuesday, Wednesday and Thursday of every month |
|
@@ -119,7 +119,7 @@ Feature: Parsing a cron expression with dates
|
|
119
119
|
| * * 3-20/3 1-11/2 2-4 * | Every minute on every 3rd day from the 3rd to the 20th and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
120
120
|
| * * 1-15 1-11/2 2-4 * | Every minute on the 1st to the 15th and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
121
121
|
| * * */5 1-11/2 2-4 * | Every minute on every 5th day and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
122
|
-
| * * 2/5 1-11/2 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of every 2nd month from January to November
|
122
|
+
| * * 2/5 1-11/2 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
123
123
|
| * * 22 1-11/2 2-4 * | Every minute on the 22nd and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
124
124
|
| * * 4,5,7 1-11/2 2-4 * | Every minute on the 4th, 5th and 7th and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
125
125
|
| * * L 1-11/2 2-4 * | Every minute on the last day and every Tuesday, Wednesday and Thursday of every 2nd month from January to November |
|
@@ -128,16 +128,16 @@ Feature: Parsing a cron expression with dates
|
|
128
128
|
| * * 3-20/3 5 2-4 * | Every minute on every 3rd day from the 3rd to the 20th and every Tuesday, Wednesday and Thursday of May |
|
129
129
|
| * * 1-15 5 2-4 * | Every minute on the 1st to the 15th and every Tuesday, Wednesday and Thursday of May |
|
130
130
|
| * * */5 5 2-4 * | Every minute on every 5th day and every Tuesday, Wednesday and Thursday of May |
|
131
|
-
| * * 2/5 5 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of May
|
131
|
+
| * * 2/5 5 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of May |
|
132
132
|
| * * 22 5 2-4 * | Every minute on May 22nd and every Tuesday, Wednesday and Thursday in May |
|
133
133
|
| * * 4,5,7 5 2-4 * | Every minute on May 4th, 5th and 7th and every Tuesday, Wednesday and Thursday in May |
|
134
134
|
| * * L 5 2-4 * | Every minute on the last day and every Tuesday, Wednesday and Thursday of May |
|
135
135
|
| * * 17W 5 2-4 * | Every minute on the weekday closest to May 17th and every Tuesday, Wednesday and Thursday in May |
|
136
|
-
| * * * APR,AUG
|
136
|
+
| * * * APR,AUG tue-thu * | Every minute on every Tuesday, Wednesday and Thursday of April and August |
|
137
137
|
| * * 3-20/3 apr,aug 2-4 * | Every minute on every 3rd day from the 3rd to the 20th and every Tuesday, Wednesday and Thursday of April and August |
|
138
138
|
| * * 1-15 APR,AUG 2-4 * | Every minute on the 1st to the 15th and every Tuesday, Wednesday and Thursday of April and August |
|
139
|
-
| * * */5 apr,aug
|
140
|
-
| * * 2/5 apr,aug 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of April and August
|
139
|
+
| * * */5 apr,aug TUE-THU * | Every minute on every 5th day and every Tuesday, Wednesday and Thursday of April and August |
|
140
|
+
| * * 2/5 apr,aug 2-4 * | Every minute on every 5th day starting on the 2nd and every Tuesday, Wednesday and Thursday of April and August |
|
141
141
|
| * * 22 APR,AUG 2-4 * | Every minute on the 22nd and every Tuesday, Wednesday and Thursday of April and August |
|
142
142
|
| * * 4,5,7 apr,aug 2-4 * | Every minute on the 4th, 5th and 7th and every Tuesday, Wednesday and Thursday of April and August |
|
143
143
|
| * * L APR,AUG 2-4 * | Every minute on the last day and every Tuesday, Wednesday and Thursday of April and August |
|
@@ -146,7 +146,7 @@ Feature: Parsing a cron expression with dates
|
|
146
146
|
| * * 3-20/3 * MON,WED,FRI * | Every minute on every 3rd day from the 3rd to the 20th and every Monday, Wednesday and Friday of every month |
|
147
147
|
| * * 1-15 * MON,WED,FRI * | Every minute on the 1st to the 15th and every Monday, Wednesday and Friday of every month |
|
148
148
|
| * * */5 * MON,WED,FRI * | Every minute on every 5th day and every Monday, Wednesday and Friday of every month |
|
149
|
-
| * * 2/5 * MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of every month
|
149
|
+
| * * 2/5 * MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of every month |
|
150
150
|
| * * 22 * MON,WED,FRI * | Every minute on the 22nd and every Monday, Wednesday and Friday of every month |
|
151
151
|
| * * 4,5,7 * MON,WED,FRI * | Every minute on the 4th, 5th and 7th and every Monday, Wednesday and Friday of every month |
|
152
152
|
| * * L * MON,WED,FRI * | Every minute on the last day and every Monday, Wednesday and Friday of every month |
|
@@ -155,7 +155,7 @@ Feature: Parsing a cron expression with dates
|
|
155
155
|
| * * 3-20/3 1-11/2 MON,WED,FRI * | Every minute on every 3rd day from the 3rd to the 20th and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
156
156
|
| * * 1-15 1-11/2 MON,WED,FRI * | Every minute on the 1st to the 15th and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
157
157
|
| * * */5 1-11/2 MON,WED,FRI * | Every minute on every 5th day and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
158
|
-
| * * 2/5 1-11/2 MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of every 2nd month from January to November
|
158
|
+
| * * 2/5 1-11/2 MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
159
159
|
| * * 22 1-11/2 MON,WED,FRI * | Every minute on the 22nd and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
160
160
|
| * * 4,5,7 1-11/2 MON,WED,FRI * | Every minute on the 4th, 5th and 7th and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
161
161
|
| * * L 1-11/2 MON,WED,FRI * | Every minute on the last day and every Monday, Wednesday and Friday of every 2nd month from January to November |
|
@@ -163,7 +163,7 @@ Feature: Parsing a cron expression with dates
|
|
163
163
|
| * * * 5 MON,WED,FRI * | Every minute on every Monday, Wednesday and Friday of May |
|
164
164
|
| * * 3-20/3 5 MON,WED,FRI * | Every minute on every 3rd day from the 3rd to the 20th and every Monday, Wednesday and Friday of May |
|
165
165
|
| * * 1-15 5 MON,WED,FRI * | Every minute on the 1st to the 15th and every Monday, Wednesday and Friday of May |
|
166
|
-
| * * 2/5 5 MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of May
|
166
|
+
| * * 2/5 5 MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of May |
|
167
167
|
| * * 22 5 MON,WED,FRI * | Every minute on May 22nd and every Monday, Wednesday and Friday in May |
|
168
168
|
| * * 4,5,7 5 MON,WED,FRI * | Every minute on May 4th, 5th and 7th and every Monday, Wednesday and Friday in May |
|
169
169
|
| * * L 5 MON,WED,FRI * | Every minute on the last day and every Monday, Wednesday and Friday of May |
|
@@ -172,7 +172,7 @@ Feature: Parsing a cron expression with dates
|
|
172
172
|
| * * 3-20/3 apr,aug MON,WED,FRI * | Every minute on every 3rd day from the 3rd to the 20th and every Monday, Wednesday and Friday of April and August |
|
173
173
|
| * * 1-15 APR,AUG MON,WED,FRI * | Every minute on the 1st to the 15th and every Monday, Wednesday and Friday of April and August |
|
174
174
|
| * * */5 apr,aug MON,WED,FRI * | Every minute on every 5th day and every Monday, Wednesday and Friday of April and August |
|
175
|
-
| * * 2/5 apr,aug MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of April and August
|
175
|
+
| * * 2/5 apr,aug MON,WED,FRI * | Every minute on every 5th day starting on the 2nd and every Monday, Wednesday and Friday of April and August |
|
176
176
|
| * * 22 APR,AUG MON,WED,FRI * | Every minute on the 22nd and every Monday, Wednesday and Friday of April and August |
|
177
177
|
| * * 4,5,7 apr,aug MON,WED,FRI * | Every minute on the 4th, 5th and 7th and every Monday, Wednesday and Friday of April and August |
|
178
178
|
| * * L APR,AUG MON,WED,FRI * | Every minute on the last day and every Monday, Wednesday and Friday of April and August |
|
@@ -181,7 +181,7 @@ Feature: Parsing a cron expression with dates
|
|
181
181
|
| * * 3-20/3 * 6L * | Every minute on every 3rd day from the 3rd to the 20th and the last Saturday of every month |
|
182
182
|
| * * 1-15 * 6L * | Every minute on the 1st to the 15th and the last Saturday of every month |
|
183
183
|
| * * */5 * 6L * | Every minute on every 5th day and the last Saturday of every month |
|
184
|
-
| * * 2/5 * 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of every month
|
184
|
+
| * * 2/5 * 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of every month |
|
185
185
|
| * * 22 * 6L * | Every minute on the 22nd and the last Saturday of every month |
|
186
186
|
| * * 4,5,7 * 6L * | Every minute on the 4th, 5th and 7th and the last Saturday of every month |
|
187
187
|
| * * L * 6L * | Every minute on the last day and the last Saturday of every month |
|
@@ -190,7 +190,7 @@ Feature: Parsing a cron expression with dates
|
|
190
190
|
| * * 3-20/3 1-11/2 6L * | Every minute on every 3rd day from the 3rd to the 20th and the last Saturday of every 2nd month from January to November |
|
191
191
|
| * * 1-15 1-11/2 6L * | Every minute on the 1st to the 15th and the last Saturday of every 2nd month from January to November |
|
192
192
|
| * * */5 1-11/2 6L * | Every minute on every 5th day and the last Saturday of every 2nd month from January to November |
|
193
|
-
| * * 2/5 1-11/2 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of every 2nd month from January to November
|
193
|
+
| * * 2/5 1-11/2 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of every 2nd month from January to November |
|
194
194
|
| * * 22 1-11/2 6L * | Every minute on the 22nd and the last Saturday of every 2nd month from January to November |
|
195
195
|
| * * 4,5,7 1-11/2 6L * | Every minute on the 4th, 5th and 7th and the last Saturday of every 2nd month from January to November |
|
196
196
|
| * * L 1-11/2 6L * | Every minute on the last day and the last Saturday of every 2nd month from January to November |
|
@@ -199,7 +199,7 @@ Feature: Parsing a cron expression with dates
|
|
199
199
|
| * * 3-20/3 5 6L * | Every minute on every 3rd day from the 3rd to the 20th and the last Saturday of May |
|
200
200
|
| * * 1-15 5 6L * | Every minute on the 1st to the 15th and the last Saturday of May |
|
201
201
|
| * * */5 5 6L * | Every minute on every 5th day and the last Saturday of May |
|
202
|
-
| * * 2/5 5 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of May
|
202
|
+
| * * 2/5 5 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of May |
|
203
203
|
| * * 22 5 6L * | Every minute on May 22nd and the last Saturday in May |
|
204
204
|
| * * 4,5,7 5 6L * | Every minute on May 4th, 5th and 7th and the last Saturday in May |
|
205
205
|
| * * L 5 6L * | Every minute on the last day and the last Saturday of May |
|
@@ -208,7 +208,7 @@ Feature: Parsing a cron expression with dates
|
|
208
208
|
| * * 3-20/3 apr,aug 6L * | Every minute on every 3rd day from the 3rd to the 20th and the last Saturday of April and August |
|
209
209
|
| * * 1-15 APR,AUG 6L * | Every minute on the 1st to the 15th and the last Saturday of April and August |
|
210
210
|
| * * */5 apr,aug 6L * | Every minute on every 5th day and the last Saturday of April and August |
|
211
|
-
| * * 2/5 apr,aug 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of April and August
|
211
|
+
| * * 2/5 apr,aug 6L * | Every minute on every 5th day starting on the 2nd and the last Saturday of April and August |
|
212
212
|
| * * 22 APR,AUG 6L * | Every minute on the 22nd and the last Saturday of April and August |
|
213
213
|
| * * 4,5,7 apr,aug 6L * | Every minute on the 4th, 5th and 7th and the last Saturday of April and August |
|
214
214
|
| * * L APR,AUG satL * | Every minute on the last day and the last Saturday of April and August |
|
@@ -217,7 +217,7 @@ Feature: Parsing a cron expression with dates
|
|
217
217
|
| * * 3-20/3 * THU#4 * | Every minute on every 3rd day from the 3rd to the 20th and the 4th Thursday of every month |
|
218
218
|
| * * 1-15 * THU#4 * | Every minute on the 1st to the 15th and the 4th Thursday of every month |
|
219
219
|
| * * */5 * THU#4 * | Every minute on every 5th day and the 4th Thursday of every month |
|
220
|
-
| * * 2/5 * THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of every month
|
220
|
+
| * * 2/5 * THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of every month |
|
221
221
|
| * * 22 * THU#4 * | Every minute on the 22nd and the 4th Thursday of every month |
|
222
222
|
| * * 4,5,7 * THU#4 * | Every minute on the 4th, 5th and 7th and the 4th Thursday of every month |
|
223
223
|
| * * L * THU#4 * | Every minute on the last day and the 4th Thursday of every month |
|
@@ -226,7 +226,7 @@ Feature: Parsing a cron expression with dates
|
|
226
226
|
| * * 3-20/3 1-11/2 THU#4 * | Every minute on every 3rd day from the 3rd to the 20th and the 4th Thursday of every 2nd month from January to November |
|
227
227
|
| * * 1-15 1-11/2 THU#4 * | Every minute on the 1st to the 15th and the 4th Thursday of every 2nd month from January to November |
|
228
228
|
| * * */5 1-11/2 THU#4 * | Every minute on every 5th day and the 4th Thursday of every 2nd month from January to November |
|
229
|
-
| * * 2/5 1-11/2 THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of every 2nd month from January to November
|
229
|
+
| * * 2/5 1-11/2 THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of every 2nd month from January to November |
|
230
230
|
| * * 22 1-11/2 THU#4 * | Every minute on the 22nd and the 4th Thursday of every 2nd month from January to November |
|
231
231
|
| * * 4,5,7 1-11/2 THU#4 * | Every minute on the 4th, 5th and 7th and the 4th Thursday of every 2nd month from January to November |
|
232
232
|
| * * L 1-11/2 THU#4 * | Every minute on the last day and the 4th Thursday of every 2nd month from January to November |
|
@@ -235,7 +235,7 @@ Feature: Parsing a cron expression with dates
|
|
235
235
|
| * * 3-20/3 5 THU#4 * | Every minute on every 3rd day from the 3rd to the 20th and the 4th Thursday of May |
|
236
236
|
| * * 1-15 5 THU#4 * | Every minute on the 1st to the 15th and the 4th Thursday of May |
|
237
237
|
| * * */5 5 THU#4 * | Every minute on every 5th day and the 4th Thursday of May |
|
238
|
-
| * * 2/5 5 THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of May
|
238
|
+
| * * 2/5 5 THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of May |
|
239
239
|
| * * 22 5 THU#4 * | Every minute on May 22nd and the 4th Thursday in May |
|
240
240
|
| * * 4,5,7 5 THU#4 * | Every minute on May 4th, 5th and 7th and the 4th Thursday in May |
|
241
241
|
| * * L 5 THU#4 * | Every minute on the last day and the 4th Thursday of May |
|
@@ -244,7 +244,7 @@ Feature: Parsing a cron expression with dates
|
|
244
244
|
| * * 3-20/3 apr,aug THU#4 * | Every minute on every 3rd day from the 3rd to the 20th and the 4th Thursday of April and August |
|
245
245
|
| * * 1-15 APR,AUG THU#4 * | Every minute on the 1st to the 15th and the 4th Thursday of April and August |
|
246
246
|
| * * */5 apr,aug THU#4 * | Every minute on every 5th day and the 4th Thursday of April and August |
|
247
|
-
| * * 2/5 apr,aug THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of April and August
|
247
|
+
| * * 2/5 apr,aug THU#4 * | Every minute on every 5th day starting on the 2nd and the 4th Thursday of April and August |
|
248
248
|
| * * 22 APR,AUG THU#4 * | Every minute on the 22nd and the 4th Thursday of April and August |
|
249
249
|
| * * 4,5,7 apr,aug THU#4 * | Every minute on the 4th, 5th and 7th and the 4th Thursday of April and August |
|
250
250
|
| * * L APR,AUG thu#4 * | Every minute on the last day and the 4th Thursday of April and August |
|
data/lib/crony/parser.rb
CHANGED
@@ -21,12 +21,12 @@ module Crony
|
|
21
21
|
{ :frequency => frequency }
|
22
22
|
when /^\d+$/ #single number
|
23
23
|
{ :frequency => frequency, :start => start }
|
24
|
-
when /^\
|
25
|
-
range_start, range_end = *start.scan(/(\
|
24
|
+
when /^\w+-\w+$/
|
25
|
+
range_start, range_end = *start.scan(/(\w+)-(\w+)/)[0]
|
26
26
|
{ :frequency => frequency, :start => range_start, :stop => range_end }
|
27
27
|
end
|
28
|
-
when /^\
|
29
|
-
range_start, range_end = *@element.scan(/(\
|
28
|
+
when /^\w+-\w+$/
|
29
|
+
range_start, range_end = *@element.scan(/(\w+)-(\w+)/)[0]
|
30
30
|
{ :start => range_start, :stop => range_end }
|
31
31
|
else { :collection => parse_collection }
|
32
32
|
end
|
data/lib/crony/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: crony
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Michael Berkowitz
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
12
|
+
date: 2013-02-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: cucumber
|
23
|
-
|
16
|
+
requirement: &70144356762140 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
requirement: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
23
|
prerelease: false
|
24
|
+
version_requirements: *70144356762140
|
25
|
+
- !ruby/object:Gem::Dependency
|
36
26
|
name: rake
|
37
|
-
|
27
|
+
requirement: &70144356777820 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
46
33
|
type: :development
|
47
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70144356777820
|
48
36
|
description: Spell-checker for cron expressions
|
49
|
-
email:
|
37
|
+
email:
|
50
38
|
- michael.berkowitz@gmail.com
|
51
39
|
executables: []
|
52
|
-
|
53
40
|
extensions: []
|
54
|
-
|
55
41
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
42
|
+
files:
|
58
43
|
- .gitignore
|
59
44
|
- .travis.yml
|
60
45
|
- Gemfile
|
@@ -83,40 +68,32 @@ files:
|
|
83
68
|
- lib/crony/presenters/year_presenter.rb
|
84
69
|
- lib/crony/version.rb
|
85
70
|
- lib/utility_functions.rb
|
86
|
-
homepage:
|
71
|
+
homepage: ''
|
87
72
|
licenses: []
|
88
|
-
|
89
73
|
post_install_message:
|
90
74
|
rdoc_options: []
|
91
|
-
|
92
|
-
require_paths:
|
75
|
+
require_paths:
|
93
76
|
- lib
|
94
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
78
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
|
101
|
-
- 0
|
102
|
-
version: "0"
|
103
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
84
|
none: false
|
105
|
-
requirements:
|
106
|
-
- -
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
version: "0"
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
112
89
|
requirements: []
|
113
|
-
|
114
90
|
rubyforge_project:
|
115
|
-
rubygems_version: 1.8.
|
91
|
+
rubygems_version: 1.8.10
|
116
92
|
signing_key:
|
117
93
|
specification_version: 3
|
118
|
-
summary: Confirm that the cron expression you just wrote does what you meant it to
|
119
|
-
|
94
|
+
summary: Confirm that the cron expression you just wrote does what you meant it to
|
95
|
+
do.
|
96
|
+
test_files:
|
120
97
|
- features/date.feature
|
121
98
|
- features/rubycron.feature
|
122
99
|
- features/step_definitions/crony_steps.rb
|