pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
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.rbEdit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Ci--CronParser-try_parse_cron-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Ci::CronParser#try_parse_cron"
# Open pull requestgem 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!