Commit graph

11 commits

Author SHA1 Message Date
GitLab Bot
d5b4360051 Add latest changes from gitlab-org/gitlab@master 2019-11-26 03:06:24 +00:00
Thong Kuah
f540ffcef6 Add frozen_string_literal to spec/lib (part 1)
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12:00
Fabio Pitino
c75b8ad4da Remove workaround by upgrading Fugit gem
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58241
* Upgrade Fugit gem to 1.2.1 which recognizes cron expressions
for invalid days
* Reverted previously implemented workaround
* Leave test case which previously exposed the bug
2019-05-07 08:07:16 +01:00
Fabio Pitino
673ea5d2ac Rescue RuntimeError when "too many loops" occur
With this workaround we temporarily prevent an
exception from Fugit gem to be raised in
Gitlab::Ci::CronParser
2019-05-07 08:06:49 +01:00
Fabio Pitino
0edd1e6714 Write test that exposes bug with Fugit gem 2019-05-07 07:46:07 +01:00
Shinya Maeda
19a90fe44e Add TimeCop freeze for DST and Regular time 2017-11-05 23:08:39 +09:00
Dosuken shinya
2fbcaaafcd Fix lazy error handling of cron parser 2017-05-03 15:23:20 +00:00
Shinya Maeda
12a5380f5c Implement a offset calculation on cron_parser_spec 2017-04-06 23:46:59 +09:00
Shinya Maeda
4688eb47c6 Rename cron_time_zone to cron_timezone. Separate add_concurrent_foreign_key. 2017-04-06 23:46:59 +09:00
Shinya Maeda
4949e2b291 Separate cron_valid? and cron_time_zone_valid? 2017-04-06 23:46:59 +09:00
Shinya Maeda
3d3df09713 Dry up next_time_from. Move cron_parser_spec to appropriate location. 2017-04-06 23:46:59 +09:00