Skip to content
Japanese holiday.
Ruby
Branch: master
Clone or download
komagata Merge pull request #38 from s-osa/explicit_gem_name
Add installation instructions to README
Latest commit a30363d Jun 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib HolidayJp::Holidays#holiday? returns boolean, not HolidayJp::Holiday May 25, 2019
test
.document fixed hash to ostruct Sep 14, 2010
.gemtest Changed a packaging tool to bundler from jeweler. Nov 14, 2011
.gitignore
.gitmodules Fix an indent Mar 17, 2018
.travis.yml lock bundler version at .travis.yml, because latest bundler 2.0 only … Jan 8, 2019
CHANGELOG.md Support ruby versions 1.9.3+ Jul 14, 2016
Gemfile Holidays date convert from ruby to yaml Jan 2, 2015
LICENSE
README.md Add installation instructions to README Jun 7, 2019
Rakefile Fixes some points that rubocop said Sep 9, 2016
benchmark.rb Fixes some points that rubocop said Sep 9, 2016
holiday_jp.gemspec Holidays date convert from ruby to yaml Jan 2, 2015
holidays.yml Test using holidays.yml fetching from github.com/holiday-jp/holiday_jp Feb 24, 2019

README.md

holiday_jp Build Status

Get holidays in Japan.

USAGE

holidays = HolidayJp.between(Date.new(2010, 9, 14), Date.new(2010, 9, 21))
holidays.first.name # 敬老の日
HolidayJp.holiday?(Date.new(2016, 8 ,11)) # true

Supported Ruby Version

Ruby 1.9.3+

Installation

Add this line to your application's Gemfile:

gem 'holiday_jp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install holiday_jp

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2009 Masaki Komagata. See LICENSE for details.

You can’t perform that action at this time.