Skip to content
Japanese holiday.
Ruby
Latest commit 871d19c Jan 18, 2016 @komagata Merge pull request #22 from ysksn/master
Add an example how to use ::holiday?
Failed to load latest commit information.
lib Bumpup version Apr 13, 2015
test
.document fixed hash to ostruct Sep 14, 2010
.gemtest Changed a packaging tool to bundler from jeweler. Nov 15, 2011
.gitignore Changed a packaging tool to bundler from jeweler. Nov 14, 2011
.travis.yml Execute update apt and bundler before install Jan 16, 2016
Gemfile Holidays date convert from ruby to yaml Jan 3, 2015
LICENSE Initial commit to holiday_jp. Nov 15, 2009
README.md Use Ruby syntax highlighting Jan 16, 2016
Rakefile Fix for 1.8.x syntax Jan 3, 2015
benchmark.rb Changed a packaging tool to bundler from jeweler. Nov 14, 2011
holiday_jp.gemspec Holidays date convert from ruby to yaml Jan 2, 2015
holidays.yml Modify Respect for the aged day on 1993/9/15 Mar 8, 2015

README.md

holiday_jp

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

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.

Something went wrong with that request. Please try again.