Commit ff4becc
Support localized cronjob scheduling with ambiguous and gap DateTime instances (#133)
* Allow specifying :earlier and :later for on_ambiguity CronExpression option
* Enhance DateHelper.add/4 to handle ambiguities and gaps
* Replace unnecessary DateTime creations just to convert to NaiveDateTime
* Rename DateHelper.add/4 as shift/4
* Handle nagative shifts from daylight savings back to standard time
* Enhance DateHelper.shift/4 to handle shifting backwards correctly
* Align shift/4 tests' variable names in DateHelperTest
* Replace NaiveDateTime.add/3 calls in Scheduler with DateHelper.shift/4
* Add :on_ambiguity attribute documentation
* Remove unused branch in resolve_potential_gap
* Additional DST Tests
* Install erlef/mix-dependency-submission GH Action
* Bump step-security/harden-runner from 2.11.1 to 2.12.0 (#135)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.11.1 to 2.12.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@c6295a6...0634a26)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump erlef/mix-dependency-submission from 1.0.0.pre.beta.8 to 1.0.1 (#136)
Bumps [erlef/mix-dependency-submission](https://github.com/erlef/mix-dependency-submission) from 1.0.0.pre.beta.8 to 1.0.1.
- [Release notes](https://github.com/erlef/mix-dependency-submission/releases)
- [Commits](erlef/mix-dependency-submission@6b9e140...1e05381)
---
updated-dependencies:
- dependency-name: erlef/mix-dependency-submission
dependency-version: 1.0.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump erlef/mix-dependency-submission from 1.0.1 to 1.0.2 (#137)
* Bump erlef/mix-dependency-submission from 1.0.1 to 1.0.2
Bumps [erlef/mix-dependency-submission](https://github.com/erlef/mix-dependency-submission) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/erlef/mix-dependency-submission/releases)
- [Commits](erlef/mix-dependency-submission@1e05381...fa66011)
---
updated-dependencies:
- dependency-name: erlef/mix-dependency-submission
dependency-version: 1.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update .github/workflows/mix-dependency-submission.yml
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonatan Männchen <jonatan@maennchen.ch>
* Bump erlef/mix-dependency-submission from 1.0.2 to 1.1.0 (#138)
Bumps [erlef/mix-dependency-submission](https://github.com/erlef/mix-dependency-submission) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/erlef/mix-dependency-submission/releases)
- [Commits](erlef/mix-dependency-submission@fa66011...a534dac)
---
updated-dependencies:
- dependency-name: erlef/mix-dependency-submission
dependency-version: 1.1.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump erlef/mix-dependency-submission from 1.1.0 to 1.1.2 (#139)
Bumps [erlef/mix-dependency-submission](https://github.com/erlef/mix-dependency-submission) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/erlef/mix-dependency-submission/releases)
- [Commits](erlef/mix-dependency-submission@a534dac...caee42b)
---
updated-dependencies:
- dependency-name: erlef/mix-dependency-submission
dependency-version: 1.1.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump erlef/mix-dependency-submission from 1.1.2 to 1.1.3 (#140)
Bumps [erlef/mix-dependency-submission](https://github.com/erlef/mix-dependency-submission) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/erlef/mix-dependency-submission/releases)
- [Commits](erlef/mix-dependency-submission@caee42b...dd81a2f)
---
updated-dependencies:
- dependency-name: erlef/mix-dependency-submission
dependency-version: 1.1.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump step-security/harden-runner from 2.12.0 to 2.12.1 (#141)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.12.0 to 2.12.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@0634a26...002fdce)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.12.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix a typo in cron_notation.cheatmd (#142)
* Bump step-security/harden-runner from 2.12.1 to 2.12.2 (#143)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.12.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Reimplement DateHelper.shift/4
* Reimplement shift/4 to support skipping ambiguous times entirely
* Include ambiguity checks in other modules
* Rename ambiguous opts from earlier/later to prior/subsequent
* Mix format
* Change DateHelper.shift/4 ambiguity_opts default to []
* Cosmetic change in typing
Co-authored-by: Jonatan Männchen <jonatan@maennchen.ch>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jonatan Männchen <jonatan@maennchen.ch>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergei Maximov <s.b.maximov@gmail.com>1 parent b42e02b commit ff4becc
File tree
10 files changed
+633
-275
lines changed- lib/crontab
- cron_expression
- test/crontab
10 files changed
+633
-275
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| 121 | + | |
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
| |||
116 | 127 | | |
117 | 128 | | |
118 | 129 | | |
119 | | - | |
| 130 | + | |
120 | 131 | | |
121 | 132 | | |
| 133 | + | |
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
| |||
127 | 139 | | |
128 | 140 | | |
129 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
130 | 154 | | |
131 | 155 | | |
132 | 156 | | |
| 157 | + | |
133 | 158 | | |
134 | 159 | | |
135 | 160 | | |
| |||
139 | 164 | | |
140 | 165 | | |
141 | 166 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
145 | 179 | | |
146 | 180 | | |
147 | 181 | | |
| |||
155 | 189 | | |
156 | 190 | | |
157 | 191 | | |
158 | | - | |
| 192 | + | |
| 193 | + | |
159 | 194 | | |
160 | 195 | | |
161 | 196 | | |
| |||
165 | 200 | | |
166 | 201 | | |
167 | 202 | | |
168 | | - | |
| 203 | + | |
| 204 | + | |
169 | 205 | | |
170 | 206 | | |
171 | 207 | | |
| |||
176 | 212 | | |
177 | 213 | | |
178 | 214 | | |
179 | | - | |
| 215 | + | |
| 216 | + | |
180 | 217 | | |
181 | 218 | | |
182 | 219 | | |
| |||
200 | 237 | | |
201 | 238 | | |
202 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
203 | 243 | | |
204 | 244 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
211 | 250 | | |
212 | 251 | | |
213 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 93 | + | |
| 94 | + | |
98 | 95 | | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
0 commit comments