
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
This is a wrapper around the alexdunae/holidays gem with a more intuitive API (at least IMO). It uses the region-id's of that gem to filter the results.
new(filter=[])
You may supply an array of filter strings. This strings are region-id's (see
above show_regions) or patterns, which will be expanded as regular expressions
to match region-id's
show_holiday( date )
Generates a list of all public holidays for date, which is a Date object (e.g. Date.today)
show_week( date )
Generates the list of holidays for the week (sunday to saturday), which contains the date
show_month( date )
Generates the list of holidays for the month, which contains the date
show_year( date )
Generates the list of holidays for the year, which contains the date
Add this line to your application's Gemfile:
$ gem 'holiday_tools'
And then execute:
$ bundle
Or install it yourself as:
$ gem install holiday_tools
Included in the gem is an executable, which can be used as CLI command.
Examples:
$ holiday_tools
shows all regions which observe today a public holiday
$ holiday_tools --date 2013-05-01 --mode m
shows all holidays in all regions in May, 2013
$ holiday_tools --mode y at ge
shows all holidays in the current year in Austria and Germany
$ holiday_tools --date 2013-05-01 --mode m es_.
shows all holidays in May, 2013 which are observed only in subregions of Spain
$ holiday_tools --help
shows the usage hints
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that holiday_tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.