
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.