holidays / holidays

A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How are the holidays updated

neumachen opened this issue · comments

How are the holidays updated on this gem?

Hi @magicalbanana, we outline how to do it in our CONTRIBUTING guide. In short:

  • Fork the repository
  • Edit desired definition YAML file(s) located under definitions/. If you are adding a new region be sure to update definitions/index.yaml as well
  • Run make generate to generate updated final definitions (they will be located under lib/generated_definitions/ and test/defs/)
  • Run make test to ensure your changes did not introduce errors
  • Open a PR with all of these changes. You MUST include the generated definition files and tests in your PR. There is no automatic process to generate definitions at this time

Information on the definition format itself can be found here.

We check in both the original YAML and the generated final ruby files. Let me know if you have any other questions!

And I thought recognized your username. I work at @sittercity. 😄

Hehehe. Thanks for the quick response.

No problem! Going to go ahead and close the issue. 👍