summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-01-16 09:27:35 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2019-01-16 09:27:35 +0000
commit372716ea2472f498a55dc00eea972dfc6cd07ce9 (patch)
tree1864c0485c23fa58f639fd46fc2ac0cc4ef18320 /lib
parent87f6f6f70519ca387c4a033174e82ee4e334d980 (diff)
parentdef2d5565ea101f7d9538457a1c20ef87f638c3b (diff)
downloadgitlab-ce-372716ea2472f498a55dc00eea972dfc6cd07ce9.tar.gz
Merge branch 'update-sidekiq-cron' into 'master'
Update sidekiq-cron 0.6.0 -> 1.0 See merge request gitlab-org/gitlab-ce!24235
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/cron_parser.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/ci/cron_parser.rb b/lib/gitlab/ci/cron_parser.rb
index b1db9084662..94f4a4e36c9 100644
--- a/lib/gitlab/ci/cron_parser.rb
+++ b/lib/gitlab/ci/cron_parser.rb
@@ -35,7 +35,7 @@ module Gitlab
# NOTE:
# cron_timezone can only accept timezones listed in TZInfo::Timezone.
# Aliases of Timezones from ActiveSupport::TimeZone are NOT accepted,
- # because Rufus::Scheduler only supports TZInfo::Timezone.
+ # because Fugit::Cron only supports TZInfo::Timezone.
#
# For example, those codes have the same effect.
# Time.zone = 'Pacific Time (US & Canada)' (ActiveSupport::TimeZone)
@@ -47,10 +47,7 @@ module Gitlab
# If you want to know more, please take a look
# https://github.com/rails/rails/blob/master/activesupport/lib/active_support/values/time_zone.rb
def try_parse_cron(cron, cron_timezone)
- cron_line = Rufus::Scheduler.parse("#{cron} #{cron_timezone}")
- cron_line if cron_line.is_a?(Rufus::Scheduler::CronLine)
- rescue
- # noop
+ Fugit::Cron.parse("#{cron} #{cron_timezone}")
end
end
end