bokmann/business_time — pull request #18 by hmarr (2012-05-11 12:59:23+00:00)
Title: Fix YAML config loading

Currently there are two issues with the loading of YAML config files:

1. If a value is missing, an cryptic exception will be raised at some point in the future (not at load time)
2. Holidays are parsed as `Time` objects, but `workday?` checks for `Date` objects

I've fixed (1) by using default values for missing config entries, and (2) by parsing holidays with `Date.parse` rather than `Time.parse`.

`BusinessTime::Config.load` now also accepts files as arguments, as well as file names. This makes it easier to test and more flexible.

Thanks!