rails_admin

https://github.com/railsadminteam/rails_admin

Ruby

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data

Gitlab::Ci::CronParser#try_parse_cron

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.

For example, those codes have the same effect.
Time.zone = 'Pacific Time (US & Canada)' (ActiveSupport::TimeZone)
Time.zone = 'America/Los_Angeles' (TZInfo::Timezone)

However, try_parse_cron only accepts the latter format.
try_parse_cron('* * * * *', 'Pacific Time (US & Canada)') -> Doesn't work
try_parse_cron('* * * * *', 'America/Los_Angeles') -> Works
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

Source | Google | Stack overflow

Edit

git clone [email protected]:railsadminteam/rails_admin.git

cd rails_admin

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--Ci--CronParser-try_parse_cron-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::Ci::CronParser#try_parse_cron"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gitlab--Ci--CronParser-try_parse_cron-for-pr

hub pull-request


# Celebrate!