Skip to content

Commit

Permalink
Merge pull request holidays#192 from ptrimble/bump_to_4.1.0
Browse files Browse the repository at this point in the history
Bump to 4.1.0
  • Loading branch information
ppeble committed May 14, 2016
2 parents 9f05164 + 0744702 commit 491bbfd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Ruby Holidays Gem CHANGELOG

## 4.1.0

* Issue-161: correctly report St Andrews Day as informal 2006 and earlier in `gb_sct`
* Issue-169: set correct years of observance for Family Day in various `ca` provinces
* Issue-163: Add `next_holidays` method. See README for usage (https://github.com/ttwo32)

## 4.0.0

Major refactor with breaking changes! Sorry for the wall of text but there is a lot of info here.
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ To check if there are any holidays taking place during a specified work week:
Holidays.any_holidays_during_work_week?(Date.civil(2016, 1, 1))
=> true

To find and return the next holidays occurring from date, inclusively:

Holidays.next_holidays(3, [:us, :informal], Date.civil(2016, 2, 23))
=> [{:name => "St. Patrick's Day",...}, {:name => "Good Friday",...}, {:name => "Easter Sunday",...}]

Will default to `Date.today` if no date is provided.

### Loading Custom Definitions on the fly

Load custom definitions file on the fly and use them immediately.
Expand Down
2 changes: 1 addition & 1 deletion lib/holidays/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Holidays
VERSION = '4.0.0'
VERSION = '4.1.0'
end

0 comments on commit 491bbfd

Please sign in to comment.