holidays 7.0.0 → 7.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dac7126a5713942d6136cbb0336602836f1394c4d0f6da56b7293e36f39e914f
4
- data.tar.gz: 134b14d0ba4ab0053c81d1a4f4eb232ce420eb5eb7b42fe8255f9fb8879047b3
3
+ metadata.gz: 8ffd1d2cf2a85fb43c632e03acf020bf9eedc1b7366ce2cf489fdb94a3b928d5
4
+ data.tar.gz: b6ff441b3083db5aa217acc5641133f9b1412ba800d05723fab0b041be9ae0e7
5
5
  SHA512:
6
- metadata.gz: 336d71a92e551fc45aaf6e7ea3c9ddeb4aeab5a5a04a1060b2539de81afe65eb8237c17e3a6777cafcc691594e70204dbd7705973d5f28a5ebf8e6ed57d1111f
7
- data.tar.gz: fcf9ef68573c880aad11ececa155d73303769d408b055e759bf70fb954572aa5a1dfb59be99d2ed3bb1a54ee0574ac461f78a86e38b4c04c50e01b68718ca9f1
6
+ metadata.gz: b0f498c8b80a8da2ffa09aacfc1257b7f3eb99809b86a50b4f882d9ff9fcb44fed1b836fc942c144e3b58def610d795fe6d560a0cac255d8a28527d5f373a0ed
7
+ data.tar.gz: 148811b0fd60dd3c0c0431ff515ba22970ffbb60b24961ed887327f512a156b16fdf1b8b9d843c14b405ed678ac84b9c31ac9284488d17130f460cdd1c82ee50
@@ -1,5 +1,10 @@
1
1
  # Ruby Holidays Gem CHANGELOG
2
2
 
3
+ ## 7.1.0
4
+
5
+ * Update to [v4.1.0 definitions](https://github.com/holidays/definitions/releases/tag/v4.1.0). Please see the changelog for the definition details.
6
+ * Add ruby 2.6 to automated tests
7
+
3
8
  ## 7.0.0
4
9
 
5
10
  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.
data/README.md CHANGED
@@ -14,10 +14,10 @@ gem install holidays
14
14
 
15
15
  This gem is tested with the following ruby versions:
16
16
 
17
- * 2.2.0
18
- * 2.3.0,
19
- * 2.4.0
20
- * 2.5.0
17
+ * 2.2.9
18
+ * 2.3.8
19
+ * 2.4.5
20
+ * 2.5.3
21
21
  * JRuby 9.0.5.0
22
22
 
23
23
  ## Semver
@@ -66,6 +66,7 @@ The following definition files are included in this installation:
66
66
  * generated_definitions/si
67
67
  * generated_definitions/sk
68
68
  * generated_definitions/southamerica
69
+ * generated_definitions/th
69
70
  * generated_definitions/tn
70
71
  * generated_definitions/tr
71
72
  * generated_definitions/ua
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Holidays
3
- REGIONS = [:ar, :at, :au, :au_nsw, :au_vic, :au_qld, :au_nt, :au_act, :au_sa, :au_wa, :au_tas, :au_tas_south, :au_qld_cairns, :au_qld_brisbane, :au_tas_north, :au_vic_melbourne, :be_fr, :be_nl, :br, :bg_en, :bg_bg, :ca, :ca_qc, :ca_ab, :ca_sk, :ca_on, :ca_bc, :ca_nb, :ca_mb, :ca_ns, :ca_pe, :ca_nl, :ca_nt, :ca_nu, :ca_yt, :us, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cl, :co, :cr, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh, :ecbtarget, :ee, :el, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :federalreserve, :federalreservebanks, :fedex, :fi, :fr_a, :fr_m, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy, :gb_sct, :gb_con, :im, :gb_iom, :ge, :hr, :hk, :hu, :ie, :is, :it, :kr, :li, :lt, :ma, :mt_mt, :mt_en, :mx, :mx_pue, :nerc, :nl, :lu, :no, :nyse, :nz, :nz_sl, :nz_we, :nz_ak, :nz_nl, :nz_ne, :nz_ot, :nz_ta, :nz_sc, :nz_hb, :nz_mb, :nz_ca, :nz_ch, :nz_wl, :pe, :ph, :pl, :pt, :pt_li, :pt_po, :ro, :rs_cyrl, :rs_la, :ru, :se, :tn, :tr, :ua, :us_fl, :us_la, :us_ct, :us_de, :us_gu, :us_hi, :us_in, :us_ky, :us_nj, :us_nc, :us_nd, :us_pr, :us_tn, :us_ms, :us_id, :us_ar, :us_tx, :us_dc, :us_md, :us_va, :us_il, :us_vt, :us_ak, :us_ca, :us_me, :us_ma, :us_al, :us_ga, :us_ne, :us_mo, :us_sc, :us_wv, :us_vi, :us_ut, :us_ri, :us_az, :us_co, :us_mt, :us_nm, :us_ny, :us_oh, :us_pa, :us_mi, :us_mn, :us_nv, :us_or, :us_sd, :us_wa, :us_wi, :us_wy, :us_ia, :us_ks, :us_nh, :us_ok, :unitednations, :ups, :za, :ve, :sk, :si, :jp, :vi, :sg, :my]
3
+ REGIONS = [:ar, :at, :au, :au_nsw, :au_vic, :au_qld, :au_nt, :au_act, :au_sa, :au_wa, :au_tas, :au_tas_south, :au_qld_cairns, :au_qld_brisbane, :au_tas_north, :au_vic_melbourne, :be_fr, :be_nl, :br, :bg_en, :bg_bg, :ca, :ca_qc, :ca_ab, :ca_sk, :ca_on, :ca_bc, :ca_nb, :ca_mb, :ca_ns, :ca_pe, :ca_nl, :ca_nt, :ca_nu, :ca_yt, :us, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cl, :co, :cr, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_be, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh, :ecbtarget, :ee, :el, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :federalreserve, :federalreservebanks, :fedex, :fi, :fr_a, :fr_m, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy, :gb_sct, :gb_con, :im, :gb_iom, :ge, :hr, :hk, :hu, :ie, :is, :it, :kr, :li, :lt, :ma, :mt_mt, :mt_en, :mx, :mx_pue, :nerc, :nl, :lu, :no, :nyse, :nz, :nz_sl, :nz_we, :nz_ak, :nz_nl, :nz_ne, :nz_ot, :nz_ta, :nz_sc, :nz_hb, :nz_mb, :nz_ca, :nz_ch, :nz_wl, :pe, :ph, :pl, :pt, :pt_li, :pt_po, :ro, :rs_cyrl, :rs_la, :ru, :se, :tn, :tr, :ua, :us_fl, :us_la, :us_ct, :us_de, :us_gu, :us_hi, :us_in, :us_ky, :us_nj, :us_nc, :us_nd, :us_pr, :us_tn, :us_ms, :us_id, :us_ar, :us_tx, :us_dc, :us_md, :us_va, :us_il, :us_vt, :us_ak, :us_ca, :us_me, :us_ma, :us_al, :us_ga, :us_ne, :us_mo, :us_sc, :us_wv, :us_vi, :us_ut, :us_ri, :us_az, :us_co, :us_mt, :us_nm, :us_ny, :us_oh, :us_pa, :us_mi, :us_mn, :us_nv, :us_or, :us_sd, :us_wa, :us_wi, :us_wy, :us_ia, :us_ks, :us_nh, :us_ok, :unitednations, :ups, :za, :ve, :sk, :si, :jp, :vi, :sg, :my, :th]
4
4
 
5
- PARENT_REGION_LOOKUP = {:ar=>:ar, :at=>:at, :au=>:au, :au_nsw=>:au, :au_vic=>:au, :au_qld=>:au, :au_nt=>:au, :au_act=>:au, :au_sa=>:au, :au_wa=>:au, :au_tas=>:au, :au_tas_south=>:au, :au_qld_cairns=>:au, :au_qld_brisbane=>:au, :au_tas_north=>:au, :au_vic_melbourne=>:au, :be_fr=>:be_fr, :be_nl=>:be_nl, :br=>:br, :bg_en=>:bg, :bg_bg=>:bg, :ca=>:ca, :ca_qc=>:ca, :ca_ab=>:ca, :ca_sk=>:ca, :ca_on=>:ca, :ca_bc=>:ca, :ca_nb=>:ca, :ca_mb=>:ca, :ca_ns=>:ca, :ca_pe=>:ca, :ca_nl=>:ca, :ca_nt=>:ca, :ca_nu=>:ca, :ca_yt=>:ca, :us=>:us, :ch_zh=>:ch, :ch_be=>:ch, :ch_lu=>:ch, :ch_ur=>:ch, :ch_sz=>:ch, :ch_ow=>:ch, :ch_nw=>:ch, :ch_gl=>:ch, :ch_zg=>:ch, :ch_fr=>:ch, :ch_so=>:ch, :ch_bs=>:ch, :ch_bl=>:ch, :ch_sh=>:ch, :ch_ar=>:ch, :ch_ai=>:ch, :ch_sg=>:ch, :ch_gr=>:ch, :ch_ag=>:ch, :ch_tg=>:ch, :ch_ti=>:ch, :ch_vd=>:ch, :ch_ne=>:ch, :ch_ge=>:ch, :ch_ju=>:ch, :ch_vs=>:ch, :ch=>:ch, :cl=>:cl, :co=>:co, :cr=>:cr, :cz=>:cz, :dk=>:dk, :de=>:de, :de_bw=>:de, :de_by=>:de, :de_he=>:de, :de_nw=>:de, :de_rp=>:de, :de_sl=>:de, :de_sn_sorbian=>:de, :de_th_cath=>:de, :de_sn=>:de, :de_st=>:de, :de_by_cath=>:de, :de_by_augsburg=>:de, :de_bb=>:de, :de_mv=>:de, :de_th=>:de, :de_hb=>:de, :de_hh=>:de, :de_ni=>:de, :de_sh=>:de, :ecbtarget=>:ecbtarget, :ee=>:ee, :el=>:el, :es_pv=>:es, :es_na=>:es, :es_an=>:es, :es_ib=>:es, :es_cm=>:es, :es_mu=>:es, :es_m=>:es, :es_ar=>:es, :es_cl=>:es, :es_cn=>:es, :es_lo=>:es, :es_ga=>:es, :es_ce=>:es, :es_o=>:es, :es_ex=>:es, :es=>:es, :es_ct=>:es, :es_v=>:es, :es_vc=>:es, :federalreserve=>:federalreserve, :federalreservebanks=>:federalreservebanks, :fedex=>:fedex, :fi=>:fi, :fr_a=>:fr, :fr_m=>:fr, :fr=>:fr, :gb=>:gb, :gb_eng=>:gb, :gb_wls=>:gb, :gb_eaw=>:gb, :gb_nir=>:gb, :je=>:gb, :gb_jsy=>:gb, :gg=>:gb, :gb_gsy=>:gb, :gb_sct=>:gb, :gb_con=>:gb, :im=>:gb, :gb_iom=>:gb, :ge=>:ge, :hr=>:hr, :hk=>:hk, :hu=>:hu, :ie=>:ie, :is=>:is, :it=>:it, :kr=>:kr, :li=>:li, :lt=>:lt, :ma=>:ma, :mt_mt=>:mt_mt, :mt_en=>:mt_en, :mx=>:mx, :mx_pue=>:mx, :nerc=>:nerc, :nl=>:nl, :lu=>:lu, :no=>:no, :nyse=>:nyse, :nz=>:nz, :nz_sl=>:nz, :nz_we=>:nz, :nz_ak=>:nz, :nz_nl=>:nz, :nz_ne=>:nz, :nz_ot=>:nz, :nz_ta=>:nz, :nz_sc=>:nz, :nz_hb=>:nz, :nz_mb=>:nz, :nz_ca=>:nz, :nz_ch=>:nz, :nz_wl=>:nz, :pe=>:pe, :ph=>:ph, :pl=>:pl, :pt=>:pt, :pt_li=>:pt, :pt_po=>:pt, :ro=>:ro, :rs_cyrl=>:rs_cyrl, :rs_la=>:rs_la, :ru=>:ru, :se=>:se, :tn=>:tn, :tr=>:tr, :ua=>:ua, :us_fl=>:us, :us_la=>:us, :us_ct=>:us, :us_de=>:us, :us_gu=>:us, :us_hi=>:us, :us_in=>:us, :us_ky=>:us, :us_nj=>:us, :us_nc=>:us, :us_nd=>:us, :us_pr=>:us, :us_tn=>:us, :us_ms=>:us, :us_id=>:us, :us_ar=>:us, :us_tx=>:us, :us_dc=>:us, :us_md=>:us, :us_va=>:us, :us_il=>:us, :us_vt=>:us, :us_ak=>:us, :us_ca=>:us, :us_me=>:us, :us_ma=>:us, :us_al=>:us, :us_ga=>:us, :us_ne=>:us, :us_mo=>:us, :us_sc=>:us, :us_wv=>:us, :us_vi=>:us, :us_ut=>:us, :us_ri=>:us, :us_az=>:us, :us_co=>:us, :us_mt=>:us, :us_nm=>:us, :us_ny=>:us, :us_oh=>:us, :us_pa=>:us, :us_mi=>:us, :us_mn=>:us, :us_nv=>:us, :us_or=>:us, :us_sd=>:us, :us_wa=>:us, :us_wi=>:us, :us_wy=>:us, :us_ia=>:us, :us_ks=>:us, :us_nh=>:us, :us_ok=>:us, :unitednations=>:unitednations, :ups=>:ups, :za=>:za, :ve=>:southamerica, :sk=>:europe, :si=>:europe, :jp=>:jp, :vi=>:vi, :sg=>:sg, :my=>:my}
5
+ PARENT_REGION_LOOKUP = {:ar=>:ar, :at=>:at, :au=>:au, :au_nsw=>:au, :au_vic=>:au, :au_qld=>:au, :au_nt=>:au, :au_act=>:au, :au_sa=>:au, :au_wa=>:au, :au_tas=>:au, :au_tas_south=>:au, :au_qld_cairns=>:au, :au_qld_brisbane=>:au, :au_tas_north=>:au, :au_vic_melbourne=>:au, :be_fr=>:be_fr, :be_nl=>:be_nl, :br=>:br, :bg_en=>:bg, :bg_bg=>:bg, :ca=>:ca, :ca_qc=>:ca, :ca_ab=>:ca, :ca_sk=>:ca, :ca_on=>:ca, :ca_bc=>:ca, :ca_nb=>:ca, :ca_mb=>:ca, :ca_ns=>:ca, :ca_pe=>:ca, :ca_nl=>:ca, :ca_nt=>:ca, :ca_nu=>:ca, :ca_yt=>:ca, :us=>:us, :ch_zh=>:ch, :ch_be=>:ch, :ch_lu=>:ch, :ch_ur=>:ch, :ch_sz=>:ch, :ch_ow=>:ch, :ch_nw=>:ch, :ch_gl=>:ch, :ch_zg=>:ch, :ch_fr=>:ch, :ch_so=>:ch, :ch_bs=>:ch, :ch_bl=>:ch, :ch_sh=>:ch, :ch_ar=>:ch, :ch_ai=>:ch, :ch_sg=>:ch, :ch_gr=>:ch, :ch_ag=>:ch, :ch_tg=>:ch, :ch_ti=>:ch, :ch_vd=>:ch, :ch_ne=>:ch, :ch_ge=>:ch, :ch_ju=>:ch, :ch_vs=>:ch, :ch=>:ch, :cl=>:cl, :co=>:co, :cr=>:cr, :cz=>:cz, :dk=>:dk, :de=>:de, :de_bw=>:de, :de_by=>:de, :de_he=>:de, :de_nw=>:de, :de_rp=>:de, :de_sl=>:de, :de_sn_sorbian=>:de, :de_th_cath=>:de, :de_sn=>:de, :de_st=>:de, :de_be=>:de, :de_by_cath=>:de, :de_by_augsburg=>:de, :de_bb=>:de, :de_mv=>:de, :de_th=>:de, :de_hb=>:de, :de_hh=>:de, :de_ni=>:de, :de_sh=>:de, :ecbtarget=>:ecbtarget, :ee=>:ee, :el=>:el, :es_pv=>:es, :es_na=>:es, :es_an=>:es, :es_ib=>:es, :es_cm=>:es, :es_mu=>:es, :es_m=>:es, :es_ar=>:es, :es_cl=>:es, :es_cn=>:es, :es_lo=>:es, :es_ga=>:es, :es_ce=>:es, :es_o=>:es, :es_ex=>:es, :es=>:es, :es_ct=>:es, :es_v=>:es, :es_vc=>:es, :federalreserve=>:federalreserve, :federalreservebanks=>:federalreservebanks, :fedex=>:fedex, :fi=>:fi, :fr_a=>:fr, :fr_m=>:fr, :fr=>:fr, :gb=>:gb, :gb_eng=>:gb, :gb_wls=>:gb, :gb_eaw=>:gb, :gb_nir=>:gb, :je=>:gb, :gb_jsy=>:gb, :gg=>:gb, :gb_gsy=>:gb, :gb_sct=>:gb, :gb_con=>:gb, :im=>:gb, :gb_iom=>:gb, :ge=>:ge, :hr=>:hr, :hk=>:hk, :hu=>:hu, :ie=>:ie, :is=>:is, :it=>:it, :kr=>:kr, :li=>:li, :lt=>:lt, :ma=>:ma, :mt_mt=>:mt_mt, :mt_en=>:mt_en, :mx=>:mx, :mx_pue=>:mx, :nerc=>:nerc, :nl=>:nl, :lu=>:lu, :no=>:no, :nyse=>:nyse, :nz=>:nz, :nz_sl=>:nz, :nz_we=>:nz, :nz_ak=>:nz, :nz_nl=>:nz, :nz_ne=>:nz, :nz_ot=>:nz, :nz_ta=>:nz, :nz_sc=>:nz, :nz_hb=>:nz, :nz_mb=>:nz, :nz_ca=>:nz, :nz_ch=>:nz, :nz_wl=>:nz, :pe=>:pe, :ph=>:ph, :pl=>:pl, :pt=>:pt, :pt_li=>:pt, :pt_po=>:pt, :ro=>:ro, :rs_cyrl=>:rs_cyrl, :rs_la=>:rs_la, :ru=>:ru, :se=>:se, :tn=>:tn, :tr=>:tr, :ua=>:ua, :us_fl=>:us, :us_la=>:us, :us_ct=>:us, :us_de=>:us, :us_gu=>:us, :us_hi=>:us, :us_in=>:us, :us_ky=>:us, :us_nj=>:us, :us_nc=>:us, :us_nd=>:us, :us_pr=>:us, :us_tn=>:us, :us_ms=>:us, :us_id=>:us, :us_ar=>:us, :us_tx=>:us, :us_dc=>:us, :us_md=>:us, :us_va=>:us, :us_il=>:us, :us_vt=>:us, :us_ak=>:us, :us_ca=>:us, :us_me=>:us, :us_ma=>:us, :us_al=>:us, :us_ga=>:us, :us_ne=>:us, :us_mo=>:us, :us_sc=>:us, :us_wv=>:us, :us_vi=>:us, :us_ut=>:us, :us_ri=>:us, :us_az=>:us, :us_co=>:us, :us_mt=>:us, :us_nm=>:us, :us_ny=>:us, :us_oh=>:us, :us_pa=>:us, :us_mi=>:us, :us_mn=>:us, :us_nv=>:us, :us_or=>:us, :us_sd=>:us, :us_wa=>:us, :us_wi=>:us, :us_wy=>:us, :us_ia=>:us, :us_ks=>:us, :us_nh=>:us, :us_ok=>:us, :unitednations=>:unitednations, :ups=>:ups, :za=>:za, :ve=>:southamerica, :sk=>:europe, :si=>:europe, :jp=>:jp, :vi=>:vi, :sg=>:sg, :my=>:my, :th=>:th}
6
6
  end
@@ -49,6 +49,7 @@ module Holidays
49
49
  {:wday => 1, :week => 1, :name => "Civic Holiday", :regions => [:ca_nt, :ca_nu]},
50
50
  {:wday => 1, :week => 1, :type => :informal, :name => "Civic Holiday", :regions => [:ca_on, :ca_pe]},
51
51
  {:wday => 1, :week => 1, :name => "New Brunswick Day", :regions => [:ca_nb]},
52
+ {:wday => 1, :week => 1, :name => "Terry Fox Day", :regions => [:ca_mb]},
52
53
  {:wday => 1, :week => 3, :name => "Discovery Day", :regions => [:ca_yt]}],
53
54
  9 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:ca]}],
54
55
  10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca_ab, :ca_bc, :ca_mb, :ca_nt, :ca_nu, :ca_on, :ca_sk, :ca_yt]},
@@ -7,7 +7,7 @@ module Holidays
7
7
  # All the definitions are available at https://github.com/holidays/holidays
8
8
  module DE # :nodoc:
9
9
  def self.defined_regions
10
- [:de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh]
10
+ [:de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_be, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh]
11
11
  end
12
12
 
13
13
  def self.holidays_by_month
@@ -24,6 +24,7 @@ module Holidays
24
24
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -46, :type => :informal, :name => "Aschermittwoch", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn]}],
25
25
  1 => [{:mday => 1, :name => "Neujahrstag", :regions => [:de]},
26
26
  {:mday => 6, :name => "Heilige Drei Könige", :regions => [:de_bw, :de_by, :de_st]}],
27
+ 3 => [{:mday => 8, :year_ranges => [{:after => 2019}],:name => "Internationaler Frauentag", :regions => [:de_be]}],
27
28
  5 => [{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]}],
28
29
  8 => [{:mday => 15, :name => "Mariä Himmelfahrt", :regions => [:de_by_cath, :de_by_augsburg, :de_sl]},
29
30
  {:mday => 8, :name => "Friedensfest", :regions => [:de_by_augsburg]}],
@@ -7,7 +7,7 @@ module Holidays
7
7
  # All the definitions are available at https://github.com/holidays/holidays
8
8
  module EUROPE # :nodoc:
9
9
  def self.defined_regions
10
- [:at, :be_fr, :be_nl, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh, :el, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :fr_a, :fr_m, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy, :gb_sct, :gb_con, :im, :gb_iom, :hr, :hu, :ie, :is, :it, :li, :lt, :nl, :no, :pl, :pt, :pt_li, :pt_po, :ro, :sk, :si, :bg_en, :bg_bg, :ua]
10
+ [:at, :be_fr, :be_nl, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_be, :de_by_cath, :de_by_augsburg, :de_bb, :de_mv, :de_th, :de_hb, :de_hh, :de_ni, :de_sh, :el, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :fr_a, :fr_m, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy, :gb_sct, :gb_con, :im, :gb_iom, :hr, :hu, :ie, :is, :it, :li, :lt, :nl, :no, :pl, :pt, :pt_li, :pt_po, :ro, :sk, :si, :bg_en, :bg_bg, :ua]
11
11
  end
12
12
 
13
13
  def self.holidays_by_month
@@ -417,6 +417,7 @@ module Holidays
417
417
  {:mday => 16, :year_ranges => [{:limited => [1991]}],:name => "День Незалежності України", :regions => [:ua]}],
418
418
  3 => [{:mday => 1, :name => "Instauration de la République", :regions => [:ch_ne]},
419
419
  {:mday => 19, :name => "Josephstag", :regions => [:ch_ur, :ch_sz, :ch_nw, :ch_ti, :ch_vs]},
420
+ {:mday => 8, :year_ranges => [{:after => 2019}],:name => "Internationaler Frauentag", :regions => [:de_be]},
420
421
  {:mday => 25, :name => "Επέτειος της Επανάστασης του 1821", :regions => [:el]},
421
422
  {:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de las Islas Baleares", :regions => [:es_ib]},
422
423
  {:mday => 19, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]},
@@ -16,7 +16,7 @@ module Holidays
16
16
  {:wday => 1, :week => 3, :name => "Birthday of Martin Luther King, Jr", :regions => [:federalreservebanks]}],
17
17
  2 => [{:wday => 1, :week => 3, :name => "Washington's Birthday", :regions => [:federalreservebanks]}],
18
18
  5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:federalreservebanks]}],
19
- 7 => [{:mday => 4, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:federalreservebanks]}],
19
+ 7 => [{:mday => 4, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:federalreservebanks]}],
20
20
  9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:federalreservebanks]}],
21
21
  10 => [{:wday => 1, :week => 2, :name => "Columbus Day", :regions => [:federalreservebanks]}],
22
22
  11 => [{:mday => 11, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Veterans Day", :regions => [:federalreservebanks]},
@@ -22,8 +22,11 @@ module Holidays
22
22
  3 => [{:function => "jp_vernal_equinox_day(year)", :function_arguments => [:year], :name => "春分の日", :regions => [:jp]},
23
23
  {:function => "jp_vernal_equinox_day_substitute(year)", :function_arguments => [:year], :name => "振替休日", :regions => [:jp]}],
24
24
  4 => [{:mday => 29, :name => "昭和の日", :regions => [:jp]},
25
- {:mday => 29, :function => "jp_substitute_holiday(year, month, day)", :function_arguments => [:year, :month, :day], :name => "振替休日", :regions => [:jp]}],
26
- 5 => [{:mday => 3, :name => "憲法記念日", :regions => [:jp]},
25
+ {:mday => 29, :function => "jp_substitute_holiday(year, month, day)", :function_arguments => [:year, :month, :day], :name => "振替休日", :regions => [:jp]},
26
+ {:mday => 30, :year_ranges => [{:limited => [2019]}],:name => "休日", :regions => [:jp]}],
27
+ 5 => [{:mday => 1, :year_ranges => [{:limited => [2019]}],:name => "天皇即位", :regions => [:jp]},
28
+ {:mday => 2, :year_ranges => [{:limited => [2019]}],:name => "休日", :regions => [:jp]},
29
+ {:mday => 3, :name => "憲法記念日", :regions => [:jp]},
27
30
  {:mday => 4, :name => "みどりの日", :regions => [:jp]},
28
31
  {:mday => 5, :name => "こどもの日", :regions => [:jp]},
29
32
  {:mday => 3, :function => "jp_substitute_holiday(year, month, day)", :function_arguments => [:year, :month, :day], :name => "振替休日", :regions => [:jp]},
@@ -46,7 +49,8 @@ module Holidays
46
49
  {:function => "jp_national_culture_day_substitute(year)", :function_arguments => [:year], :name => "振替休日", :regions => [:jp]}],
47
50
  10 => [{:wday => 1, :week => 2, :year_ranges => [{:before => 2019}],:name => "体育の日", :regions => [:jp]},
48
51
  {:wday => 1, :week => 2, :year_ranges => [{:after => 2021}],:name => "スポーツの日", :regions => [:jp]},
49
- {:function => "jp_health_sports_day_substitute(year)", :function_arguments => [:year], :name => "振替休日", :regions => [:jp]}],
52
+ {:function => "jp_health_sports_day_substitute(year)", :function_arguments => [:year], :name => "振替休日", :regions => [:jp]},
53
+ {:mday => 22, :year_ranges => [{:limited => [2019]}],:name => "即位礼正殿の儀", :regions => [:jp]}],
50
54
  11 => [{:mday => 3, :name => "文化の日", :regions => [:jp]},
51
55
  {:mday => 3, :function => "jp_substitute_holiday(year, month, day)", :function_arguments => [:year, :month, :day], :name => "振替休日", :regions => [:jp]},
52
56
  {:mday => 23, :name => "勤労感謝の日", :regions => [:jp]},
@@ -91,6 +91,7 @@ module Holidays
91
91
  {:wday => 1, :week => 1, :name => "Civic Holiday", :regions => [:ca_nt, :ca_nu]},
92
92
  {:wday => 1, :week => 1, :type => :informal, :name => "Civic Holiday", :regions => [:ca_on, :ca_pe]},
93
93
  {:wday => 1, :week => 1, :name => "New Brunswick Day", :regions => [:ca_nb]},
94
+ {:wday => 1, :week => 1, :name => "Terry Fox Day", :regions => [:ca_mb]},
94
95
  {:wday => 1, :week => 3, :name => "Discovery Day", :regions => [:ca_yt]},
95
96
  {:wday => 1, :week => 2, :name => "Victory Day", :regions => [:us_ri]},
96
97
  {:mday => 16, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Bennington Battle Day", :regions => [:us_vt]},
@@ -0,0 +1,36 @@
1
+ # encoding: utf-8
2
+ module Holidays
3
+ # This file is generated by the Ruby Holidays gem.
4
+ #
5
+ # Definitions loaded: definitions/th.yaml
6
+ #
7
+ # All the definitions are available at https://github.com/holidays/holidays
8
+ module TH # :nodoc:
9
+ def self.defined_regions
10
+ [:th]
11
+ end
12
+
13
+ def self.holidays_by_month
14
+ {
15
+ 1 => [{:mday => 1, :name => "วันขึ้นปีใหม่", :regions => [:th]}],
16
+ 4 => [{:mday => 6, :name => "วันจักรี", :regions => [:th]},
17
+ {:mday => 13, :name => "วันสงกรานต์", :regions => [:th]},
18
+ {:mday => 14, :name => "วันสงกรานต์", :regions => [:th]},
19
+ {:mday => 15, :name => "วันสงกรานต์", :regions => [:th]}],
20
+ 7 => [{:mday => 28, :name => "วันเฉลิมพระชนมพรรษาสมเด็จพระเจ้าอยู่หัวมหาวชิราลงกรณ บดินทรเทพยวรางกูร", :regions => [:th]}],
21
+ 8 => [{:mday => 12, :name => "วันเฉลิมพระชนมพรรษาสมเด็จพระนางเจ้าสิริกิติ์ พระบรมราชินีนาถในรัชกาลที่ ๙", :regions => [:th]}],
22
+ 10 => [{:mday => 13, :name => "วันคล้ายวันสวรรคตพระบาทสมเด็จพระปรมินทรมหาภูมิพลอดุลยเดช บรมนาถบพิตร", :regions => [:th]},
23
+ {:mday => 23, :name => "วันปิยมหาราช", :regions => [:th]}],
24
+ 12 => [{:mday => 5, :name => "วันคล้ายวันเฉลิมพระชนมพรรษาพระบาทสมเด็จพระปรมินทรมหาภูมิพลอดุลยเดช บรมนาถบพิตร", :regions => [:th]},
25
+ {:mday => 10, :name => "วันรัฐธรรมนูญ", :regions => [:th]},
26
+ {:mday => 31, :name => "วันสิ้นปี", :regions => [:th]}]
27
+ }
28
+ end
29
+
30
+ def self.custom_methods
31
+ {
32
+
33
+ }
34
+ end
35
+ end
36
+ end
@@ -1,3 +1,3 @@
1
1
  module Holidays
2
- VERSION = '7.0.0'
2
+ VERSION = '7.1.0'
3
3
  end
@@ -220,6 +220,14 @@ assert_equal "Boxing Day", (Holidays.on(Date.civil(2016, 12, 27), [:ca_on], [:ob
220
220
 
221
221
  assert_equal "National Aboriginal Day", (Holidays.on(Date.civil(2018, 6, 21), [:ca_yt])[0] || {})[:name]
222
222
 
223
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2019, 8, 5), [:ca_mb])[0] || {})[:name]
224
+
225
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2020, 8, 3), [:ca_mb])[0] || {})[:name]
226
+
227
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2015, 8, 3), [:ca_mb])[0] || {})[:name]
228
+
229
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2045, 8, 7), [:ca_mb])[0] || {})[:name]
230
+
223
231
  assert_equal "Groundhog Day", (Holidays.on(Date.civil(2013, 2, 2), [:us], [:informal])[0] || {})[:name]
224
232
 
225
233
  assert_equal "Valentine's Day", (Holidays.on(Date.civil(2013, 2, 14), [:us], [:informal])[0] || {})[:name]
@@ -75,5 +75,9 @@ class DeDefinitionTests < Test::Unit::TestCase # :nodoc:
75
75
 
76
76
  assert_equal "Aschermittwoch", (Holidays.on(Date.civil(2016, 2, 10), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn], [:informal])[0] || {})[:name]
77
77
 
78
+ assert_nil (Holidays.on(Date.civil(2018, 3, 8), [:de_be])[0] || {})[:name]
79
+
80
+ assert_equal "Internationaler Frauentag", (Holidays.on(Date.civil(2019, 3, 8), [:de_be])[0] || {})[:name]
81
+
78
82
  end
79
83
  end
@@ -257,6 +257,10 @@ class EuropeDefinitionTests < Test::Unit::TestCase # :nodoc:
257
257
 
258
258
  assert_equal "Aschermittwoch", (Holidays.on(Date.civil(2016, 2, 10), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn], [:informal])[0] || {})[:name]
259
259
 
260
+ assert_nil (Holidays.on(Date.civil(2018, 3, 8), [:de_be])[0] || {})[:name]
261
+
262
+ assert_equal "Internationaler Frauentag", (Holidays.on(Date.civil(2019, 3, 8), [:de_be])[0] || {})[:name]
263
+
260
264
  assert_equal "Πρωτοχρονιά", (Holidays.on(Date.civil(2011, 1, 1), [:el], [:informal])[0] || {})[:name]
261
265
 
262
266
  assert_equal "Θεοφάνεια", (Holidays.on(Date.civil(2011, 1, 6), [:el], [:informal])[0] || {})[:name]
@@ -17,8 +17,6 @@ class FederalreservebanksDefinitionTests < Test::Unit::TestCase # :nodoc:
17
17
 
18
18
  assert_equal "Independence Day", (Holidays.on(Date.civil(2012, 7, 4), [:federalreservebanks], [:observed])[0] || {})[:name]
19
19
 
20
- assert_equal "Independence Day", (Holidays.on(Date.civil(2020, 7, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
21
-
22
20
  assert_equal "Labor Day", (Holidays.on(Date.civil(2012, 9, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
23
21
 
24
22
  assert_equal "Columbus Day", (Holidays.on(Date.civil(2012, 10, 8), [:federalreservebanks], [:observed])[0] || {})[:name]
@@ -77,7 +75,9 @@ class FederalreservebanksDefinitionTests < Test::Unit::TestCase # :nodoc:
77
75
 
78
76
  assert_equal "Memorial Day", (Holidays.on(Date.civil(2015, 5, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
79
77
 
80
- assert_equal "Independence Day", (Holidays.on(Date.civil(2015, 7, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
78
+ assert_nil (Holidays.on(Date.civil(2015, 7, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
79
+
80
+ assert_nil (Holidays.on(Date.civil(2015, 7, 6), [:federalreservebanks], [:observed])[0] || {})[:name]
81
81
 
82
82
  assert_equal "Labor Day", (Holidays.on(Date.civil(2015, 9, 7), [:federalreservebanks], [:observed])[0] || {})[:name]
83
83
 
@@ -109,5 +109,119 @@ class FederalreservebanksDefinitionTests < Test::Unit::TestCase # :nodoc:
109
109
 
110
110
  assert_equal "Christmas Day", (Holidays.on(Date.civil(2016, 12, 26), [:federalreservebanks], [:observed])[0] || {})[:name]
111
111
 
112
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2019, 1, 1), [:federalreservebanks], [:observed])[0] || {})[:name]
113
+
114
+ assert_equal "Birthday of Martin Luther King, Jr", (Holidays.on(Date.civil(2019, 1, 21), [:federalreservebanks], [:observed])[0] || {})[:name]
115
+
116
+ assert_equal "Washington's Birthday", (Holidays.on(Date.civil(2019, 2, 18), [:federalreservebanks], [:observed])[0] || {})[:name]
117
+
118
+ assert_equal "Memorial Day", (Holidays.on(Date.civil(2019, 5, 27), [:federalreservebanks], [:observed])[0] || {})[:name]
119
+
120
+ assert_equal "Independence Day", (Holidays.on(Date.civil(2019, 7, 4), [:federalreservebanks], [:observed])[0] || {})[:name]
121
+
122
+ assert_equal "Labor Day", (Holidays.on(Date.civil(2019, 9, 2), [:federalreservebanks], [:observed])[0] || {})[:name]
123
+
124
+ assert_equal "Columbus Day", (Holidays.on(Date.civil(2019, 10, 14), [:federalreservebanks], [:observed])[0] || {})[:name]
125
+
126
+ assert_equal "Veterans Day", (Holidays.on(Date.civil(2019, 11, 11), [:federalreservebanks], [:observed])[0] || {})[:name]
127
+
128
+ assert_equal "Thanksgiving Day", (Holidays.on(Date.civil(2019, 11, 28), [:federalreservebanks], [:observed])[0] || {})[:name]
129
+
130
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2019, 12, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
131
+
132
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2020, 1, 1), [:federalreservebanks], [:observed])[0] || {})[:name]
133
+
134
+ assert_equal "Birthday of Martin Luther King, Jr", (Holidays.on(Date.civil(2020, 1, 20), [:federalreservebanks], [:observed])[0] || {})[:name]
135
+
136
+ assert_equal "Washington's Birthday", (Holidays.on(Date.civil(2020, 2, 17), [:federalreservebanks], [:observed])[0] || {})[:name]
137
+
138
+ assert_equal "Memorial Day", (Holidays.on(Date.civil(2020, 5, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
139
+
140
+ assert_nil (Holidays.on(Date.civil(2020, 7, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
141
+
142
+ assert_nil (Holidays.on(Date.civil(2020, 7, 6), [:federalreservebanks], [:observed])[0] || {})[:name]
143
+
144
+ assert_equal "Labor Day", (Holidays.on(Date.civil(2020, 9, 7), [:federalreservebanks], [:observed])[0] || {})[:name]
145
+
146
+ assert_equal "Columbus Day", (Holidays.on(Date.civil(2020, 10, 12), [:federalreservebanks], [:observed])[0] || {})[:name]
147
+
148
+ assert_equal "Veterans Day", (Holidays.on(Date.civil(2020, 11, 11), [:federalreservebanks], [:observed])[0] || {})[:name]
149
+
150
+ assert_equal "Thanksgiving Day", (Holidays.on(Date.civil(2020, 11, 26), [:federalreservebanks], [:observed])[0] || {})[:name]
151
+
152
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2020, 12, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
153
+
154
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2021, 1, 1), [:federalreservebanks], [:observed])[0] || {})[:name]
155
+
156
+ assert_equal "Birthday of Martin Luther King, Jr", (Holidays.on(Date.civil(2021, 1, 18), [:federalreservebanks], [:observed])[0] || {})[:name]
157
+
158
+ assert_equal "Washington's Birthday", (Holidays.on(Date.civil(2021, 2, 15), [:federalreservebanks], [:observed])[0] || {})[:name]
159
+
160
+ assert_equal "Memorial Day", (Holidays.on(Date.civil(2021, 5, 31), [:federalreservebanks], [:observed])[0] || {})[:name]
161
+
162
+ assert_nil (Holidays.on(Date.civil(2021, 7, 2), [:federalreservebanks], [:observed])[0] || {})[:name]
163
+
164
+ assert_equal "Independence Day", (Holidays.on(Date.civil(2021, 7, 5), [:federalreservebanks], [:observed])[0] || {})[:name]
165
+
166
+ assert_equal "Labor Day", (Holidays.on(Date.civil(2021, 9, 6), [:federalreservebanks], [:observed])[0] || {})[:name]
167
+
168
+ assert_equal "Columbus Day", (Holidays.on(Date.civil(2021, 10, 11), [:federalreservebanks], [:observed])[0] || {})[:name]
169
+
170
+ assert_equal "Veterans Day", (Holidays.on(Date.civil(2021, 11, 11), [:federalreservebanks], [:observed])[0] || {})[:name]
171
+
172
+ assert_equal "Thanksgiving Day", (Holidays.on(Date.civil(2021, 11, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
173
+
174
+ assert_nil (Holidays.on(Date.civil(2021, 12, 24), [:federalreservebanks], [:observed])[0] || {})[:name]
175
+
176
+ assert_nil (Holidays.on(Date.civil(2021, 12, 27), [:federalreservebanks], [:observed])[0] || {})[:name]
177
+
178
+ assert_nil (Holidays.on(Date.civil(2021, 12, 31), [:federalreservebanks], [:observed])[0] || {})[:name]
179
+
180
+ assert_nil (Holidays.on(Date.civil(2022, 1, 3), [:federalreservebanks], [:observed])[0] || {})[:name]
181
+
182
+ assert_equal "Birthday of Martin Luther King, Jr", (Holidays.on(Date.civil(2022, 1, 17), [:federalreservebanks], [:observed])[0] || {})[:name]
183
+
184
+ assert_equal "Washington's Birthday", (Holidays.on(Date.civil(2022, 2, 21), [:federalreservebanks], [:observed])[0] || {})[:name]
185
+
186
+ assert_equal "Memorial Day", (Holidays.on(Date.civil(2022, 5, 30), [:federalreservebanks], [:observed])[0] || {})[:name]
187
+
188
+ assert_equal "Independence Day", (Holidays.on(Date.civil(2022, 7, 4), [:federalreservebanks], [:observed])[0] || {})[:name]
189
+
190
+ assert_equal "Labor Day", (Holidays.on(Date.civil(2022, 9, 5), [:federalreservebanks], [:observed])[0] || {})[:name]
191
+
192
+ assert_equal "Columbus Day", (Holidays.on(Date.civil(2022, 10, 10), [:federalreservebanks], [:observed])[0] || {})[:name]
193
+
194
+ assert_equal "Veterans Day", (Holidays.on(Date.civil(2022, 11, 11), [:federalreservebanks], [:observed])[0] || {})[:name]
195
+
196
+ assert_equal "Thanksgiving Day", (Holidays.on(Date.civil(2022, 11, 24), [:federalreservebanks], [:observed])[0] || {})[:name]
197
+
198
+ assert_nil (Holidays.on(Date.civil(2022, 12, 23), [:federalreservebanks], [:observed])[0] || {})[:name]
199
+
200
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2022, 12, 26), [:federalreservebanks], [:observed])[0] || {})[:name]
201
+
202
+ assert_nil (Holidays.on(Date.civil(2022, 12, 30), [:federalreservebanks], [:observed])[0] || {})[:name]
203
+
204
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2023, 1, 2), [:federalreservebanks], [:observed])[0] || {})[:name]
205
+
206
+ assert_equal "Birthday of Martin Luther King, Jr", (Holidays.on(Date.civil(2023, 1, 16), [:federalreservebanks], [:observed])[0] || {})[:name]
207
+
208
+ assert_equal "Washington's Birthday", (Holidays.on(Date.civil(2023, 2, 20), [:federalreservebanks], [:observed])[0] || {})[:name]
209
+
210
+ assert_equal "Memorial Day", (Holidays.on(Date.civil(2023, 5, 29), [:federalreservebanks], [:observed])[0] || {})[:name]
211
+
212
+ assert_equal "Independence Day", (Holidays.on(Date.civil(2023, 7, 4), [:federalreservebanks], [:observed])[0] || {})[:name]
213
+
214
+ assert_equal "Labor Day", (Holidays.on(Date.civil(2023, 9, 4), [:federalreservebanks], [:observed])[0] || {})[:name]
215
+
216
+ assert_equal "Columbus Day", (Holidays.on(Date.civil(2023, 10, 9), [:federalreservebanks], [:observed])[0] || {})[:name]
217
+
218
+ assert_nil (Holidays.on(Date.civil(2023, 11, 10), [:federalreservebanks], [:observed])[0] || {})[:name]
219
+
220
+ assert_nil (Holidays.on(Date.civil(2023, 11, 13), [:federalreservebanks], [:observed])[0] || {})[:name]
221
+
222
+ assert_equal "Thanksgiving Day", (Holidays.on(Date.civil(2023, 11, 23), [:federalreservebanks], [:observed])[0] || {})[:name]
223
+
224
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2023, 12, 25), [:federalreservebanks], [:observed])[0] || {})[:name]
225
+
112
226
  end
113
227
  end
@@ -220,6 +220,14 @@ assert_equal "Boxing Day", (Holidays.on(Date.civil(2016, 12, 27), [:ca_on], [:ob
220
220
 
221
221
  assert_equal "National Aboriginal Day", (Holidays.on(Date.civil(2018, 6, 21), [:ca_yt])[0] || {})[:name]
222
222
 
223
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2019, 8, 5), [:ca_mb])[0] || {})[:name]
224
+
225
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2020, 8, 3), [:ca_mb])[0] || {})[:name]
226
+
227
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2015, 8, 3), [:ca_mb])[0] || {})[:name]
228
+
229
+ assert_equal "Terry Fox Day", (Holidays.on(Date.civil(2045, 8, 7), [:ca_mb])[0] || {})[:name]
230
+
223
231
  assert_equal "Año nuevo", (Holidays.on(Date.civil(2007, 1, 1), [:mx], [:informal])[0] || {})[:name]
224
232
 
225
233
  assert_equal "Día de la Constitución", (Holidays.on(Date.civil(2007, 2, 5), [:mx], [:informal])[0] || {})[:name]
@@ -0,0 +1,33 @@
1
+ # encoding: utf-8
2
+ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
3
+
4
+ # This file is generated by the Ruby Holiday gem.
5
+ #
6
+ # Definitions loaded: definitions/th.yaml
7
+ class ThDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_th
10
+ assert_equal "วันขึ้นปีใหม่", (Holidays.on(Date.civil(20019, 1, 1), [:th], [:informal])[0] || {})[:name]
11
+
12
+ assert_equal "วันจักรี", (Holidays.on(Date.civil(2019, 4, 6), [:th], [:informal])[0] || {})[:name]
13
+
14
+ assert_equal "วันสงกรานต์", (Holidays.on(Date.civil(2019, 4, 13), [:th], [:informal])[0] || {})[:name]
15
+ assert_equal "วันสงกรานต์", (Holidays.on(Date.civil(2019, 4, 14), [:th], [:informal])[0] || {})[:name]
16
+ assert_equal "วันสงกรานต์", (Holidays.on(Date.civil(2019, 4, 15), [:th], [:informal])[0] || {})[:name]
17
+
18
+ assert_equal "วันเฉลิมพระชนมพรรษาสมเด็จพระเจ้าอยู่หัวมหาวชิราลงกรณ บดินทรเทพยวรางกูร", (Holidays.on(Date.civil(2019, 7, 28), [:th], [:informal])[0] || {})[:name]
19
+
20
+ assert_equal "วันเฉลิมพระชนมพรรษาสมเด็จพระนางเจ้าสิริกิติ์ พระบรมราชินีนาถในรัชกาลที่ ๙", (Holidays.on(Date.civil(2007, 8, 12), [:th], [:informal])[0] || {})[:name]
21
+
22
+ assert_equal "วันคล้ายวันสวรรคตพระบาทสมเด็จพระปรมินทรมหาภูมิพลอดุลยเดช บรมนาถบพิตร", (Holidays.on(Date.civil(2019, 10, 13), [:th], [:informal])[0] || {})[:name]
23
+
24
+ assert_equal "วันปิยมหาราช", (Holidays.on(Date.civil(2019, 10, 23), [:th], [:informal])[0] || {})[:name]
25
+
26
+ assert_equal "วันคล้ายวันเฉลิมพระชนมพรรษาพระบาทสมเด็จพระปรมินทรมหาภูมิพลอดุลยเดช บรมนาถบพิตร", (Holidays.on(Date.civil(2019, 12, 5), [:th], [:informal])[0] || {})[:name]
27
+
28
+ assert_equal "วันรัฐธรรมนูญ", (Holidays.on(Date.civil(2019, 12, 10), [:th], [:informal])[0] || {})[:name]
29
+
30
+ assert_equal "วันสิ้นปี", (Holidays.on(Date.civil(2019, 12, 31), [:th], [:informal])[0] || {})[:name]
31
+
32
+ end
33
+ end
@@ -18,6 +18,6 @@ class AvailableRegionsTests < Test::Unit::TestCase
18
18
  # This test might fail if we add new regions. Since this is an integration test
19
19
  # I am fine with that!
20
20
  def test_available_regions_returns_correct_number_of_regions
21
- assert_equal 242, Holidays.available_regions.count
21
+ assert_equal 244, Holidays.available_regions.count
22
22
  end
23
23
  end
@@ -266,6 +266,6 @@ class HolidaysTests < Test::Unit::TestCase
266
266
 
267
267
  def test_load_all
268
268
  Holidays.load_all
269
- assert_equal 242, Holidays.available_regions.count
269
+ assert_equal 244, Holidays.available_regions.count
270
270
  end
271
271
  end
@@ -14,7 +14,7 @@ class NonstandardRegionsHolidaysTests < Test::Unit::TestCase
14
14
  end
15
15
 
16
16
  def test_federalreservebanks_independence_day
17
- h = Holidays.on(Date.new(2020,7,3), :federalreservebanks, :observed)
17
+ h = Holidays.on(Date.new(2019,7,4), :federalreservebanks, :observed)
18
18
  assert_equal 'Independence Day', h[0][:name]
19
19
  end
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-09 00:00:00.000000000 Z
12
+ date: 2019-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -183,6 +183,7 @@ files:
183
183
  - lib/generated_definitions/si.rb
184
184
  - lib/generated_definitions/sk.rb
185
185
  - lib/generated_definitions/southamerica.rb
186
+ - lib/generated_definitions/th.rb
186
187
  - lib/generated_definitions/tn.rb
187
188
  - lib/generated_definitions/tr.rb
188
189
  - lib/generated_definitions/ua.rb
@@ -308,6 +309,7 @@ files:
308
309
  - test/defs/test_defs_si.rb
309
310
  - test/defs/test_defs_sk.rb
310
311
  - test/defs/test_defs_southamerica.rb
312
+ - test/defs/test_defs_th.rb
311
313
  - test/defs/test_defs_tn.rb
312
314
  - test/defs/test_defs_tr.rb
313
315
  - test/defs/test_defs_ua.rb
@@ -462,6 +464,7 @@ test_files:
462
464
  - test/defs/test_defs_si.rb
463
465
  - test/defs/test_defs_sk.rb
464
466
  - test/defs/test_defs_southamerica.rb
467
+ - test/defs/test_defs_th.rb
465
468
  - test/defs/test_defs_tn.rb
466
469
  - test/defs/test_defs_tr.rb
467
470
  - test/defs/test_defs_ua.rb