-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Easter Saturday not a public holiday in New Zealand #177
Conversation
@@ -161,6 +161,22 @@ def to_weekday_if_boxing_weekend(date) | |||
DateCalculatorFactory.weekend_modifier.to_weekday_if_boxing_weekend(date) | |||
end | |||
|
|||
def to_tuesday_if_sunday_or_monday_if_saturday(year) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, I am considering whether these methods need to actually be 'public'. I think with my large refactor of 'custom methods' we can reference the factory directly in the YAML files. The only reason these are publicly available is because of how custom methods used to work.
I definitely don't want you to change this because this is how it works today, just wanted you to be aware that I might be changing this in the near future. End result will be the same. 😄
@ghiculescu A few comments/questions. In addition, can you please add tests for the new 'weekend modifier' methods you added? They go here: https://github.com/holidays/holidays/blob/master/test/holidays/date_calculator/test_weekend_modifier.rb |
@ghiculescu I posted this in the other PR as well, FYI. I've changed my thinking just a bit based on the work I've done this weekend on my refactor branch. Let me lay out my thoughts and you can let me know what you think about the timeline and how reasonable (or unreasonable!) it is. My current plan was to include this PR in a There is absolutely nothing concrete about this date. It is totally open for negotiation. If you think you'll need more time or if you think this date is unreasonable then let's talk! We have some options:
Let me know what you think! Again, no need to stress, we can work something out that works for both of us. |
Thank you @ghiculescu! I appreciate the fast response. I'll definitely get this out before the 4.0.0 release. |
http://publicholiday.co.nz/nz-public-holidays-2016.html