ANN: Holidays 0.9.1 released and call for contributors

Discussion in 'Ruby' started by Alex Dunae, Jan 15, 2008.

  1. Alex Dunae

    Alex Dunae Guest

    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, :eek:bserved)
    => [{: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/
    - 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/
    The docs are here: http://code.dunae.ca/holidays/doc/
     
    Alex Dunae, Jan 15, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob

    State holidays

    Bob, Dec 15, 2003, in forum: ASP .Net
    Replies:
    8
    Views:
    685
  2. Ed Jay
    Replies:
    2
    Views:
    451
    Neredbojias
    Dec 21, 2005
  3. Alexander DEJANOVSKI

    Retic EAI server : looking for contributors

    Alexander DEJANOVSKI, Mar 5, 2004, in forum: Python
    Replies:
    0
    Views:
    326
    Alexander DEJANOVSKI
    Mar 5, 2004
  4. David Heinemeier Hansson
    Replies:
    15
    Views:
    246
    Michael Neumann
    Aug 23, 2004
  5. Alexey Verkhovsky

    [Instiki] Call for contributors

    Alexey Verkhovsky, Jan 12, 2005, in forum: Ruby
    Replies:
    4
    Views:
    108
    Sam Roberts
    Jan 13, 2005
Loading...

Share This Page