revised_holidays 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ruby.yml +25 -0
  3. data/CHANGELOG.md +446 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +21 -0
  7. data/Makefile +45 -0
  8. data/README.md +337 -0
  9. data/Rakefile +109 -0
  10. data/bin/console +7 -0
  11. data/bin/setup +6 -0
  12. data/definitions/.github/workflows/ruby.yml +25 -0
  13. data/definitions/.gitignore +5 -0
  14. data/definitions/CHANGELOG.md +352 -0
  15. data/definitions/Gemfile +6 -0
  16. data/definitions/LICENSE +21 -0
  17. data/definitions/METHODS.yml +26 -0
  18. data/definitions/Makefile +9 -0
  19. data/definitions/README.md +22 -0
  20. data/definitions/ar.yaml +268 -0
  21. data/definitions/at.yaml +116 -0
  22. data/definitions/au.yaml +907 -0
  23. data/definitions/be_fr.yaml +153 -0
  24. data/definitions/be_nl.yaml +153 -0
  25. data/definitions/bg.yaml +186 -0
  26. data/definitions/br.yaml +178 -0
  27. data/definitions/ca.yaml +969 -0
  28. data/definitions/ch.yaml +277 -0
  29. data/definitions/cl.yaml +294 -0
  30. data/definitions/co.yaml +437 -0
  31. data/definitions/cr.yaml +100 -0
  32. data/definitions/cz.yaml +137 -0
  33. data/definitions/de.yaml +401 -0
  34. data/definitions/dk.yaml +220 -0
  35. data/definitions/doc/CONTRIBUTING.md +44 -0
  36. data/definitions/doc/MAINTAINERS.md +39 -0
  37. data/definitions/doc/SYNTAX.md +435 -0
  38. data/definitions/doc/architecture/README.md +15 -0
  39. data/definitions/doc/architecture/adr-001.md +86 -0
  40. data/definitions/doc/architecture/adr-002.md +64 -0
  41. data/definitions/ecbtarget.yaml +74 -0
  42. data/definitions/ee.yaml +123 -0
  43. data/definitions/es.yaml +495 -0
  44. data/definitions/federalreserve.yaml +389 -0
  45. data/definitions/federalreservebanks.yaml +821 -0
  46. data/definitions/fedex.yaml +102 -0
  47. data/definitions/fi.yaml +234 -0
  48. data/definitions/fr.yaml +157 -0
  49. data/definitions/gb.yaml +565 -0
  50. data/definitions/ge.yaml +158 -0
  51. data/definitions/gr.yaml +158 -0
  52. data/definitions/hk.yaml +287 -0
  53. data/definitions/hr.yaml +171 -0
  54. data/definitions/hu.yaml +156 -0
  55. data/definitions/ie.yaml +172 -0
  56. data/definitions/index.yaml +80 -0
  57. data/definitions/is.yaml +247 -0
  58. data/definitions/it.yaml +246 -0
  59. data/definitions/jp.yaml +761 -0
  60. data/definitions/ke.yaml +107 -0
  61. data/definitions/kr.yaml +166 -0
  62. data/definitions/kz.yaml +128 -0
  63. data/definitions/li.yaml +154 -0
  64. data/definitions/lib/validation/custom_method_validator.rb +38 -0
  65. data/definitions/lib/validation/definition_validator.rb +35 -0
  66. data/definitions/lib/validation/error.rb +11 -0
  67. data/definitions/lib/validation/month_validator.rb +58 -0
  68. data/definitions/lib/validation/run.rb +66 -0
  69. data/definitions/lib/validation/test_validator.rb +83 -0
  70. data/definitions/lt.yaml +198 -0
  71. data/definitions/lu.yaml +123 -0
  72. data/definitions/lv.yaml +229 -0
  73. data/definitions/ma.yaml +96 -0
  74. data/definitions/mt_en.yaml +131 -0
  75. data/definitions/mt_mt.yaml +131 -0
  76. data/definitions/mx.yaml +160 -0
  77. data/definitions/my.yaml +79 -0
  78. data/definitions/nerc.yaml +94 -0
  79. data/definitions/ng.yaml +97 -0
  80. data/definitions/nl.yaml +127 -0
  81. data/definitions/no.yaml +169 -0
  82. data/definitions/northamericainformal.yaml +105 -0
  83. data/definitions/nyse.yaml +137 -0
  84. data/definitions/nz.yaml +346 -0
  85. data/definitions/pe.yaml +208 -0
  86. data/definitions/ph.yaml +130 -0
  87. data/definitions/pl.yaml +796 -0
  88. data/definitions/pt.yaml +187 -0
  89. data/definitions/ro.yaml +240 -0
  90. data/definitions/rs_cyrl.yaml +129 -0
  91. data/definitions/rs_la.yaml +129 -0
  92. data/definitions/ru.yaml +108 -0
  93. data/definitions/se.yaml +238 -0
  94. data/definitions/sg.yaml +89 -0
  95. data/definitions/si.yaml +162 -0
  96. data/definitions/sk.yaml +154 -0
  97. data/definitions/spec/coverage_report.rb +7 -0
  98. data/definitions/spec/data/invalid/months/malformed/bad.yaml +15 -0
  99. data/definitions/spec/data/invalid/months/missing/no_months.yaml +9 -0
  100. data/definitions/spec/data/valid/simple.yaml +15 -0
  101. data/definitions/spec/spec_helper.rb +7 -0
  102. data/definitions/spec/validation/custom_method_validator_spec.rb +60 -0
  103. data/definitions/spec/validation/definition_validator_spec.rb +43 -0
  104. data/definitions/spec/validation/month_validator_spec.rb +175 -0
  105. data/definitions/spec/validation/test_validator_spec.rb +169 -0
  106. data/definitions/th.yaml +111 -0
  107. data/definitions/tn.yaml +83 -0
  108. data/definitions/tr.yaml +174 -0
  109. data/definitions/ua.yaml +161 -0
  110. data/definitions/unitednations.yaml +189 -0
  111. data/definitions/ups.yaml +102 -0
  112. data/definitions/us.yaml +965 -0
  113. data/definitions/ve.yaml +118 -0
  114. data/definitions/vi.yaml +54 -0
  115. data/definitions/za.yaml +139 -0
  116. data/doc/CONTRIBUTING.md +72 -0
  117. data/doc/MAINTAINERS.md +81 -0
  118. data/doc/REFERENCES +19 -0
  119. data/lib/generated_definitions/MANIFEST +83 -0
  120. data/lib/generated_definitions/REGIONS.rb +6 -0
  121. data/lib/generated_definitions/ar.rb +60 -0
  122. data/lib/generated_definitions/at.rb +37 -0
  123. data/lib/generated_definitions/au.rb +177 -0
  124. data/lib/generated_definitions/be.rb +42 -0
  125. data/lib/generated_definitions/be_fr.rb +36 -0
  126. data/lib/generated_definitions/be_nl.rb +36 -0
  127. data/lib/generated_definitions/bg.rb +53 -0
  128. data/lib/generated_definitions/br.rb +37 -0
  129. data/lib/generated_definitions/ca.rb +88 -0
  130. data/lib/generated_definitions/ch.rb +95 -0
  131. data/lib/generated_definitions/cl.rb +71 -0
  132. data/lib/generated_definitions/co.rb +121 -0
  133. data/lib/generated_definitions/cr.rb +35 -0
  134. data/lib/generated_definitions/cz.rb +37 -0
  135. data/lib/generated_definitions/de.rb +65 -0
  136. data/lib/generated_definitions/dk.rb +48 -0
  137. data/lib/generated_definitions/ecbtarget.rb +30 -0
  138. data/lib/generated_definitions/ee.rb +36 -0
  139. data/lib/generated_definitions/el.rb +38 -0
  140. data/lib/generated_definitions/es.rb +56 -0
  141. data/lib/generated_definitions/europe.rb +638 -0
  142. data/lib/generated_definitions/federalreserve.rb +35 -0
  143. data/lib/generated_definitions/federalreservebanks.rb +35 -0
  144. data/lib/generated_definitions/fedex.rb +36 -0
  145. data/lib/generated_definitions/fi.rb +61 -0
  146. data/lib/generated_definitions/fr.rb +39 -0
  147. data/lib/generated_definitions/gb.rb +51 -0
  148. data/lib/generated_definitions/ge.rb +41 -0
  149. data/lib/generated_definitions/gr.rb +38 -0
  150. data/lib/generated_definitions/hk.rb +106 -0
  151. data/lib/generated_definitions/hr.rb +40 -0
  152. data/lib/generated_definitions/hu.rb +35 -0
  153. data/lib/generated_definitions/ie.rb +33 -0
  154. data/lib/generated_definitions/is.rb +60 -0
  155. data/lib/generated_definitions/it.rb +45 -0
  156. data/lib/generated_definitions/jp.rb +166 -0
  157. data/lib/generated_definitions/ke.rb +34 -0
  158. data/lib/generated_definitions/kr.rb +40 -0
  159. data/lib/generated_definitions/kz.rb +38 -0
  160. data/lib/generated_definitions/li.rb +44 -0
  161. data/lib/generated_definitions/lt.rb +38 -0
  162. data/lib/generated_definitions/lu.rb +35 -0
  163. data/lib/generated_definitions/lv.rb +56 -0
  164. data/lib/generated_definitions/ma.rb +33 -0
  165. data/lib/generated_definitions/mt_en.rb +38 -0
  166. data/lib/generated_definitions/mt_mt.rb +38 -0
  167. data/lib/generated_definitions/mx.rb +54 -0
  168. data/lib/generated_definitions/my.rb +30 -0
  169. data/lib/generated_definitions/nerc.rb +30 -0
  170. data/lib/generated_definitions/ng.rb +33 -0
  171. data/lib/generated_definitions/nl.rb +37 -0
  172. data/lib/generated_definitions/no.rb +40 -0
  173. data/lib/generated_definitions/northamerica.rb +229 -0
  174. data/lib/generated_definitions/nyse.rb +34 -0
  175. data/lib/generated_definitions/nz.rb +105 -0
  176. data/lib/generated_definitions/pe.rb +43 -0
  177. data/lib/generated_definitions/ph.rb +50 -0
  178. data/lib/generated_definitions/pl.rb +73 -0
  179. data/lib/generated_definitions/pt.rb +40 -0
  180. data/lib/generated_definitions/ro.rb +39 -0
  181. data/lib/generated_definitions/rs_cyrl.rb +39 -0
  182. data/lib/generated_definitions/rs_la.rb +39 -0
  183. data/lib/generated_definitions/ru.rb +37 -0
  184. data/lib/generated_definitions/scandinavia.rb +166 -0
  185. data/lib/generated_definitions/se.rb +53 -0
  186. data/lib/generated_definitions/sg.rb +31 -0
  187. data/lib/generated_definitions/si.rb +39 -0
  188. data/lib/generated_definitions/sk.rb +39 -0
  189. data/lib/generated_definitions/southamerica.rb +248 -0
  190. data/lib/generated_definitions/th.rb +36 -0
  191. data/lib/generated_definitions/tn.rb +32 -0
  192. data/lib/generated_definitions/tr.rb +64 -0
  193. data/lib/generated_definitions/ua.rb +37 -0
  194. data/lib/generated_definitions/unitednations.rb +81 -0
  195. data/lib/generated_definitions/ups.rb +36 -0
  196. data/lib/generated_definitions/us.rb +153 -0
  197. data/lib/generated_definitions/ve.rb +36 -0
  198. data/lib/generated_definitions/vi.rb +29 -0
  199. data/lib/generated_definitions/za.rb +36 -0
  200. data/lib/holidays/core_extensions/date.rb +57 -0
  201. data/lib/holidays/core_extensions/time.rb +23 -0
  202. data/lib/holidays/date_calculator/day_of_month.rb +68 -0
  203. data/lib/holidays/date_calculator/easter.rb +91 -0
  204. data/lib/holidays/date_calculator/lunar_date.rb +371 -0
  205. data/lib/holidays/date_calculator/weekend_modifier.rb +80 -0
  206. data/lib/holidays/definition/context/function_processor.rb +91 -0
  207. data/lib/holidays/definition/context/generator.rb +209 -0
  208. data/lib/holidays/definition/context/load.rb +29 -0
  209. data/lib/holidays/definition/context/merger.rb +22 -0
  210. data/lib/holidays/definition/decorator/custom_method_proc.rb +28 -0
  211. data/lib/holidays/definition/decorator/custom_method_source.rb +30 -0
  212. data/lib/holidays/definition/decorator/test.rb +37 -0
  213. data/lib/holidays/definition/entity/custom_method.rb +11 -0
  214. data/lib/holidays/definition/entity/test.rb +11 -0
  215. data/lib/holidays/definition/generator/module.rb +54 -0
  216. data/lib/holidays/definition/generator/regions.rb +55 -0
  217. data/lib/holidays/definition/generator/test.rb +51 -0
  218. data/lib/holidays/definition/parser/custom_method.rb +67 -0
  219. data/lib/holidays/definition/parser/test.rb +86 -0
  220. data/lib/holidays/definition/repository/cache.rb +47 -0
  221. data/lib/holidays/definition/repository/custom_methods.rb +27 -0
  222. data/lib/holidays/definition/repository/holidays_by_month.rb +57 -0
  223. data/lib/holidays/definition/repository/proc_result_cache.rb +51 -0
  224. data/lib/holidays/definition/repository/regions.rb +46 -0
  225. data/lib/holidays/definition/validator/custom_method.rb +31 -0
  226. data/lib/holidays/definition/validator/region.rb +36 -0
  227. data/lib/holidays/definition/validator/test.rb +71 -0
  228. data/lib/holidays/errors.rb +11 -0
  229. data/lib/holidays/factory/date_calculator.rb +42 -0
  230. data/lib/holidays/factory/definition.rb +143 -0
  231. data/lib/holidays/factory/finder.rb +70 -0
  232. data/lib/holidays/finder/context/between.rb +45 -0
  233. data/lib/holidays/finder/context/dates_driver_builder.rb +64 -0
  234. data/lib/holidays/finder/context/next_holiday.rb +57 -0
  235. data/lib/holidays/finder/context/parse_options.rb +104 -0
  236. data/lib/holidays/finder/context/search.rb +111 -0
  237. data/lib/holidays/finder/context/year_holiday.rb +57 -0
  238. data/lib/holidays/finder/rules/in_region.rb +31 -0
  239. data/lib/holidays/finder/rules/year_range.rb +58 -0
  240. data/lib/holidays/load_all_definitions.rb +56 -0
  241. data/lib/holidays/version.rb +3 -0
  242. data/lib/holidays.rb +130 -0
  243. data/lib/revised_holidays.rb +1 -0
  244. data/revised_holidays.gemspec +31 -0
  245. data/test/coverage_report.rb +26 -0
  246. data/test/data/test_custom_govt_holiday_defs.yaml +5 -0
  247. data/test/data/test_custom_informal_holidays_defs.yaml +11 -0
  248. data/test/data/test_custom_year_range_holiday_defs.yaml +31 -0
  249. data/test/data/test_invalid_region.rb +15 -0
  250. data/test/data/test_multiple_custom_holiday_defs.yaml +12 -0
  251. data/test/data/test_multiple_regions_with_conflicts_region_1.yaml +38 -0
  252. data/test/data/test_multiple_regions_with_conflicts_region_2.yaml +38 -0
  253. data/test/data/test_region.rb +15 -0
  254. data/test/data/test_single_custom_holiday_defs.yaml +12 -0
  255. data/test/data/test_single_custom_holiday_with_custom_procs.yaml +28 -0
  256. data/test/defs/test_defs_ar.rb +69 -0
  257. data/test/defs/test_defs_at.rb +31 -0
  258. data/test/defs/test_defs_au.rb +233 -0
  259. data/test/defs/test_defs_be_fr.rb +45 -0
  260. data/test/defs/test_defs_be_nl.rb +45 -0
  261. data/test/defs/test_defs_bg.rb +41 -0
  262. data/test/defs/test_defs_br.rb +49 -0
  263. data/test/defs/test_defs_ca.rb +289 -0
  264. data/test/defs/test_defs_ch.rb +51 -0
  265. data/test/defs/test_defs_cl.rb +69 -0
  266. data/test/defs/test_defs_co.rb +113 -0
  267. data/test/defs/test_defs_cr.rb +29 -0
  268. data/test/defs/test_defs_cz.rb +37 -0
  269. data/test/defs/test_defs_de.rb +89 -0
  270. data/test/defs/test_defs_dk.rb +47 -0
  271. data/test/defs/test_defs_ecbtarget.rb +27 -0
  272. data/test/defs/test_defs_ee.rb +41 -0
  273. data/test/defs/test_defs_es.rb +137 -0
  274. data/test/defs/test_defs_europe.rb +1522 -0
  275. data/test/defs/test_defs_fed_ex.rb +24 -0
  276. data/test/defs/test_defs_federalreserve.rb +119 -0
  277. data/test/defs/test_defs_federalreservebanks.rb +251 -0
  278. data/test/defs/test_defs_fedex.rb +31 -0
  279. data/test/defs/test_defs_fi.rb +59 -0
  280. data/test/defs/test_defs_fr.rb +43 -0
  281. data/test/defs/test_defs_gb.rb +159 -0
  282. data/test/defs/test_defs_ge.rb +53 -0
  283. data/test/defs/test_defs_gr.rb +41 -0
  284. data/test/defs/test_defs_hk.rb +59 -0
  285. data/test/defs/test_defs_hr.rb +45 -0
  286. data/test/defs/test_defs_hu.rb +47 -0
  287. data/test/defs/test_defs_ie.rb +53 -0
  288. data/test/defs/test_defs_is.rb +51 -0
  289. data/test/defs/test_defs_it.rb +55 -0
  290. data/test/defs/test_defs_jp.rb +159 -0
  291. data/test/defs/test_defs_ke.rb +31 -0
  292. data/test/defs/test_defs_kr.rb +37 -0
  293. data/test/defs/test_defs_kz.rb +39 -0
  294. data/test/defs/test_defs_li.rb +35 -0
  295. data/test/defs/test_defs_lt.rb +65 -0
  296. data/test/defs/test_defs_lu.rb +35 -0
  297. data/test/defs/test_defs_lv.rb +98 -0
  298. data/test/defs/test_defs_ma.rb +29 -0
  299. data/test/defs/test_defs_mt_en.rb +41 -0
  300. data/test/defs/test_defs_mt_mt.rb +41 -0
  301. data/test/defs/test_defs_mx.rb +49 -0
  302. data/test/defs/test_defs_my.rb +23 -0
  303. data/test/defs/test_defs_nerc.rb +29 -0
  304. data/test/defs/test_defs_ng.rb +29 -0
  305. data/test/defs/test_defs_nl.rb +33 -0
  306. data/test/defs/test_defs_no.rb +43 -0
  307. data/test/defs/test_defs_northamerica.rb +667 -0
  308. data/test/defs/test_defs_nyse.rb +46 -0
  309. data/test/defs/test_defs_nz.rb +67 -0
  310. data/test/defs/test_defs_pe.rb +47 -0
  311. data/test/defs/test_defs_ph.rb +29 -0
  312. data/test/defs/test_defs_pl.rb +229 -0
  313. data/test/defs/test_defs_pt.rb +47 -0
  314. data/test/defs/test_defs_ro.rb +65 -0
  315. data/test/defs/test_defs_rs_cyrl.rb +46 -0
  316. data/test/defs/test_defs_rs_la.rb +46 -0
  317. data/test/defs/test_defs_ru.rb +34 -0
  318. data/test/defs/test_defs_scandinavia.rb +215 -0
  319. data/test/defs/test_defs_se.rb +59 -0
  320. data/test/defs/test_defs_sg.rb +25 -0
  321. data/test/defs/test_defs_si.rb +105 -0
  322. data/test/defs/test_defs_sk.rb +41 -0
  323. data/test/defs/test_defs_southamerica.rb +327 -0
  324. data/test/defs/test_defs_th.rb +33 -0
  325. data/test/defs/test_defs_tn.rb +27 -0
  326. data/test/defs/test_defs_tr.rb +60 -0
  327. data/test/defs/test_defs_ua.rb +41 -0
  328. data/test/defs/test_defs_unitednations.rb +11 -0
  329. data/test/defs/test_defs_ups.rb +31 -0
  330. data/test/defs/test_defs_us.rb +387 -0
  331. data/test/defs/test_defs_ve.rb +35 -0
  332. data/test/defs/test_defs_vi.rb +22 -0
  333. data/test/defs/test_defs_za.rb +35 -0
  334. data/test/holidays/core_extensions/test_date.rb +122 -0
  335. data/test/holidays/core_extensions/test_date_time.rb +60 -0
  336. data/test/holidays/date_calculator/test_day_of_month.rb +27 -0
  337. data/test/holidays/date_calculator/test_easter_gregorian.rb +30 -0
  338. data/test/holidays/date_calculator/test_easter_julian.rb +36 -0
  339. data/test/holidays/date_calculator/test_lunar_date.rb +89 -0
  340. data/test/holidays/date_calculator/test_weekend_modifier.rb +54 -0
  341. data/test/holidays/definition/context/test_function_processor.rb +199 -0
  342. data/test/holidays/definition/context/test_generator.rb +226 -0
  343. data/test/holidays/definition/context/test_load.rb +37 -0
  344. data/test/holidays/definition/context/test_merger.rb +25 -0
  345. data/test/holidays/definition/decorator/test_custom_method_proc.rb +113 -0
  346. data/test/holidays/definition/decorator/test_custom_method_source.rb +96 -0
  347. data/test/holidays/definition/decorator/test_test.rb +123 -0
  348. data/test/holidays/definition/generator/test_module.rb +268 -0
  349. data/test/holidays/definition/generator/test_regions.rb +97 -0
  350. data/test/holidays/definition/generator/test_test.rb +113 -0
  351. data/test/holidays/definition/parser/test_custom_method.rb +79 -0
  352. data/test/holidays/definition/parser/test_test.rb +142 -0
  353. data/test/holidays/definition/repository/test_cache.rb +123 -0
  354. data/test/holidays/definition/repository/test_custom_methods.rb +43 -0
  355. data/test/holidays/definition/repository/test_holidays_by_month.rb +275 -0
  356. data/test/holidays/definition/repository/test_proc_result_cache.rb +91 -0
  357. data/test/holidays/definition/repository/test_regions.rb +104 -0
  358. data/test/holidays/definition/validator/test_custom_method.rb +94 -0
  359. data/test/holidays/definition/validator/test_region.rb +54 -0
  360. data/test/holidays/definition/validator/test_test.rb +60 -0
  361. data/test/holidays/finder/context/test_between.rb +172 -0
  362. data/test/holidays/finder/context/test_dates_driver_builder.rb +91 -0
  363. data/test/holidays/finder/context/test_next_holiday.rb +156 -0
  364. data/test/holidays/finder/context/test_parse_options.rb +141 -0
  365. data/test/holidays/finder/context/test_search.rb +232 -0
  366. data/test/holidays/finder/context/test_year_holiday.rb +202 -0
  367. data/test/holidays/finder/rules/test_in_region.rb +42 -0
  368. data/test/holidays/finder/rules/test_year_range.rb +166 -0
  369. data/test/integration/README.md +9 -0
  370. data/test/integration/test_all_regions.rb +49 -0
  371. data/test/integration/test_any_holidays_during_work_week.rb +90 -0
  372. data/test/integration/test_available_regions.rb +23 -0
  373. data/test/integration/test_custom_holidays.rb +41 -0
  374. data/test/integration/test_custom_informal_holidays.rb +15 -0
  375. data/test/integration/test_custom_year_range_holidays.rb +35 -0
  376. data/test/integration/test_holidays.rb +243 -0
  377. data/test/integration/test_holidays_between.rb +87 -0
  378. data/test/integration/test_multiple_regions.rb +71 -0
  379. data/test/integration/test_multiple_regions_with_conflict.rb +29 -0
  380. data/test/integration/test_nonstandard_regions.rb +25 -0
  381. data/test/test_helper.rb +37 -0
  382. metadata +649 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 33fbbe7125863fdbece43eb8af6d35381bbd0e0e7e5b160a62afc681db96e80d
4
+ data.tar.gz: e363b70ffeabb097e18ceae32f09ae927af21e2f0dce8a3b4171e94ecb0f2aac
5
+ SHA512:
6
+ metadata.gz: 8e40776d2150e95aace92c25eeeda70f2267fdeea59d1211d37de84ef3ebeed4467e3fa5c4a271e27fedb15a8c9ded32d09830512d49e9a1eea2fab23350b408
7
+ data.tar.gz: 75024c269106a059e32a22148ba5acab426c1bd25c7bbe5c94ae6378facde4d966df7216b80654741b95419e0fca91178ba4094413b45574f31fee70cba6112e
@@ -0,0 +1,25 @@
1
+ name: Ruby
2
+ on:
3
+ push:
4
+ branches: [ "master" ]
5
+ pull_request:
6
+ branches: [ "master" ]
7
+ permissions:
8
+ contents: read
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'ruby-head']
15
+ env:
16
+ BUNDLER_NO_OLD_RUBYGEMS_WARNING: true
17
+ steps:
18
+ - uses: actions/checkout@v3
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 #v1.177.1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby-version }}
23
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24
+ - name: Run tests
25
+ run: make test
data/CHANGELOG.md ADDED
@@ -0,0 +1,446 @@
1
+ # Ruby Holidays Gem CHANGELOG
2
+
3
+ ## 9.0.0
4
+
5
+ * Created a revised version of the gem (the original has not been updated for two years)
6
+ * Added the Polish holiday of Christmas Eve (https://github.com/holidays/definitions/pull/307)
7
+
8
+ ## 8.8.0
9
+
10
+ * Update to [v5.7.4 definitions](https://github.com/holidays/definitions/releases/tag/v5.7.4). Please see the changelog for the definition details.
11
+
12
+ ## 8.7.1
13
+
14
+ * Fix testing issues and github action config, no behavior changes
15
+ * Remove Travis CI config
16
+
17
+ ## 8.7.0
18
+
19
+ * Update to [v5.6.2 definitions](https://github.com/holidays/definitions/releases/tag/v5.6.2). Please see the changelog for the definition details.
20
+ * Add support for ruby 2.7, 3.0, 3.1, 3.2, 3.3
21
+ * Add GitHub actions support since Travis CI is not free for OSS anymore
22
+
23
+ ## 8.6.0
24
+
25
+ * Update to [v5.5.0 definitions](https://github.com/holidays/definitions/releases/tag/v5.5.0). Please see the changelog for the definition details.
26
+ * Temporarily remove jruby from required jobs due to test coverage issues
27
+
28
+ ## 8.5.0
29
+
30
+ * Update submodule definitions.
31
+ * Thanks to contributors!!
32
+
33
+ ## 8.4.1
34
+
35
+ * Fix jp holidays from 2022.
36
+
37
+ ## 8.4.0
38
+
39
+ * Update submodule definitions
40
+ * Thanks to contributors!!
41
+
42
+
43
+ ## 8.3.0
44
+
45
+ * Update submodule definitions
46
+ * Remove test about feb 29 on non leap year.
47
+ * Thanks to contributors!!
48
+
49
+ ## 8.2.0
50
+
51
+ * Update submodule definitions. Thanks to contributors!!
52
+
53
+ ## 8.1.0
54
+
55
+ * Update submodule definitions, so that the newest holidays from the definition
56
+ gem are represent here.
57
+
58
+ ## 8.0.0
59
+
60
+ * Remove support for ruby 2.2 and ruby 2.3.
61
+ * Add support for latest ruby 2.6
62
+ * Update to [v5.0.1 definitions](https://github.com/holidays/definitions/releases/tag/v5.0.1). Please see the changelog for the definition details.
63
+
64
+ ## 7.1.0
65
+
66
+ * Update to [v4.1.0 definitions](https://github.com/holidays/definitions/releases/tag/v4.1.0). Please see the changelog for the definition details.
67
+
68
+ ## 7.0.0
69
+
70
+ Major semver bump due to the major version change in the [definitions](https://github.com/holidays/definitions/blob/master/CHANGELOG.md#400). Several non ISO regions have been modified in order to provide more clarity for parent and sub-regions.
71
+
72
+ Affected regions:
73
+
74
+ * `ecb_target` region changed to `ecbtarget`
75
+ * `federal_reserve` region changed to `federalreserve`
76
+ * `federalreservebanks` region changed to `federalreservebanks`
77
+ * `north_america_informal` region changed to `northamericainformal`
78
+ * `united_nations` region changed to `unitednations`
79
+ * `north_america` region changed to `northamerica`
80
+ * `south_america` region changed to `southamerica`
81
+
82
+ Please see the [definitions v4.0.0 CHANGELOG](https://github.com/holidays/definitions/blob/master/CHANGELOG.md#400) for the full change list.
83
+
84
+ ## 6.6.1
85
+
86
+ * Fixes `any_holidays_during_work_week?` so that it actually does what it says it does [issue-264](https://github.com/holidays/holidays/issues/264)
87
+
88
+ ## 6.6.0
89
+
90
+ * Update to [v3.0.0 definitions](https://github.com/holidays/definitions/releases/tag/v3.0.0). This required updates to the custom method parser but no behavior changes.
91
+ * Remove unused `simplecov-rcov` from gemspec dev dependencies
92
+ * Fix parent region loading bug [PR](https://github.com/holidays/holidays/pull/320) (thanks to chadrschroeder)
93
+ * Fix `ruby-head` build caused by new 'endless range' feature in ruby 2.6.0 [PR](https://github.com/holidays/holidays/pull/321)
94
+ * Refactor definition search logic for improved readability [PR](https://github.com/holidays/holidays/pull/318) (thanks to https://github.com/guizma)
95
+ * Reorganize most documentation into the `docs/` directory
96
+ * Fix list of covered rubies in README
97
+
98
+ ## 6.5.0
99
+
100
+ * Update to [v2.5.2 definitions](https://github.com/holidays/definitions/releases/tag/v2.5.2). Please see the changelog for the definition details.
101
+ * Fix permissions on `bin` executables (thanks to github.com/JuanitoFatas)
102
+
103
+ ## 6.4.0
104
+
105
+ * Update to [v2.4.0 definitions](https://github.com/holidays/definitions/releases/tag/v2.4.0). Please see the changelog for the definition details.
106
+
107
+ ## 6.3.0
108
+
109
+ * Update to [v2.3.0 definitions](https://github.com/holidays/definitions/releases/tag/v2.3.0). Please see the changelog for the definition details.
110
+
111
+ ## 6.2.0
112
+
113
+ * Update to [v2.2.1 definitions](https://github.com/holidays/definitions/releases/tag/v2.2.1). Please see the changelog for the definition details.
114
+ * README update to add `:federal_reserve` examples (thanks to https://github.com/aahmad)
115
+
116
+ ## 6.1.0
117
+
118
+ * Update to [v2.1.1 definitions](https://github.com/holidays/definitions/releases/tag/v2.1.1). Please see the changelog for
119
+ the definitions for details.
120
+
121
+ ## 6.0.0
122
+
123
+ * Remove support for ruby 2.1.0 since it is [no longer officially supported](https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/). This is the cause of the major
124
+ version bump.
125
+ * Update to [v2.0.0 definitions](https://github.com/holidays/definitions/releases/tag/v2.0.0). This changes the format
126
+ of definition tests and requires the other changes.
127
+ * Rewrite test generation logic to consume new YAML format.
128
+
129
+ To be crystal clear: this version should not behave differently in terms of holiday results than v5.7.0 of the gem. Any
130
+ differences are a bug that should be addressed.
131
+
132
+ ## 5.7.0
133
+
134
+ * Update to [v1.7.1 definitions](https://github.com/holidays/definitions/releases/tag/v1.7.1). Please see the
135
+ definitions repository for the list of changes.
136
+ * Remove 'coveralls'. We never looked at the reports. We will we simplecov to enforce test coverage. It will
137
+ start off being set to require 99% and above.
138
+
139
+ ## 5.6.0
140
+
141
+ * Update to v1.6.1 definitions, which includes updates for the `:ca` region (and subregions)
142
+
143
+ ## 5.5.1
144
+
145
+ * Update to v1.5.1 definitions, which includes bugfix in `fedex` custom method
146
+
147
+ ## 5.5.0
148
+
149
+ * Fix [#251](https://github.com/holidays/holidays/issues/251): `load_custom` would override all other definitions
150
+ * Fix [#266](https://github.com/holidays/holidays/issues/266): `:any` does not return expected results
151
+ * Fix [#265](https://github.com/holidays/holidays/issues/265): Jersey/je not loaded as expected when pulling `:gb`
152
+ * Add lunar date calculations, which are used in `:kr` and `:vi` definitions (thanks to https://github.com/jonathanpike)
153
+ * Improve cache performance (thanks to https://github.com/mzruya)
154
+ * Remove incorrect comments in definition generation (thanks to https://github.com/morrme)
155
+ * Fix bug related to definition functions inadvertently affecting subsequent date calculations
156
+ * Point to latest version (1.5.0) of definitions, which includes:
157
+ * Add Vietnamese holidays
158
+ * Updates Australian holidays
159
+ * Updates Korean holidays to use native language and fancy lunar date calculations
160
+ * Fix NYSE definitions to correctly calculate observed "New Year's Day"
161
+
162
+ ## 5.4.0
163
+
164
+ * Add support for ruby 2.4.0 (added it to the required tests in Travis CI)
165
+ * Fix issue [#250](https://github.com/holidays/holidays/issues/250), which was that subregions were 'lost' if there was more than one underscore in it (thanks to https://github.com/chinito)
166
+ * Fix caching when using Date extensions (thanks to https://github.com/alexgerstein)
167
+ * Remove unused weekend date calculator method (thanks to https://github.com/ttwo32)
168
+ * Use FULL_DEFINITIONS_PATH when loading definitions to avoid NameErrors when iterating whole LOAD_PATH (thanks to https://github.com/burke)
169
+ * Point to latest version (1.3.0) of definitions, which includes:
170
+ * Add Tunisian (tn) holidays (thanks to https://github.com/achr3f)
171
+ * Corrects various Australian holidays
172
+ * Update certain German regions for accuracy
173
+ * Change 'yk' to 'yt'
174
+
175
+ ## 5.3.0
176
+
177
+ * Fix `ca` province/territory codes for 'Newfoundland and Labrador' and 'Yukon' (thanks to https://github.com/slucaskim)
178
+
179
+ ## 5.2.1
180
+
181
+ * Fix caching (i.e. calls to `cache_between`) to...you know, actually cache correctly and give
182
+ performance improvements. Thanks to https://github.com/AnotherJoSmith for the fix!
183
+
184
+ ## 5.2.0
185
+
186
+ * Point to latest (v1.2.0 of definitions)
187
+ * updates `jp` defs to fix 'Foundation Day' name
188
+ * Fix `ca` defs for observed holidays
189
+ * Update `au` defs to have Christmas and Boxing Day for all of Australia instead of just individual territories
190
+ * Update `ie` defs to consolidate St Stephen's Day to use common method instead of custom method
191
+
192
+ ## 5.1.0
193
+
194
+ * Add `load_all` method to `Holidays` namespace to preload all definitions (i.e. no lazy loading)
195
+ * Fix issue-234: correctly load available regions so there is no error on `Holidays.available_regions` call
196
+
197
+ ## 5.0.0
198
+
199
+ * Remove support for jruby 1.7 (this is the main reason for the major semver bump)
200
+ * Remove support for ruby 2.0 (since it is no longer being supported by the core ruby team)
201
+ * Add back the lazy loading of regions (this was removed in the 4.0.0 bump) instead of loading upon require (this should have
202
+ no outward repercussions for users)
203
+ * Move definitions into their own repository and add as submodule. This will allow for more flexibility for tools written
204
+ in other languages.
205
+ * Rename `DateCalculatorFactory` to `Factory::DateCalculator`
206
+
207
+ ## 4.7.0
208
+
209
+ * Fix issue-225 (`LocalJumpError` for certain `jp` definition combinations) (https://github.com/ttwo32)
210
+ * Add Korean Lunar holidays (https://github.com/jonathanpike)
211
+
212
+ ## 4.6.0
213
+
214
+ * Add holidays for 'Luxembourg' (https://github.com/dunyakirkali)
215
+
216
+ ## 4.5.0
217
+
218
+ * Add `Holidays.year_holidays` method to obtain all holidays occuring from date to end of year, inclusively (thanks to https://github.com/jonathanpike)
219
+
220
+ ## 4.4.0
221
+
222
+ * Add Peruvian holiday definitions (https://github.com/Xosmond)
223
+
224
+ ## 4.3.0
225
+
226
+ * Update Portuguese holidays to restore 4 holidays (https://github.com/ruippeixotog)
227
+
228
+ ## 4.2.0
229
+
230
+ * BUGFIX Issue-194: correctly calculate `next_holidays` if next holiday is far in the future
231
+ * Give dutch holidays their proper names (https://github.com/Qqwy)
232
+
233
+ ## 4.1.0
234
+
235
+ * Issue-161: correctly report St Andrews Day as informal 2006 and earlier in `gb_sct`
236
+ * Issue-169: set correct years of observance for Family Day in various `ca` provinces
237
+ * Issue-163: Add `next_holidays` method. See README for usage (https://github.com/ttwo32)
238
+
239
+ ## 4.0.0
240
+
241
+ Major refactor with breaking changes! Sorry for the wall of text but there is a lot of info here.
242
+
243
+ * Fixes issue 144 (loading custom defs with methods). This was the refactor catalyst. Changes highlights include:
244
+ - Allow for custom methods added via the `load_custom` method to be used immediately as expected
245
+ - Consolidate and clarify custom method parsing and validation
246
+ - Change nearly every definition to use new 'custom method' YAML format. See `definitions/README.md` for more info.
247
+ - Remove `require` functionality when loading new definitions, instead using in-memory repositories. See below for info.
248
+ - Now loads all generated definitions when `require 'holidays'` is called. See below for performance info.
249
+ * Add `rake console` command for easier local testing
250
+ * Remove or rename many public methods that were never intended for public use:
251
+ - Remove following date calculation helper methods (definitions must now directly call factory):
252
+ - `easter`
253
+ - `orthodox_easter`
254
+ - `orthodox_easter_julian`
255
+ - `to_monday_if_sunday`
256
+ - `to_monday_if_weekend`
257
+ - `to_weekday_if_boxing_weekend`
258
+ - `to_weekday_if_boxing_weekend_from_year`
259
+ - `to_weekday_if_weekend`
260
+ - `calculate_day_of_month`
261
+ - Remove `available` method. This was only intended for internal use
262
+ - Remove `parse_definition_files_and_return_source`. This was only intended for internal use
263
+ - Remove `load_all` method. This was only intended for internal use
264
+ - Rename `regions` to `available_regions` for clarity
265
+ - Rename `full_week?` to `any_holidays_during_work_week?` for clarity
266
+ * Following methods now constitute the 'public API' of this gem:
267
+ - `on`
268
+ - `any_holidays_during_work_week?` (renamed method, was originally `full_week?`, same behavior as before)
269
+ - `between`
270
+ - `cache_between`
271
+ - `available_regions` (renamed method, was originally `regions`, same behavior as before)
272
+ - `load_custom`
273
+ * All generated definitions are now loaded when `require 'holidays'` is called
274
+ - Previously files were required 'on the fly' when a specific region was specified. By requiring all definitions upon
275
+ startup we greatly simplify the handling of regions, definitions, and custom methods internally
276
+ - This results in a performance hit when calling `require 'holidays'`. Here is an example based on my benchmarking:
277
+ - old: `0.045537`
278
+ - new: `0.145125`
279
+
280
+ I decided that this performance hit on startup is acceptable. All other performance should remain the same. If performance is
281
+ a major concern please open an issue so we can discuss your use case.
282
+
283
+ ## 3.3.0
284
+
285
+ This is the final minor point release in v3.X.X. I am releasing it so that all of the latest definitions can be
286
+ used by anyone that is not ready to jump to version 4.0.0. I am not planning on supporting this version unless a major
287
+ issue is found that needs to be immediately addressed.
288
+
289
+ * Update public holidays for Argentina (https://github.com/schmierkov)
290
+ * Remove redundant `require` from weekend modifier (https://github.com/Eric-Guo)
291
+ * FIX: Easter Saturday not a holiday in NZ (https://github.com/ghiculescu)
292
+ * FIX: Japan 'Marine Day' for 1996-2002 year ranges (https://github.com/shuhei)
293
+ * FIX: Australia calculations for Christmas and Boxing (https://github.com/ghiculescu)
294
+ * Add dutch language version of definitions for Belgium (michael.cox@novalex.be)
295
+ * Make 'Goede Vrijdag' informal for NL definitions (https://github.com/MathijsK93)
296
+ * Add 'Great Friday' to Czech holidays (juris@uol.cz)
297
+ * Add new informal holidays for Germany (https://github.com/knut2)
298
+ * FIX: correctly check for new `year_range` attribute in holidays by month repository (https://github.com/knut2)
299
+ * Add DE-Reformationstag for 2017 (https://github.com/knut2)
300
+ * Update Australia QLD definition Queens Bday and Labour Day (https://github.com/ghiculescu)
301
+
302
+ ## 3.2.0
303
+
304
+ * add 'valid year' functionality to definitions - https://github.com/holidays/holidays/issues/33 - (thanks to https://github.com/ttwo32)
305
+ * Fix 'day after thanksgiving' namespace bug during definition generation (thanks to https://github.com/ttwo32)
306
+ * fix Danish holidays 'palmesondag and 1/5 (danish fightday)' to set to informal (thanks to https://github.com/bjensen)
307
+
308
+ ## 3.1.2
309
+
310
+ * Do not require Date monkeypatching in definitions to use mday calculations (thanks to https://github.com/CloCkWeRX)
311
+
312
+ ## 3.1.1
313
+
314
+ * Require 'digest/md5' in main 'holidays' module. This was missed during the refactor (thanks to https://github.com/espen)
315
+
316
+ ## 3.1.0
317
+
318
+ * Fix St. Stephen observance holiday for Ireland (https://github.com/gumchum)
319
+ * Add Bulgarian holidays (https://github.com/thekazak)
320
+ * Add new mountain holiday for Japan (https://github.com/ttwo32)
321
+ * Add ability to calculate Easter in either Gregorian (existing) or Julian (new) dates
322
+
323
+ ## 3.0.0
324
+
325
+ * Major refactor! Lots of code moved around and some methods were removed from the public api (they were never intended to be public).
326
+ * Only supports ruby 2.0.0 and up. Travis config has been updated to reflect this.
327
+ * Moves 'date' monkeypatching out of main lib and makes it a core extension. See README for usage.
328
+ * Fixes remote execution bug in issue-86 (thanks to https://github.com/Intrepidd for reporting)
329
+ * No region definition changes.
330
+
331
+ I decided to make this a major version bump due to how much I changed. I truly hope no one will notice.
332
+ See the README for the usage. It has, except for the date core extension, not changed.
333
+
334
+ ## 2.2.0
335
+
336
+ * Correct 'informal' type for Dodenherdenking holiday in NL definitions (https://github.com/MathijsK93)
337
+
338
+ ## 2.1.0
339
+
340
+ * Updated Slovak holiday definitions (https://github.com/guitarman)
341
+ * Fix Japanese non-Monday substitute holidays (https://github.com/shuhei)
342
+ * Fixed typo in Slovak holiday definitions (https://github.com/martinsabo)
343
+ * Updated New Zealand definitions to reflect new weekend-to-monday rules (https://github.com/SebastianEdwards)
344
+ * Fix Australian definitions (https://github.com/ghiculescu)
345
+
346
+ ## 2.0.0
347
+
348
+ * Add test coverage
349
+ * Remove support for Ruby 1.8.7 and REE. (https://github.com/itsmechlark)
350
+ * Add support for Ruby 2.2 (https://github.com/itsmechlark)
351
+ * Add PH holidays (https://github.com/itsmechlark)
352
+ * Belgian holidays now written in French instead of English (https://github.com/maximerety)
353
+ * Update California (USA) holidays to include Cesar Chavez and Thanksgiving (https://github.com/evansagge)
354
+
355
+ ## 1.2.0
356
+
357
+ * Remove inauguration day from USA Federal Reserve definitions (https://github.com/aripollak)
358
+ * Add caching functionality for date ranges (https://github.com/ndbroadbent & https://github.com/ghiculescu)
359
+
360
+ ## 1.1.0
361
+
362
+ * Add support to load custom holidays on the fly
363
+ * Add hobart & launceston show days (https://github.com/ghiculescu)
364
+ * Add Melbourne Cup day (https://github.com/ghiculescu)
365
+ * Add Hobart Regatte Day (https://github.com/ghiculescu)
366
+ * Add Costa Rican holidays (https://github.com/kevinwmerritt)
367
+ * Update Canadian Holidays (https://github.com/KevinBrowne)
368
+ * Add substitute holidays for Japan (https://github.com/YoshiyukiHirano)
369
+ * Fix USA Federal Reserve Holidays
370
+ * Add FedEx holidays (https://github.com/adamrunner)
371
+
372
+ ## 1.0.7
373
+
374
+ * Load parent region even when sub region is not explicitly defined (https://github.com/csage)
375
+ * Full support for http://en.wikipedia.org/wiki/ISO_3166-2:DE (https://github.com/rojoko)
376
+ * Added Lithuanian definitions (https://github.com/Brunas)
377
+ * Added Chilean definitions (https://github.com/marcelo-soto)g
378
+ * Added European Central Bank TARGET definitions (Toby Bryans, NASDAQ OMX NLX)
379
+ * FR: Make Pâques and Pentecôte informal holidays (https://github.com/wizcover)
380
+ * NL: Update for the new King (https://github.com/johankok)
381
+ * Added Slovenian definitions (https://github.com/bbalon)
382
+
383
+ ## 1.0.6
384
+
385
+ * Added `Holidays.regions` method (https://github.com/sonnym)
386
+ * Added Slovakian definitions (https://github.com/mirelon)
387
+ * Added Venezuelan definitions (https://github.com/Chelo)
388
+ * Updated Canadian definitions (https://github.com/sdavies)
389
+ * Updated Argentinian definitions (https://github.com/popox)
390
+ * Updated Australian definitions (https://github.com/ghiculescu)
391
+ * Updated Portuguese definitions (https://github.com/MiPereira)
392
+ * Added Swiss definitions (https://github.com/samzurcher, https://github.com/jg)
393
+ * Added Romanian definitions (https://github.com/mtarnovan)
394
+ * Added Belgian definitions (https://github.com/jak78)
395
+ * Added Moroccan definitions (https://github.com/jak78)
396
+ * Fixes for New Year's and Boxing Day (https://github.com/iterion, https://github.com/andyw8)
397
+ * Fixes for Father's Day, Mother's Day and Armed Forces Day (https://github.com/eheikes)
398
+ * Typos (https://github.com/gregoriokusowski, https://github.com/popox)
399
+ * Added Croatian definitions (https://github.com/lecterror)
400
+ * Added US Federal Reserve holidays (https://github.com/willbarrett)
401
+ * Added NERC holidays (https://github.com/adamstrickland)
402
+ * Updated Irish holidays (https://github.com/xlcrs)
403
+
404
+ ## 1.0.5
405
+
406
+ * Added `full_week?` method (https://github.com/dceddia)
407
+ * Added Portuguese definitions (https://github.com/pmor)
408
+ * Added Hungarian definitions (https://github.com/spap)
409
+ * Typos (https://github.com/DenisKnauf)
410
+
411
+ ## 1.0.4
412
+
413
+ * Add Liechtenstein holiday defs (mercy vielmal Bernhard Furtmueller)
414
+
415
+ ## 1.0.3
416
+
417
+ * Add Austrian holiday definitions (thanks to Vogel Siegfried)
418
+
419
+ ## 1.0.2
420
+
421
+ * Add `orthodox_easter` method and Greek holiday definitions (thanks https://github.com/ddimitriadis)
422
+
423
+ ## 1.0.0
424
+
425
+ * Support calculating mday from negative weeks other than -1 (thanks https://github.com/bjeanes)
426
+ * Use class method to check leap years and fixed bug in Date.calculate_mday (thanks https://github.com/dgrambow)
427
+ * Added Czech (thanks https://github.com/boblin), Brazilian (https://github.com/fabiokr), Norwegian (thanks to Peter Skeide) and Australia/Brisbane (https://github.com/bjeanes) definitions
428
+ * Cleaned up rake and gemspec
429
+
430
+ ## 0.9.3
431
+
432
+ * Added New York Stock Exchange holidays (thank you Alan Larkin).
433
+ * Added UPS holidays (thank you Tim Anglade).
434
+ * Fixed rakefile to force lower case definition file names.
435
+
436
+ ## 0.9.2
437
+
438
+ * Included rakefile in Gem (thank you James Herdman).
439
+
440
+ ## 0.9.1
441
+
442
+ * au.yaml was being included incorrectly in US holiday definitions. Thanks to [Glenn Vanderburg](http://vanderburg.org/) for the fix.
443
+
444
+ ## 0.9.0
445
+
446
+ * Initial release.
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at holidaysgem@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ ==== Ruby Holidays Gem License
2
+
3
+ Copyright (c) 2007, 2014 Alex Dunae
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Makefile ADDED
@@ -0,0 +1,45 @@
1
+ default: test
2
+
3
+ setup: update-defs
4
+ bundle install
5
+
6
+ generate:
7
+ bundle exec rake generate
8
+
9
+ test:
10
+ bundle exec rake test
11
+
12
+ console:
13
+ bundle exec rake console
14
+
15
+ test-region:
16
+ bundle exec rake test_region $(REGION)
17
+
18
+ build: clean
19
+ bundle exec gem build holidays.gemspec
20
+
21
+ push:
22
+ bundle exec gem push $(GEM)
23
+
24
+ update-defs: definitions/
25
+ git submodule update --init --remote --recursive
26
+
27
+ definitions: point-to-defs-master
28
+
29
+ point-to-defs-branch:
30
+ git submodule add -b $(BRANCH) git@github.com:$(USER)/definitions.git definitions/
31
+
32
+ point-to-defs-master:
33
+ git submodule add https://github.com/holidays/definitions definitions/
34
+
35
+ clean-defs:
36
+ git rm -f definitions
37
+ rm -rf .git/modules/definitions
38
+ git config -f .git/config --remove-section submodule.definitions 2> /dev/null
39
+
40
+ clean:
41
+ rm -rf holidays-*.gem
42
+ rm -rf reports
43
+ rm -rf coverage
44
+
45
+ .PHONY: setup test generate console build push update-defs test-region clean-defs point-to-defs-master point-to-defs-branch clean definitions