Posted in Good public national holidays api?
You can use Calendarific for this. https://calendarific.com provides a free JSOn API for holidays for over 230 countries around the world. It provides both historical and future data points.
Calendarific provides a rubygem that can be used directly within the application: