holidays 9.2.0 → 10.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +38 -2
- data/lib/generated_definitions/au.rb +16 -42
- data/lib/generated_definitions/europe.rb +2 -10
- data/lib/generated_definitions/lu.rb +1 -1
- data/lib/generated_definitions/nz.rb +9 -1
- data/lib/generated_definitions/pl.rb +3 -11
- data/lib/holidays/definition/context/function_processor.rb +4 -5
- data/lib/holidays/definition/context/generator.rb +3 -1
- data/lib/holidays/version.rb +1 -1
- metadata +3 -313
- data/.github/workflows/changelog-check.yml +0 -47
- data/.github/workflows/release.yml +0 -46
- data/.github/workflows/ruby.yml +0 -26
- data/.gitmodules +0 -3
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -8
- data/Makefile +0 -60
- data/Rakefile +0 -137
- data/bin/console +0 -7
- data/bin/setup +0 -6
- data/doc/CONTRIBUTING.md +0 -72
- data/doc/MAINTAINERS.md +0 -79
- data/doc/REFERENCES +0 -19
- data/holidays.gemspec +0 -31
- data/test/coverage_report.rb +0 -24
- data/test/data/test_custom_year_range_holiday_defs.yaml +0 -31
- data/test/data/test_date_transform_conflict_region_1.yaml +0 -14
- data/test/data/test_date_transform_conflict_region_2.yaml +0 -14
- data/test/data/test_invalid_region.rb +0 -15
- data/test/data/test_region.rb +0 -15
- data/test/data/test_single_custom_holiday_defs.yaml +0 -12
- data/test/data/test_single_custom_holiday_with_custom_procs.yaml +0 -28
- data/test/defs/test_defs_ar.rb +0 -69
- data/test/defs/test_defs_at.rb +0 -31
- data/test/defs/test_defs_au.rb +0 -233
- data/test/defs/test_defs_be_fr.rb +0 -45
- data/test/defs/test_defs_be_nl.rb +0 -45
- data/test/defs/test_defs_bg.rb +0 -41
- data/test/defs/test_defs_br.rb +0 -49
- data/test/defs/test_defs_ca.rb +0 -289
- data/test/defs/test_defs_ch.rb +0 -51
- data/test/defs/test_defs_cl.rb +0 -69
- data/test/defs/test_defs_co.rb +0 -113
- data/test/defs/test_defs_cr.rb +0 -29
- data/test/defs/test_defs_cy.rb +0 -41
- data/test/defs/test_defs_cz.rb +0 -37
- data/test/defs/test_defs_de.rb +0 -91
- data/test/defs/test_defs_dk.rb +0 -47
- data/test/defs/test_defs_ecbtarget.rb +0 -27
- data/test/defs/test_defs_ee.rb +0 -41
- data/test/defs/test_defs_es.rb +0 -137
- data/test/defs/test_defs_europe.rb +0 -1530
- data/test/defs/test_defs_fed_ex.rb +0 -24
- data/test/defs/test_defs_federalreserve.rb +0 -119
- data/test/defs/test_defs_federalreservebanks.rb +0 -251
- data/test/defs/test_defs_fedex.rb +0 -31
- data/test/defs/test_defs_fi.rb +0 -59
- data/test/defs/test_defs_fr.rb +0 -43
- data/test/defs/test_defs_gb.rb +0 -163
- data/test/defs/test_defs_ge.rb +0 -53
- data/test/defs/test_defs_gr.rb +0 -41
- data/test/defs/test_defs_hk.rb +0 -93
- data/test/defs/test_defs_hr.rb +0 -45
- data/test/defs/test_defs_hu.rb +0 -47
- data/test/defs/test_defs_ie.rb +0 -53
- data/test/defs/test_defs_il.rb +0 -35
- data/test/defs/test_defs_in.rb +0 -94
- data/test/defs/test_defs_is.rb +0 -51
- data/test/defs/test_defs_it.rb +0 -57
- data/test/defs/test_defs_jp.rb +0 -159
- data/test/defs/test_defs_ke.rb +0 -31
- data/test/defs/test_defs_kr.rb +0 -37
- data/test/defs/test_defs_kz.rb +0 -39
- data/test/defs/test_defs_li.rb +0 -35
- data/test/defs/test_defs_lt.rb +0 -65
- data/test/defs/test_defs_lu.rb +0 -35
- data/test/defs/test_defs_lv.rb +0 -98
- data/test/defs/test_defs_ma.rb +0 -29
- data/test/defs/test_defs_mc.rb +0 -43
- data/test/defs/test_defs_mt_en.rb +0 -41
- data/test/defs/test_defs_mt_mt.rb +0 -41
- data/test/defs/test_defs_mx.rb +0 -49
- data/test/defs/test_defs_my.rb +0 -23
- data/test/defs/test_defs_nerc.rb +0 -29
- data/test/defs/test_defs_ng.rb +0 -29
- data/test/defs/test_defs_nl.rb +0 -33
- data/test/defs/test_defs_no.rb +0 -43
- data/test/defs/test_defs_northamerica.rb +0 -679
- data/test/defs/test_defs_nyse.rb +0 -46
- data/test/defs/test_defs_nz.rb +0 -67
- data/test/defs/test_defs_pe.rb +0 -47
- data/test/defs/test_defs_ph.rb +0 -29
- data/test/defs/test_defs_pl.rb +0 -229
- data/test/defs/test_defs_pt.rb +0 -47
- data/test/defs/test_defs_ro.rb +0 -69
- data/test/defs/test_defs_rs_cyrl.rb +0 -46
- data/test/defs/test_defs_rs_la.rb +0 -46
- data/test/defs/test_defs_ru.rb +0 -34
- data/test/defs/test_defs_scandinavia.rb +0 -215
- data/test/defs/test_defs_se.rb +0 -59
- data/test/defs/test_defs_sg.rb +0 -25
- data/test/defs/test_defs_si.rb +0 -105
- data/test/defs/test_defs_sk.rb +0 -37
- data/test/defs/test_defs_southamerica.rb +0 -327
- data/test/defs/test_defs_th.rb +0 -33
- data/test/defs/test_defs_tn.rb +0 -27
- data/test/defs/test_defs_tr.rb +0 -60
- data/test/defs/test_defs_tsx.rb +0 -70
- data/test/defs/test_defs_ua.rb +0 -41
- data/test/defs/test_defs_unitednations.rb +0 -11
- data/test/defs/test_defs_ups.rb +0 -31
- data/test/defs/test_defs_us.rb +0 -399
- data/test/defs/test_defs_ve.rb +0 -35
- data/test/defs/test_defs_vi.rb +0 -22
- data/test/defs/test_defs_za.rb +0 -35
- data/test/e2e/README.md +0 -52
- data/test/e2e/data/test_multiple_regions_with_conflicts_region_1.yaml +0 -38
- data/test/e2e/data/test_multiple_regions_with_conflicts_region_2.yaml +0 -38
- data/test/e2e/data/test_multiple_regions_with_conflicts_region_3.yaml +0 -38
- data/test/e2e/test_all_regions.rb +0 -49
- data/test/e2e/test_any_holidays_during_work_week.rb +0 -90
- data/test/e2e/test_holidays.rb +0 -244
- data/test/e2e/test_holidays_between.rb +0 -87
- data/test/e2e/test_multiple_regions.rb +0 -71
- data/test/e2e/test_multiple_regions_with_conflict.rb +0 -228
- data/test/e2e/test_nonstandard_regions.rb +0 -25
- data/test/holidays/core_extensions/test_date.rb +0 -122
- data/test/holidays/core_extensions/test_date_time.rb +0 -60
- data/test/holidays/date_calculator/test_day_of_month.rb +0 -27
- data/test/holidays/date_calculator/test_easter_gregorian.rb +0 -30
- data/test/holidays/date_calculator/test_easter_julian.rb +0 -36
- data/test/holidays/date_calculator/test_lunar_date.rb +0 -89
- data/test/holidays/date_calculator/test_weekend_modifier.rb +0 -54
- data/test/holidays/definition/context/test_function_processor.rb +0 -199
- data/test/holidays/definition/context/test_generator.rb +0 -226
- data/test/holidays/definition/context/test_load.rb +0 -37
- data/test/holidays/definition/context/test_merger.rb +0 -25
- data/test/holidays/definition/decorator/test_custom_method_proc.rb +0 -113
- data/test/holidays/definition/decorator/test_custom_method_source.rb +0 -96
- data/test/holidays/definition/decorator/test_test.rb +0 -123
- data/test/holidays/definition/generator/test_module.rb +0 -268
- data/test/holidays/definition/generator/test_regions.rb +0 -97
- data/test/holidays/definition/generator/test_test.rb +0 -113
- data/test/holidays/definition/parser/test_custom_method.rb +0 -79
- data/test/holidays/definition/parser/test_test.rb +0 -142
- data/test/holidays/definition/repository/test_cache.rb +0 -123
- data/test/holidays/definition/repository/test_custom_methods.rb +0 -43
- data/test/holidays/definition/repository/test_holidays_by_month.rb +0 -275
- data/test/holidays/definition/repository/test_proc_result_cache.rb +0 -91
- data/test/holidays/definition/repository/test_regions.rb +0 -104
- data/test/holidays/definition/validator/test_custom_method.rb +0 -94
- data/test/holidays/definition/validator/test_region.rb +0 -54
- data/test/holidays/definition/validator/test_test.rb +0 -60
- data/test/holidays/finder/context/test_between.rb +0 -172
- data/test/holidays/finder/context/test_dates_driver_builder.rb +0 -91
- data/test/holidays/finder/context/test_next_holiday.rb +0 -156
- data/test/holidays/finder/context/test_parse_options.rb +0 -141
- data/test/holidays/finder/context/test_search.rb +0 -290
- data/test/holidays/finder/context/test_year_holiday.rb +0 -202
- data/test/holidays/finder/rules/test_in_region.rb +0 -42
- data/test/holidays/finder/rules/test_year_range.rb +0 -166
- data/test/integration/README.md +0 -48
- data/test/integration/data/test_custom_govt_holiday_defs.yaml +0 -5
- data/test/integration/data/test_custom_informal_holidays_defs.yaml +0 -11
- data/test/integration/data/test_multiple_custom_holiday_defs.yaml +0 -12
- data/test/integration/test_custom_holidays.rb +0 -41
- data/test/integration/test_custom_informal_holidays.rb +0 -15
- data/test/integration/test_custom_year_range_holidays.rb +0 -35
- data/test/smoke/README.md +0 -31
- data/test/smoke/test_available_regions.rb +0 -18
- data/test/smoke/test_smoke.rb +0 -74
- data/test/test_helper.rb +0 -37
data/test/defs/test_defs_gb.rb
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
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/gb.yaml
|
|
7
|
-
class GbDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_gb
|
|
10
|
-
assert_equal "Mothering Sunday", (Holidays.on(Date.civil(2022, 3, 27), [:gb], [:informal])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Mothering Sunday", (Holidays.on(Date.civil(2021, 3, 14), [:gb], [:informal])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Good Friday", (Holidays.on(Date.civil(2008, 3, 21), [:gb], [:informal])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Easter Sunday", (Holidays.on(Date.civil(2008, 3, 23), [:gb], [:informal])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "May Day", (Holidays.on(Date.civil(2008, 5, 5), [:gb], [:informal])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 5, 26), [:gb], [:informal])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Guy Fawkes Day", (Holidays.on(Date.civil(2008, 11, 5), [:gb], [:informal])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:gb], [:informal])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2008, 12, 26), [:gb], [:informal])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2008, 3, 17), [:gb_nir], [:informal])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2018, 3, 17), [:gb_nir], [:informal])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2018, 3, 19), [:gb_nir], [:observed, :informal])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2019, 3, 17), [:gb_nir], [:informal])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2019, 3, 18), [:gb_nir], [:observed, :informal])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2020, 7, 12), [:gb_nir])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_nil (Holidays.on(Date.civil(2020, 7, 12), [:gb_nir], [:observed])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2020, 7, 13), [:gb_nir], [:observed])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2008, 7, 12), [:gb_nir])[0] || {})[:name]
|
|
45
|
-
|
|
46
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2008, 7, 14), [:gb_nir], [:observed])[0] || {})[:name]
|
|
47
|
-
|
|
48
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2021, 7, 12), [:gb_nir])[0] || {})[:name]
|
|
49
|
-
|
|
50
|
-
assert_equal "Battle of the Boyne", (Holidays.on(Date.civil(2021, 7, 12), [:gb_nir], [:observed])[0] || {})[:name]
|
|
51
|
-
|
|
52
|
-
assert_nil (Holidays.on(Date.civil(2021, 7, 13), [:gb_nir], [:observed])[0] || {})[:name]
|
|
53
|
-
|
|
54
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct], [:informal])[0] || {})[:name]
|
|
55
|
-
|
|
56
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct], [:informal, :observed])[0] || {})[:name]
|
|
57
|
-
|
|
58
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2002, 12, 2), [:gb_sct], [:informal, :observed])[0] || {})[:name]
|
|
59
|
-
|
|
60
|
-
assert_nil (Holidays.on(Date.civil(2004, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
61
|
-
|
|
62
|
-
assert_nil (Holidays.on(Date.civil(2005, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
63
|
-
|
|
64
|
-
assert_nil (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
65
|
-
|
|
66
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
67
|
-
|
|
68
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct], [:informal])[0] || {})[:name]
|
|
69
|
-
|
|
70
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct], [:informal, :observed])[0] || {})[:name]
|
|
71
|
-
|
|
72
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2016, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
73
|
-
|
|
74
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
75
|
-
|
|
76
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 11, 30), [:gb_sct])[0] || {})[:name]
|
|
77
|
-
|
|
78
|
-
assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 12, 2), [:gb_sct], [:observed])[0] || {})[:name]
|
|
79
|
-
|
|
80
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:gb_], [:observed])[0] || {})[:name]
|
|
81
|
-
|
|
82
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2009, 12, 25), [:gb_], [:observed])[0] || {})[:name]
|
|
83
|
-
|
|
84
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2010, 12, 27), [:gb_], [:observed])[0] || {})[:name]
|
|
85
|
-
|
|
86
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2008, 12, 26), [:gb_], [:observed])[0] || {})[:name]
|
|
87
|
-
|
|
88
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2009, 12, 28), [:gb_], [:observed])[0] || {})[:name]
|
|
89
|
-
|
|
90
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2010, 12, 28), [:gb_], [:observed])[0] || {})[:name]
|
|
91
|
-
|
|
92
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2011, 12, 27), [:gb_], [:observed])[0] || {})[:name]
|
|
93
|
-
|
|
94
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2010, 1, 1), [:gb], [:observed])[0] || {})[:name]
|
|
95
|
-
|
|
96
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2011, 1, 3), [:gb], [:observed])[0] || {})[:name]
|
|
97
|
-
|
|
98
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:gb], [:observed])[0] || {})[:name]
|
|
99
|
-
|
|
100
|
-
assert_equal "2nd January", (Holidays.on(Date.civil(2010, 1, 4), [:gb_sct], [:observed])[0] || {})[:name]
|
|
101
|
-
|
|
102
|
-
assert_equal "2nd January", (Holidays.on(Date.civil(2011, 1, 4), [:gb_sct], [:observed])[0] || {})[:name]
|
|
103
|
-
|
|
104
|
-
assert_equal "2nd January", (Holidays.on(Date.civil(2012, 1, 3), [:gb_sct], [:observed])[0] || {})[:name]
|
|
105
|
-
|
|
106
|
-
assert_equal "2nd January", (Holidays.on(Date.civil(2013, 1, 2), [:gb_sct], [:observed])[0] || {})[:name]
|
|
107
|
-
|
|
108
|
-
assert_equal "2nd January", (Holidays.on(Date.civil(2014, 1, 2), [:gb_sct], [:observed])[0] || {})[:name]
|
|
109
|
-
|
|
110
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_wls])[0] || {})[:name]
|
|
111
|
-
|
|
112
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_wls])[0] || {})[:name]
|
|
113
|
-
|
|
114
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_eng])[0] || {})[:name]
|
|
115
|
-
|
|
116
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_eng])[0] || {})[:name]
|
|
117
|
-
|
|
118
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_nir])[0] || {})[:name]
|
|
119
|
-
|
|
120
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_nir])[0] || {})[:name]
|
|
121
|
-
|
|
122
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_eaw])[0] || {})[:name]
|
|
123
|
-
|
|
124
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_eaw])[0] || {})[:name]
|
|
125
|
-
|
|
126
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_])[0] || {})[:name]
|
|
127
|
-
|
|
128
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_])[0] || {})[:name]
|
|
129
|
-
|
|
130
|
-
assert_equal "Liberation Day", (Holidays.on(Date.civil(2018, 5, 9), [:je])[0] || {})[:name]
|
|
131
|
-
|
|
132
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2018, 4, 2), [:je])[0] || {})[:name]
|
|
133
|
-
|
|
134
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2018, 8, 27), [:je])[0] || {})[:name]
|
|
135
|
-
|
|
136
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2022, 6, 2), [:gb])[0] || {})[:name]
|
|
137
|
-
|
|
138
|
-
assert_nil (Holidays.on(Date.civil(2022, 5, 30), [:gb])[0] || {})[:name]
|
|
139
|
-
|
|
140
|
-
assert_equal "Platinum Jubilee", (Holidays.on(Date.civil(2022, 6, 3), [:gb])[0] || {})[:name]
|
|
141
|
-
|
|
142
|
-
assert_equal "Bank Holiday for the State Funeral of Queen Elizabeth II", (Holidays.on(Date.civil(2022, 9, 19), [:gb])[0] || {})[:name]
|
|
143
|
-
|
|
144
|
-
assert_nil (Holidays.on(Date.civil(2023, 9, 19), [:gb])[0] || {})[:name]
|
|
145
|
-
|
|
146
|
-
assert_nil (Holidays.on(Date.civil(2021, 9, 19), [:gb])[0] || {})[:name]
|
|
147
|
-
|
|
148
|
-
assert_equal "Bank Holiday for the Coronation of King Charles III", (Holidays.on(Date.civil(2023, 5, 8), [:gb])[0] || {})[:name]
|
|
149
|
-
|
|
150
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2016, 3, 28), [:gb_con])[0] || {})[:name]
|
|
151
|
-
|
|
152
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2016, 8, 29), [:gb_con])[0] || {})[:name]
|
|
153
|
-
|
|
154
|
-
assert_nil (Holidays.on(Date.civil(2024, 5, 8), [:gb])[0] || {})[:name]
|
|
155
|
-
|
|
156
|
-
assert_nil (Holidays.on(Date.civil(2022, 5, 8), [:gb])[0] || {})[:name]
|
|
157
|
-
|
|
158
|
-
assert_equal "Bank Holiday", (Holidays.on(Date.civil(2023, 5, 29), [:gb])[0] || {})[:name]
|
|
159
|
-
|
|
160
|
-
assert_equal "Bank Holiday for the Coronation of King Charles III", (Holidays.on(Date.civil(2023, 5, 8), [:gb])[0] || {})[:name]
|
|
161
|
-
|
|
162
|
-
end
|
|
163
|
-
end
|
data/test/defs/test_defs_ge.rb
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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/ge.yaml
|
|
7
|
-
class GeDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_ge
|
|
10
|
-
assert_equal "ახალი წელი", (Holidays.on(Date.civil(2017, 1, 1), [:ge])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "ბედობა", (Holidays.on(Date.civil(2017, 1, 2), [:ge])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "ქრისტეშობა", (Holidays.on(Date.civil(2017, 1, 7), [:ge])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "ნათლისღება", (Holidays.on(Date.civil(2017, 1, 19), [:ge])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "დედის დღე", (Holidays.on(Date.civil(2017, 3, 3), [:ge])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "ქალთა საერთაშორისო დღე", (Holidays.on(Date.civil(2017, 3, 8), [:ge])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "ეროვნული ერთიანობის დღე", (Holidays.on(Date.civil(2017, 4, 9), [:ge])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "ფაშიზმზე გამარჯვების დღე", (Holidays.on(Date.civil(2017, 5, 9), [:ge])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "წმინდა მოციქულის ანდრია პირველწოდებულის საქართველოში შემოსვლის დღე", (Holidays.on(Date.civil(2017, 5, 12), [:ge])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "დამოუკიდებლობის დღე", (Holidays.on(Date.civil(2017, 5, 26), [:ge])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "მარიამობა", (Holidays.on(Date.civil(2017, 8, 28), [:ge])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "სვეტიცხოვლობა", (Holidays.on(Date.civil(2017, 10, 14), [:ge])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "გიორგობა", (Holidays.on(Date.civil(2017, 11, 23), [:ge])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "დიდი პარასკევი", (Holidays.on(Date.civil(2017, 4, 14), [:ge])[0] || {})[:name]
|
|
37
|
-
assert_equal "დიდი პარასკევი", (Holidays.on(Date.civil(2018, 4, 6), [:ge])[0] || {})[:name]
|
|
38
|
-
assert_equal "დიდი პარასკევი", (Holidays.on(Date.civil(2019, 4, 26), [:ge])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_equal "დიდი შაბათი", (Holidays.on(Date.civil(2017, 4, 15), [:ge])[0] || {})[:name]
|
|
41
|
-
assert_equal "დიდი შაბათი", (Holidays.on(Date.civil(2018, 4, 7), [:ge])[0] || {})[:name]
|
|
42
|
-
assert_equal "დიდი შაბათი", (Holidays.on(Date.civil(2019, 4, 27), [:ge])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "ბრწყინვალე აღდგომის დღე", (Holidays.on(Date.civil(2017, 4, 16), [:ge])[0] || {})[:name]
|
|
45
|
-
assert_equal "ბრწყინვალე აღდგომის დღე", (Holidays.on(Date.civil(2018, 4, 8), [:ge])[0] || {})[:name]
|
|
46
|
-
assert_equal "ბრწყინვალე აღდგომის დღე", (Holidays.on(Date.civil(2019, 4, 28), [:ge])[0] || {})[:name]
|
|
47
|
-
|
|
48
|
-
assert_equal "მიცვალებულთა", (Holidays.on(Date.civil(2017, 4, 17), [:ge])[0] || {})[:name]
|
|
49
|
-
assert_equal "მიცვალებულთა", (Holidays.on(Date.civil(2018, 4, 9), [:ge])[0] || {})[:name]
|
|
50
|
-
assert_equal "მიცვალებულთა", (Holidays.on(Date.civil(2019, 4, 29), [:ge])[0] || {})[:name]
|
|
51
|
-
|
|
52
|
-
end
|
|
53
|
-
end
|
data/test/defs/test_defs_gr.rb
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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/gr.yaml
|
|
7
|
-
class GrDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_gr
|
|
10
|
-
assert_equal "Πρωτοχρονιά", (Holidays.on(Date.civil(2011, 1, 1), [:gr], [:informal])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Θεοφάνεια", (Holidays.on(Date.civil(2011, 1, 6), [:gr], [:informal])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Μεγάλη Παρασκευή", (Holidays.on(Date.civil(2011, 4, 22), [:gr], [:informal])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Μεγάλο Σάββατο", (Holidays.on(Date.civil(1970, 4, 25), [:gr], [:informal])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(1985, 4, 14), [:gr], [:informal])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2011, 4, 24), [:gr], [:informal])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2027, 5, 2), [:gr], [:informal])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Δευτέρα του Πάσχα", (Holidays.on(Date.civil(2046, 4, 30), [:gr], [:informal])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Πρωτομαγιά", (Holidays.on(Date.civil(2011, 5, 1), [:gr], [:informal])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2011, 6, 13), [:gr], [:informal])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2012, 6, 4), [:gr], [:informal])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2011, 3, 7), [:gr], [:informal])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2012, 2, 27), [:gr], [:informal])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "Χριστούγεννα", (Holidays.on(Date.civil(2011, 12, 25), [:gr], [:informal])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "Δεύτερη ημέρα των Χριστουγέννων", (Holidays.on(Date.civil(2011, 12, 26), [:gr], [:informal])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
end
|
|
41
|
-
end
|
data/test/defs/test_defs_hk.rb
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
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/hk.yaml
|
|
7
|
-
class HkDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_hk
|
|
10
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2016, 1, 1), [:hk], [:observed])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Lunar New Year's Day", (Holidays.on(Date.civil(2016, 2, 8), [:hk], [:observed])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "The second day of Lunar New Year", (Holidays.on(Date.civil(2016, 2, 9), [:hk], [:observed])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "The third day of Lunar New Year", (Holidays.on(Date.civil(2016, 2, 10), [:hk], [:observed])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Good Friday", (Holidays.on(Date.civil(2016, 3, 25), [:hk], [:observed])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "The day following Good Friday", (Holidays.on(Date.civil(2016, 3, 26), [:hk], [:observed])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2016, 3, 28), [:hk], [:observed])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Labour Day", (Holidays.on(Date.civil(2016, 5, 2), [:hk], [:observed])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Hong Kong Special Administrative Region Establishment Day", (Holidays.on(Date.civil(2016, 7, 1), [:hk], [:observed])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "National Day", (Holidays.on(Date.civil(2016, 10, 1), [:hk], [:observed])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2016, 12, 26), [:hk], [:observed])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2016, 12, 27), [:hk], [:observed])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2017, 1, 2), [:hk], [:observed])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "Lunar New Year's Day", (Holidays.on(Date.civil(2017, 1, 28), [:hk], [:observed])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "The second day of Lunar New Year", (Holidays.on(Date.civil(2017, 1, 30), [:hk], [:observed])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_equal "The third day of Lunar New Year", (Holidays.on(Date.civil(2017, 1, 31), [:hk], [:observed])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Good Friday", (Holidays.on(Date.civil(2017, 4, 14), [:hk], [:observed])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "The day following Good Friday", (Holidays.on(Date.civil(2017, 4, 15), [:hk], [:observed])[0] || {})[:name]
|
|
45
|
-
|
|
46
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2017, 4, 17), [:hk], [:observed])[0] || {})[:name]
|
|
47
|
-
|
|
48
|
-
assert_equal "Labour Day", (Holidays.on(Date.civil(2017, 5, 1), [:hk], [:observed])[0] || {})[:name]
|
|
49
|
-
|
|
50
|
-
assert_equal "Hong Kong Special Administrative Region Establishment Day", (Holidays.on(Date.civil(2017, 7, 1), [:hk], [:observed])[0] || {})[:name]
|
|
51
|
-
|
|
52
|
-
assert_equal "National Day", (Holidays.on(Date.civil(2017, 10, 2), [:hk], [:observed])[0] || {})[:name]
|
|
53
|
-
|
|
54
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2017, 12, 25), [:hk], [:observed])[0] || {})[:name]
|
|
55
|
-
|
|
56
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2017, 12, 26), [:hk], [:observed])[0] || {})[:name]
|
|
57
|
-
|
|
58
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2023, 1, 2), [:hk], [:observed])[0] || {})[:name]
|
|
59
|
-
|
|
60
|
-
assert_equal "Lunar New Year's Day", (Holidays.on(Date.civil(2023, 1, 23), [:hk], [:observed])[0] || {})[:name]
|
|
61
|
-
|
|
62
|
-
assert_equal "The second day of Lunar New Year", (Holidays.on(Date.civil(2023, 1, 24), [:hk], [:observed])[0] || {})[:name]
|
|
63
|
-
|
|
64
|
-
assert_equal "The third day of Lunar New Year", (Holidays.on(Date.civil(2023, 1, 25), [:hk], [:observed])[0] || {})[:name]
|
|
65
|
-
|
|
66
|
-
assert_equal "Ching Ming Festival", (Holidays.on(Date.civil(2023, 4, 5), [:hk], [:observed])[0] || {})[:name]
|
|
67
|
-
|
|
68
|
-
assert_equal "Good Friday", (Holidays.on(Date.civil(2023, 4, 7), [:hk], [:observed])[0] || {})[:name]
|
|
69
|
-
|
|
70
|
-
assert_equal "The day following Good Friday", (Holidays.on(Date.civil(2023, 4, 8), [:hk], [:observed])[0] || {})[:name]
|
|
71
|
-
|
|
72
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2023, 4, 10), [:hk], [:observed])[0] || {})[:name]
|
|
73
|
-
|
|
74
|
-
assert_equal "Labour Day", (Holidays.on(Date.civil(2023, 5, 1), [:hk], [:observed])[0] || {})[:name]
|
|
75
|
-
|
|
76
|
-
assert_equal "Buddha's Birthday", (Holidays.on(Date.civil(2023, 5, 26), [:hk], [:observed])[0] || {})[:name]
|
|
77
|
-
|
|
78
|
-
assert_equal "Tuen Ng Festival", (Holidays.on(Date.civil(2023, 6, 22), [:hk], [:observed])[0] || {})[:name]
|
|
79
|
-
|
|
80
|
-
assert_equal "Hong Kong Special Administrative Region Establishment Day", (Holidays.on(Date.civil(2023, 7, 1), [:hk], [:observed])[0] || {})[:name]
|
|
81
|
-
|
|
82
|
-
assert_equal "The day following the Chinese Mid-Autumn Festival", (Holidays.on(Date.civil(2023, 9, 30), [:hk], [:observed])[0] || {})[:name]
|
|
83
|
-
|
|
84
|
-
assert_equal "National Day", (Holidays.on(Date.civil(2023, 10, 2), [:hk], [:observed])[0] || {})[:name]
|
|
85
|
-
|
|
86
|
-
assert_equal "Chung Yeung Festival", (Holidays.on(Date.civil(2023, 10, 23), [:hk], [:observed])[0] || {})[:name]
|
|
87
|
-
|
|
88
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2023, 12, 25), [:hk], [:observed])[0] || {})[:name]
|
|
89
|
-
|
|
90
|
-
assert_equal "Boxing Day", (Holidays.on(Date.civil(2023, 12, 26), [:hk], [:observed])[0] || {})[:name]
|
|
91
|
-
|
|
92
|
-
end
|
|
93
|
-
end
|
data/test/defs/test_defs_hr.rb
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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/hr.yaml
|
|
7
|
-
class HrDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_hr
|
|
10
|
-
assert_equal "Nova godina", (Holidays.on(Date.civil(2012, 1, 1), [:hr], [:informal])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Bogojavljenje ili Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Dan antifašističke borbe", (Holidays.on(Date.civil(2012, 6, 22), [:hr], [:informal])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Dan državnosti", (Holidays.on(Date.civil(2020, 5, 30), [:hr], [:informal])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Velika Gospa", (Holidays.on(Date.civil(2012, 8, 15), [:hr], [:informal])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje", (Holidays.on(Date.civil(2020, 11, 18), [:hr], [:informal])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Svi sveti", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "Božić", (Holidays.on(Date.civil(2012, 12, 25), [:hr], [:informal])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "Sveti Stjepan", (Holidays.on(Date.civil(2012, 12, 26), [:hr], [:informal])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2008, 5, 22), [:hr])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2009, 6, 11), [:hr])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2010, 6, 3), [:hr])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2012, 6, 7), [:hr])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2013, 5, 30), [:hr])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Tijelovo", (Holidays.on(Date.civil(2014, 6, 19), [:hr])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
end
|
|
45
|
-
end
|
data/test/defs/test_defs_hu.rb
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
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/hu.yaml
|
|
7
|
-
class HuDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_hu
|
|
10
|
-
assert_equal "Újév", (Holidays.on(Date.civil(2012, 1, 1), [:hu], [:informal])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Újév", (Holidays.on(Date.civil(2011, 1, 1), [:hu], [:informal])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "1848/49-es forradalom és szabadságharc ünnepe", (Holidays.on(Date.civil(2012, 3, 15), [:hu], [:informal])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Húsvéthétfő", (Holidays.on(Date.civil(2011, 4, 25), [:hu], [:informal])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Húsvéthétfő", (Holidays.on(Date.civil(2012, 4, 9), [:hu], [:informal])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "A munka ünnepe", (Holidays.on(Date.civil(2012, 5, 1), [:hu], [:informal])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Pünkösdhétfő", (Holidays.on(Date.civil(2011, 6, 13), [:hu], [:informal])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Pünkösdhétfő", (Holidays.on(Date.civil(2012, 5, 28), [:hu], [:informal])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Az államalapítás ünnepe", (Holidays.on(Date.civil(2012, 8, 20), [:hu], [:informal])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "1956-os forradalom és szabadságharc ünnepe", (Holidays.on(Date.civil(2012, 10, 23), [:hu], [:informal])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "Mindenszentek", (Holidays.on(Date.civil(2012, 11, 1), [:hu], [:informal])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Karácsony", (Holidays.on(Date.civil(2012, 12, 25), [:hu], [:informal])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "Karácsony", (Holidays.on(Date.civil(2012, 12, 26), [:hu], [:informal])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_nil (Holidays.on(Date.civil(2012, 3, 14), [:hu])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "Húsvéthétfő", (Holidays.on(Date.civil(2016, 3, 28), [:hu])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_nil (Holidays.on(Date.civil(2016, 3, 25), [:hu])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Húsvéthétfő", (Holidays.on(Date.civil(2017, 4, 17), [:hu])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "Nagypéntek", (Holidays.on(Date.civil(2017, 4, 14), [:hu])[0] || {})[:name]
|
|
45
|
-
|
|
46
|
-
end
|
|
47
|
-
end
|
data/test/defs/test_defs_ie.rb
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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/ie.yaml
|
|
7
|
-
class IeDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_ie
|
|
10
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2008, 1, 1), [:ie])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2008, 3, 17), [:ie])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:ie])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "May Day", (Holidays.on(Date.civil(2008, 5, 5), [:ie])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "June Bank Holiday", (Holidays.on(Date.civil(2008, 6, 2), [:ie])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "August Bank Holiday", (Holidays.on(Date.civil(2008, 8, 4), [:ie])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "October Bank Holiday", (Holidays.on(Date.civil(2008, 10, 27), [:ie])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:ie])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2008, 12, 26), [:ie])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:ie], [:observed])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2012, 3, 19), [:ie], [:observed])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Easter Monday", (Holidays.on(Date.civil(2012, 4, 9), [:ie], [:observed])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "May Day", (Holidays.on(Date.civil(2012, 5, 7), [:ie], [:observed])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "June Bank Holiday", (Holidays.on(Date.civil(2012, 6, 4), [:ie], [:observed])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "August Bank Holiday", (Holidays.on(Date.civil(2012, 8, 6), [:ie], [:observed])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_equal "October Bank Holiday", (Holidays.on(Date.civil(2012, 10, 29), [:ie], [:observed])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2011, 12, 26), [:ie], [:observed])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2011, 12, 27), [:ie], [:observed])[0] || {})[:name]
|
|
45
|
-
|
|
46
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2012, 12, 25), [:ie], [:observed])[0] || {})[:name]
|
|
47
|
-
|
|
48
|
-
assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2012, 12, 26), [:ie], [:observed])[0] || {})[:name]
|
|
49
|
-
|
|
50
|
-
assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2015, 12, 28), [:ie], [:observed])[0] || {})[:name]
|
|
51
|
-
|
|
52
|
-
end
|
|
53
|
-
end
|
data/test/defs/test_defs_il.rb
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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/il.yaml
|
|
7
|
-
class IlDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_il
|
|
10
|
-
assert_equal "Exodus from Egypt", (Holidays.on(Date.civil(2024, 3, 23), [:il])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Exodus from Egypt (day 7)", (Holidays.on(Date.civil(2023, 3, 12), [:il])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Independence Day", (Holidays.on(Date.civil(2025, 4, 1), [:il])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Thanksgiving", (Holidays.on(Date.civil(2026, 4, 22), [:il])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Thanksgiving (day 2)", (Holidays.on(Date.civil(2024, 5, 13), [:il])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "Jewish New Year", (Holidays.on(Date.civil(2023, 9, 16), [:il])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "2nd New Year's Day", (Holidays.on(Date.civil(2025, 9, 24), [:il])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Day of Atonement", (Holidays.on(Date.civil(2026, 9, 21), [:il])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Feast of Tabernacles", (Holidays.on(Date.civil(2024, 10, 17), [:il])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "Rejoicing of the Torah", (Holidays.on(Date.civil(2025, 10, 15), [:il])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_nil (Holidays.on(Date.civil(2024, 7, 9), [:il])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_nil (Holidays.on(Date.civil(2026, 8, 15), [:il])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
end
|
|
35
|
-
end
|
data/test/defs/test_defs_in.rb
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
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/in.yaml
|
|
7
|
-
class InDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
|
-
|
|
9
|
-
def test_in
|
|
10
|
-
assert_equal "New Year's Day", (Holidays.on(Date.civil(2025, 1, 1), [:in])[0] || {})[:name]
|
|
11
|
-
|
|
12
|
-
assert_equal "Swami Vivekananda Jayanti", (Holidays.on(Date.civil(2025, 1, 12), [:in_wb])[0] || {})[:name]
|
|
13
|
-
|
|
14
|
-
assert_equal "Makar Sankranti / Pongal / Magh Bihu / Uttarayan / Khichdi / Sankranti", (Holidays.on(Date.civil(2025, 1, 14), [:in])[0] || {})[:name]
|
|
15
|
-
|
|
16
|
-
assert_equal "Netaji Subhas Chandra Bose Jayanti", (Holidays.on(Date.civil(2025, 1, 23), [:in_wb])[0] || {})[:name]
|
|
17
|
-
|
|
18
|
-
assert_equal "Republic Day", (Holidays.on(Date.civil(2025, 1, 26), [:in])[0] || {})[:name]
|
|
19
|
-
|
|
20
|
-
assert_equal "Chhatrapati Shivaji Maharaj Jayanti", (Holidays.on(Date.civil(2025, 2, 19), [:in_mh])[0] || {})[:name]
|
|
21
|
-
|
|
22
|
-
assert_equal "Arunachal Pradesh Statehood Day", (Holidays.on(Date.civil(2025, 2, 20), [:in_ar])[0] || {})[:name]
|
|
23
|
-
|
|
24
|
-
assert_equal "Mizoram State Day", (Holidays.on(Date.civil(2025, 2, 20), [:in_mz])[0] || {})[:name]
|
|
25
|
-
|
|
26
|
-
assert_equal "Bihar Day", (Holidays.on(Date.civil(2025, 3, 22), [:in_br])[0] || {})[:name]
|
|
27
|
-
|
|
28
|
-
assert_equal "Odisha Day", (Holidays.on(Date.civil(2025, 4, 1), [:in_od])[0] || {})[:name]
|
|
29
|
-
|
|
30
|
-
assert_equal "Dr. B. R. Ambedkar Jayanti", (Holidays.on(Date.civil(2025, 4, 14), [:in])[0] || {})[:name]
|
|
31
|
-
|
|
32
|
-
assert_equal "Himachal Pradesh Day", (Holidays.on(Date.civil(2025, 4, 15), [:in_hp])[0] || {})[:name]
|
|
33
|
-
|
|
34
|
-
assert_equal "West Bengal Day", (Holidays.on(Date.civil(2025, 4, 15), [:in_wb])[0] || {})[:name]
|
|
35
|
-
|
|
36
|
-
assert_equal "Labour Day", (Holidays.on(Date.civil(2025, 5, 1), [:in])[0] || {})[:name]
|
|
37
|
-
|
|
38
|
-
assert_equal "Gujarat Day", (Holidays.on(Date.civil(2025, 5, 1), [:in_gj])[0] || {})[:name]
|
|
39
|
-
|
|
40
|
-
assert_equal "Maharashtra Day", (Holidays.on(Date.civil(2025, 5, 1), [:in_mh])[0] || {})[:name]
|
|
41
|
-
|
|
42
|
-
assert_equal "Rabindranath Tagore Jayanti", (Holidays.on(Date.civil(2025, 5, 7), [:in_wb])[0] || {})[:name]
|
|
43
|
-
|
|
44
|
-
assert_equal "Sikkim State Day", (Holidays.on(Date.civil(2025, 5, 16), [:in_sk])[0] || {})[:name]
|
|
45
|
-
|
|
46
|
-
assert_equal "Telangana Formation Day", (Holidays.on(Date.civil(2025, 6, 2), [:in_ts])[0] || {})[:name]
|
|
47
|
-
|
|
48
|
-
assert_equal "Martyrs' Day", (Holidays.on(Date.civil(2025, 7, 13), [:in_jh])[0] || {})[:name]
|
|
49
|
-
|
|
50
|
-
assert_equal "Independence day", (Holidays.on(Date.civil(2025, 8, 15), [:in])[0] || {})[:name]
|
|
51
|
-
|
|
52
|
-
assert_equal "Puducherry De Jure Transfer Day", (Holidays.on(Date.civil(2025, 8, 16), [:in_py])[0] || {})[:name]
|
|
53
|
-
|
|
54
|
-
assert_equal "Sree Narayana Guru Jayanti", (Holidays.on(Date.civil(2025, 8, 20), [:in_kl])[0] || {})[:name]
|
|
55
|
-
|
|
56
|
-
assert_equal "Hyderabad-Karnataka Liberation Day", (Holidays.on(Date.civil(2025, 9, 17), [:in_ka])[0] || {})[:name]
|
|
57
|
-
|
|
58
|
-
assert_equal "Mahatma Gandhi Jayanti", (Holidays.on(Date.civil(2025, 10, 2), [:in])[0] || {})[:name]
|
|
59
|
-
|
|
60
|
-
assert_equal "Jammu and Kashmir Association Day", (Holidays.on(Date.civil(2025, 10, 26), [:in_jk])[0] || {})[:name]
|
|
61
|
-
|
|
62
|
-
assert_equal "Sardar Vallabhbhai Patel Jayanti", (Holidays.on(Date.civil(2025, 10, 31), [:in_gj])[0] || {})[:name]
|
|
63
|
-
|
|
64
|
-
assert_equal "Andhra Pradesh Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_ap])[0] || {})[:name]
|
|
65
|
-
|
|
66
|
-
assert_equal "Chhattisgarh Rajyotsava", (Holidays.on(Date.civil(2025, 11, 1), [:in_cg])[0] || {})[:name]
|
|
67
|
-
|
|
68
|
-
assert_equal "Haryana Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_hr])[0] || {})[:name]
|
|
69
|
-
|
|
70
|
-
assert_equal "Kannada Rajyothsava", (Holidays.on(Date.civil(2025, 11, 1), [:in_ka])[0] || {})[:name]
|
|
71
|
-
|
|
72
|
-
assert_equal "Kerala Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_kl])[0] || {})[:name]
|
|
73
|
-
|
|
74
|
-
assert_equal "Madhya Pradesh Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_mp])[0] || {})[:name]
|
|
75
|
-
|
|
76
|
-
assert_equal "Punjab Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_pb])[0] || {})[:name]
|
|
77
|
-
|
|
78
|
-
assert_equal "Puducherry Liberation Day", (Holidays.on(Date.civil(2025, 11, 1), [:in_py])[0] || {})[:name]
|
|
79
|
-
|
|
80
|
-
assert_equal "Nagaland State Inauguration Day", (Holidays.on(Date.civil(2025, 12, 1), [:in_nl])[0] || {})[:name]
|
|
81
|
-
|
|
82
|
-
assert_equal "Asom Day", (Holidays.on(Date.civil(2025, 12, 2), [:in_as])[0] || {})[:name]
|
|
83
|
-
|
|
84
|
-
assert_equal "Goa Liberation Day", (Holidays.on(Date.civil(2025, 12, 19), [:in_ga])[0] || {})[:name]
|
|
85
|
-
|
|
86
|
-
assert_equal "Christmas Day", (Holidays.on(Date.civil(2025, 12, 25), [:in])[0] || {})[:name]
|
|
87
|
-
|
|
88
|
-
assert_equal "Good Friday", (Holidays.on(Date.civil(2025, 4, 18), [:in])[0] || {})[:name]
|
|
89
|
-
|
|
90
|
-
assert_nil (Holidays.on(Date.civil(2025, 1, 4), [:in], [:informal])[0] || {})[:name]
|
|
91
|
-
assert_nil (Holidays.on(Date.civil(2025, 1, 18), [:in], [:informal])[0] || {})[:name]
|
|
92
|
-
|
|
93
|
-
end
|
|
94
|
-
end
|