# ANN: Holidays 0.9.1 released and call for contributors

**URL:** <https://www.ruby-forum.com/t/ann-holidays-0-9-1-released-and-call-for-contributors/126068>\
**Category:** Ruby\
**Created:** [January 15, 2008, 5:57am UTC](https://www.ruby-forum.com/t/ann-holidays-0-9-1-released-and-call-for-contributors/126068 "2008-01-15T05:57:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [January 15, 2008, 5:57am UTC](https://www.ruby-forum.com/t/ann-holidays-0-9-1-released-and-call-for-contributors/126068/1 "2008-01-15T05:57:22Z")

</div>

The Ruby holidays gem has been released and I’m looking for  
contributors to help create regional holiday definition files. This  
gem provides a set of functions for looking up public holidays around  
the world.

A quick example:

require ‘holidays’  
require ‘holidays/ca’

# Lookup Canada Day

date = Date.civil(2007,7,1)  
Holidays.by\_day(date, :ca)  
=\> [{:name =\> ‘Canada Day’,…}]

# Canada Day is July 1 except when July 1 is a Sunday, then it moves

to

# July 2

date = Date.civil(2007,7,2)  
Holidays.by\_day(date, :ca, :observed)  
=\> [{:name =\> ‘Canada Day’,…}]

# Check if this is a holiday in British Columbia, Canada

date.holiday?(:ca\_bc)  
=\> true

There are a lot of countries in the world and contributors are invited  
to create or improve a holiday definition file for any region. Sample  
definition files can be found at  
[http://code.dunae.ca/svn/holidays/trunk/data/](http://code.dunae.ca/svn/holidays/trunk/data/)

- get in touch if you would like to help out: alex [at] dunae dot ca.

The project page is here: [http://code.dunae.ca/holidays/](http://code.dunae.ca/holidays/)  
The docs are here: [http://code.dunae.ca/holidays/doc/](http://code.dunae.ca/holidays/doc/)
