holidays 5.4.0 → 5.5.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 +15 -0
- data/Makefile +1 -1
- data/README.md +6 -6
- data/Rakefile +7 -8
- data/lib/generated_definitions/REGIONS.rb +3 -1
- data/lib/generated_definitions/ar.rb +0 -6
- data/lib/generated_definitions/at.rb +0 -6
- data/lib/generated_definitions/au.rb +6 -9
- data/lib/generated_definitions/be_fr.rb +0 -6
- data/lib/generated_definitions/be_nl.rb +0 -6
- data/lib/generated_definitions/bg.rb +0 -6
- data/lib/generated_definitions/br.rb +0 -6
- data/lib/generated_definitions/ca.rb +0 -6
- data/lib/generated_definitions/ch.rb +0 -6
- data/lib/generated_definitions/cl.rb +0 -6
- data/lib/generated_definitions/cr.rb +0 -6
- data/lib/generated_definitions/cz.rb +0 -6
- data/lib/generated_definitions/de.rb +0 -6
- data/lib/generated_definitions/dk.rb +0 -6
- data/lib/generated_definitions/ecb_target.rb +0 -6
- data/lib/generated_definitions/el.rb +0 -6
- data/lib/generated_definitions/es.rb +0 -6
- data/lib/generated_definitions/europe.rb +0 -6
- data/lib/generated_definitions/federal_reserve.rb +0 -6
- data/lib/generated_definitions/fedex.rb +0 -6
- data/lib/generated_definitions/fi.rb +0 -6
- data/lib/generated_definitions/fr.rb +0 -6
- data/lib/generated_definitions/gb.rb +0 -6
- data/lib/generated_definitions/hk.rb +0 -6
- data/lib/generated_definitions/hr.rb +0 -6
- data/lib/generated_definitions/hu.rb +0 -6
- data/lib/generated_definitions/ie.rb +0 -6
- data/lib/generated_definitions/is.rb +0 -6
- data/lib/generated_definitions/it.rb +0 -6
- data/lib/generated_definitions/jp.rb +0 -6
- data/lib/generated_definitions/kr.rb +15 -225
- data/lib/generated_definitions/li.rb +0 -6
- data/lib/generated_definitions/lt.rb +0 -6
- data/lib/generated_definitions/lu.rb +0 -6
- data/lib/generated_definitions/ma.rb +0 -6
- data/lib/generated_definitions/mx.rb +0 -6
- data/lib/generated_definitions/my.rb +0 -6
- data/lib/generated_definitions/nerc.rb +0 -6
- data/lib/generated_definitions/nl.rb +0 -6
- data/lib/generated_definitions/no.rb +0 -6
- data/lib/generated_definitions/north_america.rb +0 -6
- data/lib/generated_definitions/nyse.rb +1 -7
- data/lib/generated_definitions/nz.rb +0 -6
- data/lib/generated_definitions/pe.rb +0 -6
- data/lib/generated_definitions/ph.rb +0 -6
- data/lib/generated_definitions/pl.rb +0 -6
- data/lib/generated_definitions/pt.rb +0 -6
- data/lib/generated_definitions/ro.rb +0 -6
- data/lib/generated_definitions/scandinavia.rb +0 -6
- data/lib/generated_definitions/se.rb +0 -6
- data/lib/generated_definitions/sg.rb +0 -6
- data/lib/generated_definitions/si.rb +0 -6
- data/lib/generated_definitions/sk.rb +0 -6
- data/lib/generated_definitions/tn.rb +0 -6
- data/lib/generated_definitions/united_nations.rb +0 -6
- data/lib/generated_definitions/ups.rb +0 -6
- data/lib/generated_definitions/us.rb +0 -6
- data/lib/generated_definitions/ve.rb +0 -6
- data/lib/generated_definitions/vi.rb +5 -10
- data/lib/generated_definitions/za.rb +0 -6
- data/lib/holidays.rb +0 -1
- data/lib/holidays/date_calculator/lunar_date.rb +371 -0
- data/lib/holidays/definition/context/function_processor.rb +20 -15
- data/lib/holidays/definition/context/generator.rb +0 -6
- data/lib/holidays/definition/context/load.rb +29 -0
- data/lib/holidays/definition/context/merger.rb +0 -4
- data/lib/holidays/definition/generator/regions.rb +50 -0
- data/lib/holidays/definition/repository/cache.rb +20 -7
- data/lib/holidays/definition/repository/proc_result_cache.rb +1 -1
- data/lib/holidays/definition/repository/regions.rb +23 -13
- data/lib/holidays/definition/validator/custom_method.rb +1 -1
- data/lib/holidays/definition/validator/region.rb +2 -9
- data/lib/holidays/factory/date_calculator.rb +5 -0
- data/lib/holidays/factory/definition.rb +17 -1
- data/lib/holidays/factory/finder.rb +1 -1
- data/lib/holidays/finder/context/between.rb +3 -0
- data/lib/holidays/finder/context/parse_options.rb +53 -52
- data/lib/holidays/finder/context/search.rb +23 -6
- data/lib/holidays/finder/rules/in_region.rb +1 -1
- data/lib/holidays/load_all_definitions.rb +9 -0
- data/lib/holidays/version.rb +1 -1
- data/test/data/test_invalid_region.rb +15 -0
- data/test/data/test_region.rb +15 -0
- data/test/defs/test_defs_au.rb +11 -1
- data/test/defs/test_defs_kr.rb +15 -12
- data/test/defs/test_defs_nyse.rb +5 -0
- data/test/defs/test_defs_vi.rb +6 -4
- data/test/holidays/date_calculator/test_lunar_date.rb +89 -0
- data/test/holidays/definition/context/test_function_processor.rb +47 -23
- data/test/holidays/definition/context/test_generator.rb +3 -3
- data/test/holidays/definition/context/test_load.rb +37 -0
- data/test/holidays/definition/generator/test_regions.rb +97 -0
- data/test/holidays/definition/repository/test_cache.rb +47 -6
- data/test/holidays/definition/repository/test_proc_result_cache.rb +7 -0
- data/test/holidays/definition/repository/test_regions.rb +31 -13
- data/test/holidays/definition/validator/test_custom_method.rb +5 -0
- data/test/holidays/definition/validator/test_region.rb +7 -12
- data/test/holidays/factory/test_date_calculator.rb +5 -0
- data/test/holidays/factory/test_definition.rb +9 -0
- data/test/holidays/finder/context/test_parse_options.rb +102 -33
- data/test/holidays/finder/context/test_search.rb +45 -16
- data/test/integration/test_available_regions.rb +1 -1
- data/test/integration/test_custom_year_range_holidays.rb +0 -1
- data/test/integration/test_holidays.rb +3 -3
- data/test/integration/test_multiple_regions.rb +0 -1
- metadata +16 -3
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/fr.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/fr'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module FR # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/gb.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/gb'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module GB # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/hk.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/hk'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module HK # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/hr.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/hr'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module HR # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/hu.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/hu'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module HU # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/ie.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/ie'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module IE # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/is.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/is'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module IS # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/it.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/it'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module IT # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/jp.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/jp'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module JP # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/kr.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/kr'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module KR # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -18,230 +12,26 @@ module Holidays
|
|
|
18
12
|
|
|
19
13
|
def self.holidays_by_month
|
|
20
14
|
{
|
|
21
|
-
|
|
22
|
-
{:function => "
|
|
23
|
-
{:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
5 => [{:mday => 5, :name => "
|
|
27
|
-
6 => [{:mday => 6, :name => "
|
|
28
|
-
7 => [{:mday => 17, :type => :informal, :name => "
|
|
29
|
-
8 => [{:mday => 15, :
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
1 => [{:mday => 1, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날", :regions => [:kr]},
|
|
16
|
+
{:mday => 2, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날 연휴", :regions => [:kr]},
|
|
17
|
+
{:mday => 1, :name => "신정", :regions => [:kr]}],
|
|
18
|
+
3 => [{:mday => 1, :name => "3·1절", :regions => [:kr]}],
|
|
19
|
+
4 => [{:mday => 8, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "석가탄신일", :regions => [:kr]}],
|
|
20
|
+
5 => [{:mday => 5, :name => "어린이날", :regions => [:kr]}],
|
|
21
|
+
6 => [{:mday => 6, :name => "현충일", :regions => [:kr]}],
|
|
22
|
+
7 => [{:mday => 17, :type => :informal, :name => "제헌절", :regions => [:kr]}],
|
|
23
|
+
8 => [{:mday => 15, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "추석", :regions => [:kr]},
|
|
24
|
+
{:mday => 15, :name => "광복절", :regions => [:kr]}],
|
|
25
|
+
10 => [{:mday => 3, :name => "개천절", :regions => [:kr]},
|
|
26
|
+
{:mday => 9, :name => "한글날", :regions => [:kr]}],
|
|
27
|
+
12 => [{:mday => 25, :name => "크리스마스", :regions => [:kr]},
|
|
28
|
+
{:mday => 29, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날 연휴", :regions => [:kr]}]
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
36
32
|
def self.custom_methods
|
|
37
33
|
{
|
|
38
|
-
|
|
39
|
-
month_day = case year
|
|
40
|
-
when 1941
|
|
41
|
-
[1, 17]
|
|
42
|
-
when 1966
|
|
43
|
-
[1, 21]
|
|
44
|
-
when 1909, 1947, 2004, 2023, 2042
|
|
45
|
-
[1, 22]
|
|
46
|
-
when 1917, 1928, 1974, 1993, 2012, 2031, 2015
|
|
47
|
-
[1, 23]
|
|
48
|
-
when 1925, 1936, 1955, 2001, 2039
|
|
49
|
-
[1, 24]
|
|
50
|
-
when 1906, 1944, 1963, 1982, 2020
|
|
51
|
-
[1, 25]
|
|
52
|
-
when 1914, 1933, 2009, 2028, 2047
|
|
53
|
-
[1, 26]
|
|
54
|
-
when 1952, 1971, 1990
|
|
55
|
-
[1, 27]
|
|
56
|
-
when 1922, 1960, 1979, 1998, 2017, 2036
|
|
57
|
-
[1, 28]
|
|
58
|
-
when 1903, 1949, 1987, 2006, 2025
|
|
59
|
-
[1, 29]
|
|
60
|
-
when 1911, 1930, 1968, 2044
|
|
61
|
-
[1, 30]
|
|
62
|
-
when 1938, 1957, 1976, 1995, 2014, 2033
|
|
63
|
-
[1, 31]
|
|
64
|
-
when 1919, 1948, 2003, 2022, 2041
|
|
65
|
-
[2, 1]
|
|
66
|
-
when 1908, 1927, 1946, 1965, 1984, 2049
|
|
67
|
-
[2, 2]
|
|
68
|
-
when 1916, 1954, 1973, 2011, 2030
|
|
69
|
-
[2, 3]
|
|
70
|
-
when 1905, 1935, 1992, 2038
|
|
71
|
-
[2, 4]
|
|
72
|
-
when 1924, 1943, 1962, 1981, 1989, 2000, 2019
|
|
73
|
-
[2, 5]
|
|
74
|
-
when 1913, 1932, 1951, 1970, 2027, 2046
|
|
75
|
-
[2, 6]
|
|
76
|
-
when 1978, 1997, 2008
|
|
77
|
-
[2, 7]
|
|
78
|
-
when 1902, 1921, 1940, 1959, 2016, 2035
|
|
79
|
-
[2, 8]
|
|
80
|
-
when 1967, 1986, 2005
|
|
81
|
-
[2, 9]
|
|
82
|
-
when 1910, 1929, 1994, 2013, 2024, 2043
|
|
83
|
-
[2, 10]
|
|
84
|
-
when 1918, 1937, 1975, 2032
|
|
85
|
-
[2, 11]
|
|
86
|
-
when 1956, 2002, 2021, 2040
|
|
87
|
-
[2, 12]
|
|
88
|
-
when 1907, 1926, 1945, 1964, 1983, 2029
|
|
89
|
-
[2, 13]
|
|
90
|
-
when 1915, 1934, 1953, 2010, 2048
|
|
91
|
-
[2, 14]
|
|
92
|
-
when 1942, 1961, 1972, 1991, 2037
|
|
93
|
-
[2, 15]
|
|
94
|
-
when 1904, 1923, 1980, 1999, 2018
|
|
95
|
-
[2, 16]
|
|
96
|
-
when 1931, 1950, 1969, 1988, 2026, 2045
|
|
97
|
-
[2, 17]
|
|
98
|
-
when 1912, 1958, 1977, 2007
|
|
99
|
-
[2, 18]
|
|
100
|
-
when 1901, 1939, 1996, 2015, 2034
|
|
101
|
-
[2, 19]
|
|
102
|
-
when 1920, 1985
|
|
103
|
-
[2, 20]
|
|
104
|
-
end
|
|
105
|
-
Date.civil(year, month_day[0], month_day[1])
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
"kr_buddahs_birthday(year)" => Proc.new { |year|
|
|
109
|
-
month_day = case year
|
|
110
|
-
when 2039
|
|
111
|
-
[4, 30]
|
|
112
|
-
when 1952, 1963, 1982
|
|
113
|
-
[5, 1]
|
|
114
|
-
when 1914, 1933, 1971, 1990, 2009, 2028, 2047
|
|
115
|
-
[5, 2]
|
|
116
|
-
when 1941, 1960, 1979, 1998, 2017, 2036
|
|
117
|
-
[5, 3]
|
|
118
|
-
when 1901, 1903, 1922, 1968
|
|
119
|
-
[5, 4]
|
|
120
|
-
when 1949, 1987, 2006, 2012, 2025, 2044
|
|
121
|
-
[5, 5]
|
|
122
|
-
when 1911, 1930, 1976, 2014, 2033
|
|
123
|
-
[5, 6]
|
|
124
|
-
when 1908, 1919, 1957, 1995, 2041
|
|
125
|
-
[5, 7]
|
|
126
|
-
when 1927, 1946, 1965, 1984, 2003, 2022
|
|
127
|
-
[5, 8]
|
|
128
|
-
when 1916, 2030, 2049
|
|
129
|
-
[5, 9]
|
|
130
|
-
when 1935, 1954, 1973, 1992, 2011
|
|
131
|
-
[5, 10]
|
|
132
|
-
when 1905, 1924, 1943, 1962, 1981, 2000, 2038
|
|
133
|
-
[5, 11]
|
|
134
|
-
when 1970, 1989, 2008, 2019
|
|
135
|
-
[5, 12]
|
|
136
|
-
when 1913, 1932, 1951, 2027
|
|
137
|
-
[5, 13]
|
|
138
|
-
when 1938, 1940, 1978, 1997, 2016
|
|
139
|
-
[5, 14]
|
|
140
|
-
when 1902, 1921, 1959, 2005, 2024, 2035
|
|
141
|
-
[5, 15]
|
|
142
|
-
when 1910, 1929, 1948, 1967, 1986, 2032, 2043
|
|
143
|
-
[5, 16]
|
|
144
|
-
when 1918, 1937, 1956, 2013
|
|
145
|
-
[5, 17]
|
|
146
|
-
when 1975, 1994, 2040
|
|
147
|
-
[5, 18]
|
|
148
|
-
when 1907, 1926, 1945, 1964, 2002, 2021
|
|
149
|
-
[5, 19]
|
|
150
|
-
when 1934, 1953, 1972, 1983, 2029, 2046, 2048
|
|
151
|
-
[5, 20]
|
|
152
|
-
when 1915, 1980, 1991, 2010
|
|
153
|
-
[5, 21]
|
|
154
|
-
when 1904, 1942, 1961, 1999, 2018, 2037
|
|
155
|
-
[5, 22]
|
|
156
|
-
when 1923, 1969, 1988
|
|
157
|
-
[5, 23]
|
|
158
|
-
when 1912, 1931, 1950, 1996, 2007, 2026, 2045
|
|
159
|
-
[5, 24]
|
|
160
|
-
when 1920, 1977, 2015, 2034
|
|
161
|
-
[5, 25]
|
|
162
|
-
when 1909, 1928, 1939, 1947, 1958, 2004, 2023, 2042
|
|
163
|
-
[5, 26]
|
|
164
|
-
when 1966, 1985
|
|
165
|
-
[5, 27]
|
|
166
|
-
when 1917, 1936, 1993, 2031, 2050
|
|
167
|
-
[5, 28]
|
|
168
|
-
when 1925, 1944, 1955, 1974
|
|
169
|
-
[5, 29]
|
|
170
|
-
when 1906, 2001, 2020
|
|
171
|
-
[5, 30]
|
|
172
|
-
end
|
|
173
|
-
Date.civil(year, month_day[0], month_day[1])
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
"kr_thanksgiving(year)" => Proc.new { |year|
|
|
177
|
-
month_day = case year
|
|
178
|
-
when 1905, 1924, 1973
|
|
179
|
-
[9, 8]
|
|
180
|
-
when 1913, 1970, 1989, 2000, 2008, 2019, 2038
|
|
181
|
-
[9, 10]
|
|
182
|
-
when 1902, 1932, 1938, 1981, 2027
|
|
183
|
-
[9, 11]
|
|
184
|
-
when 1929, 1940, 1951, 1978, 2016, 2035
|
|
185
|
-
[9, 12]
|
|
186
|
-
when 1921, 1948, 1959, 1997, 2024
|
|
187
|
-
[9, 13]
|
|
188
|
-
when 1910, 1975, 2005
|
|
189
|
-
[9, 14]
|
|
190
|
-
when 1918, 1937, 1945, 1967, 1986, 2032, 2043
|
|
191
|
-
[9, 15]
|
|
192
|
-
when 1907, 1964, 1994, 2013, 2040
|
|
193
|
-
[9, 16]
|
|
194
|
-
when 1926, 1956, 1962, 1972, 2046, 2048
|
|
195
|
-
[9, 17]
|
|
196
|
-
when 1934, 1953, 2002, 2021
|
|
197
|
-
[9, 18]
|
|
198
|
-
when 1904, 1915, 1980, 2010, 2029
|
|
199
|
-
[9, 19]
|
|
200
|
-
when 1923, 1969, 1983, 1991, 1999
|
|
201
|
-
[9, 20]
|
|
202
|
-
when 1942, 1961, 1988, 2037
|
|
203
|
-
[9, 21]
|
|
204
|
-
when 1912, 1977 ,1996, 2007, 2015, 2018, 2026
|
|
205
|
-
[9, 22]
|
|
206
|
-
when 1931, 1939, 1950
|
|
207
|
-
[9, 23]
|
|
208
|
-
when 1909, 1920, 1947, 1958, 2034, 2045
|
|
209
|
-
[9, 24]
|
|
210
|
-
when 1917, 1928, 1936, 1966, 1985, 2050
|
|
211
|
-
[9, 25]
|
|
212
|
-
when 2001, 2004, 2023, 2042
|
|
213
|
-
[9, 26]
|
|
214
|
-
when 1906, 1925, 1944, 1955, 1974, 1993, 2031
|
|
215
|
-
[9, 27]
|
|
216
|
-
when 1914, 1963, 1971, 2009
|
|
217
|
-
[9, 28]
|
|
218
|
-
when 1933, 1952, 1982, 2020
|
|
219
|
-
[9, 29]
|
|
220
|
-
when 1941, 1979, 1990, 2017, 2028, 2036, 2047
|
|
221
|
-
[9, 30]
|
|
222
|
-
when 1901, 1960, 1968, 1987, 2006
|
|
223
|
-
[10, 1]
|
|
224
|
-
when 1903, 1922, 1949, 1998
|
|
225
|
-
[10, 2]
|
|
226
|
-
when 1911, 1976, 2014, 2033, 2044
|
|
227
|
-
[10, 3]
|
|
228
|
-
when 1927, 1930, 2012, 2025, 2041
|
|
229
|
-
[10, 4]
|
|
230
|
-
when 1908, 1919, 1935, 1946, 1957, 1995, 2039
|
|
231
|
-
[10, 5]
|
|
232
|
-
when 1916, 1965, 2003, 2022, 2030, 2049
|
|
233
|
-
[10, 6]
|
|
234
|
-
when 1984
|
|
235
|
-
[10, 7]
|
|
236
|
-
when 1943, 1954, 1992
|
|
237
|
-
[10, 8]
|
|
238
|
-
when 2011
|
|
239
|
-
[10, 9]
|
|
240
|
-
end
|
|
241
|
-
Date.civil(year, month_day[0], month_day[1])
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
|
|
34
|
+
|
|
245
35
|
}
|
|
246
36
|
end
|
|
247
37
|
end
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/li.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/li'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module LI # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/lt.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/lt'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module LT # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/lu.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/lu'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module LU # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/ma.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/ma'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module MA # :nodoc:
|
|
15
9
|
def self.defined_regions
|
|
@@ -4,12 +4,6 @@ module Holidays
|
|
|
4
4
|
#
|
|
5
5
|
# Definitions loaded: definitions/mx.yaml, definitions/north_america_informal.yaml
|
|
6
6
|
#
|
|
7
|
-
# To use the definitions in this file, load it right after you load the
|
|
8
|
-
# Holiday gem:
|
|
9
|
-
#
|
|
10
|
-
# require 'holidays'
|
|
11
|
-
# require 'generated_definitions/mx'
|
|
12
|
-
#
|
|
13
7
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
14
8
|
module MX # :nodoc:
|
|
15
9
|
def self.defined_regions
|