holidays 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/CHANGELOG +3 -0
- data/README.rdoc +1 -1
- data/data/el.yaml +79 -0
- data/data/index.yaml +2 -1
- data/holidays.gemspec +136 -130
- data/lib/holidays.rb +28 -1
- data/lib/holidays/au.rb +10 -10
- data/lib/holidays/br.rb +6 -6
- data/lib/holidays/ca.rb +17 -17
- data/lib/holidays/cz.rb +7 -7
- data/lib/holidays/de.rb +7 -7
- data/lib/holidays/dk.rb +8 -8
- data/lib/holidays/el.rb +38 -0
- data/lib/holidays/es.rb +17 -17
- data/lib/holidays/europe.rb +102 -88
- data/lib/holidays/fi.rb +8 -8
- data/lib/holidays/fr.rb +6 -6
- data/lib/holidays/gb.rb +9 -9
- data/lib/holidays/ie.rb +6 -6
- data/lib/holidays/is.rb +9 -9
- data/lib/holidays/it.rb +6 -6
- data/lib/holidays/jp.rb +43 -43
- data/lib/holidays/mx.rb +16 -16
- data/lib/holidays/nl.rb +4 -4
- data/lib/holidays/no.rb +2 -2
- data/lib/holidays/north_america.rb +37 -37
- data/lib/holidays/nyse.rb +5 -5
- data/lib/holidays/nz.rb +13 -13
- data/lib/holidays/pt.rb +7 -7
- data/lib/holidays/scandinavia.rb +39 -39
- data/lib/holidays/se.rb +9 -9
- data/lib/holidays/ups.rb +4 -4
- data/lib/holidays/us.rb +10 -10
- data/lib/holidays/za.rb +7 -7
- data/test/defs/test_defs_el.rb +28 -0
- data/test/defs/test_defs_europe.rb +19 -1
- data/test/test_holidays.rb +8 -0
- metadata +10 -5
data/lib/holidays/au.rb
CHANGED
@@ -12,28 +12,28 @@ module Holidays
|
|
12
12
|
#
|
13
13
|
# More definitions are available at http://code.dunae.ca/holidays.
|
14
14
|
module AU # :nodoc:
|
15
|
-
DEFINED_REGIONS = [:
|
15
|
+
DEFINED_REGIONS = [:au_qld, :au_nt, :au, :au_tas, :au_wa, :au_act, :au_nsw, :au_sa, :au_vic, :au_qld_brisbane]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:au_qld]},
|
19
|
+
{:wday => 1, :week => 1, :name => "May Day", :regions => [:au_nt]}],
|
18
20
|
0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Good Friday", :regions => [:au]},
|
19
21
|
{:function => lambda { |year| Holidays.easter(year)-1 }, :function_id => "easter(year)-1", :name => "Easter Saturday", :regions => [:au]},
|
20
22
|
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Easter Monday", :regions => [:au]},
|
21
23
|
{:function => lambda { |year| Holidays.easter(year)+2 }, :function_id => "easter(year)+2", :name => "Easter Monday", :regions => [:au_tas]}],
|
24
|
+
6 => [{:wday => 1, :week => 1, :name => "Foundation Day", :regions => [:au_wa]},
|
25
|
+
{:wday => 1, :week => 2, :name => "Queen's Birthday", :regions => [:au_act, :au_nsw, :au_sa, :au_tas, :au_nt, :au_qld, :au_vic]},
|
26
|
+
{:mday => 6, :type => :informal, :name => "Queensland Day", :regions => [:au_qld]}],
|
22
27
|
1 => [{:mday => 1, :name => "New Year's Day", :regions => [:au]},
|
23
28
|
{:mday => 26, :name => "Australia Day", :regions => [:au]}],
|
29
|
+
12 => [{:mday => 25, :name => "Christmas Day", :regions => [:au]},
|
30
|
+
{:mday => 26, :name => "Boxing Day", :regions => [:au]}],
|
31
|
+
8 => [{:wday => 3, :week => -3, :name => "Ekka", :regions => [:au_qld_brisbane]}],
|
24
32
|
3 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:au_wa]},
|
25
33
|
{:wday => 1, :week => 2, :name => "Eight Hours Day", :regions => [:au_tas]},
|
26
34
|
{:wday => 1, :week => 2, :name => "Labour Day", :regions => [:au_vic]}],
|
27
35
|
4 => [{:mday => 25, :name => "ANZAC Day", :regions => [:au]}],
|
28
|
-
|
29
|
-
{:wday => 1, :week => 1, :name => "May Day", :regions => [:au_nt]}],
|
30
|
-
6 => [{:wday => 1, :week => 1, :name => "Foundation Day", :regions => [:au_wa]},
|
31
|
-
{:wday => 1, :week => 2, :name => "Queen's Birthday", :regions => [:au_act, :au_nsw, :au_sa, :au_tas, :au_nt, :au_qld, :au_vic]},
|
32
|
-
{:mday => 6, :type => :informal, :name => "Queensland Day", :regions => [:au_qld]}],
|
33
|
-
8 => [{:wday => 3, :week => -3, :name => "Ekka", :regions => [:au_qld_brisbane]}],
|
34
|
-
10 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:au_act, :au_nsw, :au_sa]}],
|
35
|
-
12 => [{:mday => 25, :name => "Christmas Day", :regions => [:au]},
|
36
|
-
{:mday => 26, :name => "Boxing Day", :regions => [:au]}]
|
36
|
+
10 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:au_act, :au_nsw, :au_sa]}]
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
data/lib/holidays/br.rb
CHANGED
@@ -15,18 +15,18 @@ module Holidays
|
|
15
15
|
DEFINED_REGIONS = [:br]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:mday => 1, :name => "Dia do Trabalho", :regions => [:br]}],
|
18
19
|
0 => [{:function => lambda { |year| Holidays.easter(year)-47 }, :function_id => "easter(year)-47", :type => :informal, :name => "Carnaval", :regions => [:br]},
|
19
20
|
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Sexta-feira Santa", :regions => [:br]},
|
20
21
|
{:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Páscoa", :regions => [:br]},
|
21
22
|
{:function => lambda { |year| Holidays.easter(year)+60 }, :function_id => "easter(year)+60", :name => "Corpus Christ", :regions => [:br]}],
|
22
|
-
1 => [{:mday => 1, :name => "Dia da Confraternização Universal", :regions => [:br]}],
|
23
|
-
4 => [{:mday => 21, :name => "Dia de Tiradentes", :regions => [:br]}],
|
24
|
-
5 => [{:mday => 1, :name => "Dia do Trabalho", :regions => [:br]}],
|
25
|
-
9 => [{:mday => 7, :name => "Proclamação da Independência", :regions => [:br]}],
|
26
|
-
10 => [{:mday => 12, :name => "Dia de Nossa Senhora Aparecida", :regions => [:br]}],
|
27
23
|
11 => [{:mday => 2, :name => "Dia de Finados", :regions => [:br]},
|
28
24
|
{:mday => 15, :name => "Proclamação da República", :regions => [:br]}],
|
29
|
-
|
25
|
+
1 => [{:mday => 1, :name => "Dia da Confraternização Universal", :regions => [:br]}],
|
26
|
+
12 => [{:mday => 25, :name => "Natal", :regions => [:br]}],
|
27
|
+
9 => [{:mday => 7, :name => "Proclamação da Independência", :regions => [:br]}],
|
28
|
+
4 => [{:mday => 21, :name => "Dia de Tiradentes", :regions => [:br]}],
|
29
|
+
10 => [{:mday => 12, :name => "Dia de Nossa Senhora Aparecida", :regions => [:br]}]
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
data/lib/holidays/ca.rb
CHANGED
@@ -12,42 +12,42 @@ module Holidays
|
|
12
12
|
#
|
13
13
|
# More definitions are available at http://code.dunae.ca/holidays.
|
14
14
|
module CA # :nodoc:
|
15
|
-
DEFINED_REGIONS = [:ca, :ca_qc, :
|
15
|
+
DEFINED_REGIONS = [:ca, :ca_qc, :ca_nf, :ca_nt, :ca_nu, :ca_ab, :ca_on, :ca_sk, :ca_mb, :ca_bc, :ca_ns, :ca_yk, :us]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
-
0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Good Friday", :regions => [:ca]},
|
19
|
-
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :type => :informal, :name => "Easter Monday", :regions => [:ca]}],
|
20
|
-
1 => [{:mday => 1, :name => "New Year's Day", :regions => [:ca]},
|
21
|
-
{:mday => 2, :name => "New Year's", :regions => [:ca_qc]}],
|
22
|
-
2 => [{:wday => 1, :week => 3, :name => "Family Day", :regions => [:ca_ab, :ca_on, :ca_sk]},
|
23
|
-
{:wday => 1, :week => 3, :name => "Louis Riel Day", :regions => [:ca_mb]},
|
24
|
-
{:mday => 2, :type => :informal, :name => "Groundhog Day", :regions => [:us, :ca]},
|
25
|
-
{:mday => 14, :type => :informal, :name => "Valentine's Day", :regions => [:us, :ca]}],
|
26
|
-
3 => [{:mday => 23, :name => "St. George's Day", :regions => [:ca_nf]},
|
27
|
-
{:mday => 17, :type => :informal, :name => "St. Patrick's Day", :regions => [:us, :ca]}],
|
28
18
|
5 => [{:function => lambda { |year| Holidays.ca_victoria_day(year) }, :function_id => "ca_victoria_day(year)", :name => "Victoria Day", :regions => [:ca]},
|
29
19
|
{:function => lambda { |year| Holidays.ca_victoria_day(year) }, :function_id => "ca_victoria_day(year)", :name => "National Patriotes Day", :regions => [:ca_qc]},
|
30
20
|
{:wday => 0, :week => 3, :type => :informal, :name => "Father's Day", :regions => [:us, :ca]}],
|
21
|
+
0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Good Friday", :regions => [:ca]},
|
22
|
+
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :type => :informal, :name => "Easter Monday", :regions => [:ca]}],
|
23
|
+
11 => [{:mday => 11, :name => "Remembrance Day", :regions => [:ca]}],
|
31
24
|
6 => [{:mday => 24, :name => "Discovery Day", :regions => [:ca_nf]},
|
32
25
|
{:mday => 24, :name => "Fête Nationale", :regions => [:ca_qc]},
|
33
26
|
{:mday => 21, :name => "National Aboriginal Day", :regions => [:ca_nt]}],
|
27
|
+
1 => [{:mday => 1, :name => "New Year's Day", :regions => [:ca]},
|
28
|
+
{:mday => 2, :name => "New Year's", :regions => [:ca_qc]}],
|
29
|
+
12 => [{:mday => 25, :name => "Christmas Day", :regions => [:ca]},
|
30
|
+
{:mday => 26, :name => "Boxing Day", :regions => [:ca]}],
|
34
31
|
7 => [{:mday => 1, :observed => lambda { |date| Holidays.to_monday_if_sunday(date) }, :observed_id => "to_monday_if_sunday", :name => "Canada Day", :regions => [:ca]},
|
35
32
|
{:mday => 12, :name => "Orangemen's Day", :regions => [:ca_nf]},
|
36
33
|
{:mday => 9, :name => "Nunavut Day", :regions => [:ca_nu]}],
|
34
|
+
2 => [{:wday => 1, :week => 3, :name => "Family Day", :regions => [:ca_ab, :ca_on, :ca_sk]},
|
35
|
+
{:wday => 1, :week => 3, :name => "Louis Riel Day", :regions => [:ca_mb]},
|
36
|
+
{:mday => 2, :type => :informal, :name => "Groundhog Day", :regions => [:us, :ca]},
|
37
|
+
{:mday => 14, :type => :informal, :name => "Valentine's Day", :regions => [:us, :ca]}],
|
37
38
|
8 => [{:wday => 1, :week => 1, :name => "BC Day", :regions => [:ca_bc]},
|
38
39
|
{:wday => 1, :week => 1, :name => "Saskatchewan Day", :regions => [:ca_sk]},
|
39
40
|
{:wday => 1, :week => 1, :name => "Heritage Day", :regions => [:ca_ab]},
|
40
41
|
{:wday => 1, :week => 1, :name => "Natal Day", :regions => [:ca_ns]},
|
41
42
|
{:wday => 1, :week => 1, :name => "Civic Holiday", :regions => [:ca_on]},
|
42
43
|
{:wday => 1, :week => 3, :name => "Discovery Day", :regions => [:ca_yk]}],
|
44
|
+
3 => [{:mday => 23, :name => "St. George's Day", :regions => [:ca_nf]},
|
45
|
+
{:mday => 17, :type => :informal, :name => "St. Patrick's Day", :regions => [:us, :ca]}],
|
43
46
|
9 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:ca]}],
|
44
|
-
10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca]},
|
45
|
-
{:mday => 31, :type => :informal, :name => "Halloween", :regions => [:us, :ca]}],
|
46
|
-
11 => [{:mday => 11, :name => "Remembrance Day", :regions => [:ca]}],
|
47
|
-
12 => [{:mday => 25, :name => "Christmas Day", :regions => [:ca]},
|
48
|
-
{:mday => 26, :name => "Boxing Day", :regions => [:ca]}],
|
49
47
|
4 => [{:mday => 1, :type => :informal, :name => "April Fool's Day", :regions => [:us, :ca]},
|
50
|
-
{:mday => 22, :type => :informal, :name => "Earth Day", :regions => [:us, :ca]}]
|
48
|
+
{:mday => 22, :type => :informal, :name => "Earth Day", :regions => [:us, :ca]}],
|
49
|
+
10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca]},
|
50
|
+
{:mday => 31, :type => :informal, :name => "Halloween", :regions => [:us, :ca]}]
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
data/lib/holidays/cz.rb
CHANGED
@@ -15,18 +15,18 @@ module Holidays
|
|
15
15
|
DEFINED_REGIONS = [:cz]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
-
0 => [{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Velikonoční pondělí", :regions => [:cz]}],
|
19
|
-
1 => [{:mday => 1, :name => "Den obnovy samostatného českého státu", :regions => [:cz]}],
|
20
18
|
5 => [{:mday => 1, :name => "Svátek práce", :regions => [:cz]},
|
21
19
|
{:mday => 8, :name => "Den vítězství", :regions => [:cz]}],
|
22
|
-
|
23
|
-
{:mday => 6, :name => "Den upálení mistra Jana Husa", :regions => [:cz]}],
|
24
|
-
9 => [{:mday => 28, :name => "Den české státnosti", :regions => [:cz]}],
|
25
|
-
10 => [{:mday => 28, :name => "Den vzniku samostatného československého státu", :regions => [:cz]}],
|
20
|
+
0 => [{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Velikonoční pondělí", :regions => [:cz]}],
|
26
21
|
11 => [{:mday => 17, :name => "Den boje za svobodu a demokracii", :regions => [:cz]}],
|
22
|
+
1 => [{:mday => 1, :name => "Den obnovy samostatného českého státu", :regions => [:cz]}],
|
27
23
|
12 => [{:mday => 24, :name => "Štědrý den", :regions => [:cz]},
|
28
24
|
{:mday => 25, :name => "1. svátek vánoční", :regions => [:cz]},
|
29
|
-
{:mday => 26, :name => "2. svátek vánoční", :regions => [:cz]}]
|
25
|
+
{:mday => 26, :name => "2. svátek vánoční", :regions => [:cz]}],
|
26
|
+
7 => [{:mday => 5, :name => "Den slovanských věrozvěstů Cyrila a Metoděje", :regions => [:cz]},
|
27
|
+
{:mday => 6, :name => "Den upálení mistra Jana Husa", :regions => [:cz]}],
|
28
|
+
9 => [{:mday => 28, :name => "Den české státnosti", :regions => [:cz]}],
|
29
|
+
10 => [{:mday => 28, :name => "Den vzniku samostatného československého státu", :regions => [:cz]}]
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
data/lib/holidays/de.rb
CHANGED
@@ -12,24 +12,24 @@ module Holidays
|
|
12
12
|
#
|
13
13
|
# More definitions are available at http://code.dunae.ca/holidays.
|
14
14
|
module DE # :nodoc:
|
15
|
-
DEFINED_REGIONS = [:de, :de_bw, :de_by, :
|
15
|
+
DEFINED_REGIONS = [:de, :de_bw, :de_by, :de_nw, :de_rp, :de_sl, :de_sn, :de_he, :de_st, :de_bb, :de_mv, :de_th]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]}],
|
18
19
|
0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Karfreitag", :regions => [:de]},
|
19
20
|
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Ostermontag", :regions => [:de]},
|
20
21
|
{:function => lambda { |year| Holidays.easter(year)+39 }, :function_id => "easter(year)+39", :name => "Christi Himmelfahrt", :regions => [:de]},
|
21
22
|
{:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "Pfingstmontag", :regions => [:de]},
|
22
23
|
{:function => lambda { |year| Holidays.easter(year)+60 }, :function_id => "easter(year)+60", :name => "Fronleichnam", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl]}],
|
24
|
+
11 => [{:mday => 1, :name => "Allerheiligen", :regions => [:de_bw, :de_by, :de_nw, :de_rp, :de_sl]},
|
25
|
+
{:function => lambda { |year| Holidays.de_buss_und_bettag(year) }, :function_id => "de_buss_und_bettag(year)", :name => "Buß- und Bettag", :regions => [:de_sn]}],
|
23
26
|
1 => [{:mday => 1, :name => "Neujahrstag", :regions => [:de]},
|
24
27
|
{:mday => 6, :name => "Heilige Drei Könige", :regions => [:de_bw, :de_by, :de_st]}],
|
25
|
-
|
28
|
+
12 => [{:mday => 25, :name => "1. Weihnachtstag", :regions => [:de]},
|
29
|
+
{:mday => 26, :name => "2. Weihnachtstag", :regions => [:de]}],
|
26
30
|
8 => [{:mday => 15, :name => "Mariä Himmelfahrt", :regions => [:de_by, :de_sl]}],
|
27
31
|
10 => [{:mday => 3, :name => "Tag der Deutschen Einheit", :regions => [:de]},
|
28
|
-
{:mday => 31, :name => "Reformationstag", :regions => [:de_bb, :de_mv, :de_sn, :de_st, :de_th]}]
|
29
|
-
11 => [{:mday => 1, :name => "Allerheiligen", :regions => [:de_bw, :de_by, :de_nw, :de_rp, :de_sl]},
|
30
|
-
{:function => lambda { |year| Holidays.de_buss_und_bettag(year) }, :function_id => "de_buss_und_bettag(year)", :name => "Buß- und Bettag", :regions => [:de_sn]}],
|
31
|
-
12 => [{:mday => 25, :name => "1. Weihnachtstag", :regions => [:de]},
|
32
|
-
{:mday => 26, :name => "2. Weihnachtstag", :regions => [:de]}]
|
32
|
+
{:mday => 31, :name => "Reformationstag", :regions => [:de_bb, :de_mv, :de_sn, :de_st, :de_th]}]
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
data/lib/holidays/dk.rb
CHANGED
@@ -15,6 +15,8 @@ module Holidays
|
|
15
15
|
DEFINED_REGIONS = [:dk]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:mday => 1, :name => "Arbejdernes kampdag", :regions => [:dk]},
|
19
|
+
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]}],
|
18
20
|
0 => [{:function => lambda { |year| Holidays.easter(year)-49 }, :function_id => "easter(year)-49", :type => :informal, :name => "Fastelavn", :regions => [:dk]},
|
19
21
|
{:function => lambda { |year| Holidays.easter(year)-7 }, :function_id => "easter(year)-7", :name => "Palmesøndag", :regions => [:dk]},
|
20
22
|
{:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :name => "Skærtorsdag", :regions => [:dk]},
|
@@ -25,20 +27,18 @@ module Holidays
|
|
25
27
|
{:function => lambda { |year| Holidays.easter(year)+39 }, :function_id => "easter(year)+39", :name => "Kristi Himmelfartsdag", :regions => [:dk]},
|
26
28
|
{:function => lambda { |year| Holidays.easter(year)+49 }, :function_id => "easter(year)+49", :name => "Pinsedag", :regions => [:dk]},
|
27
29
|
{:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "2. Pinsedag", :regions => [:dk]}],
|
28
|
-
|
29
|
-
4 => [{:mday => 1, :type => :informal, :name => "1. april", :regions => [:dk]},
|
30
|
-
{:mday => 9, :type => :informal, :name => "Danmarks besættelse", :regions => [:dk]},
|
31
|
-
{:mday => 16, :type => :informal, :name => "Dronningens fødselsdag", :regions => [:dk]}],
|
32
|
-
5 => [{:mday => 1, :name => "Arbejdernes kampdag", :regions => [:dk]},
|
33
|
-
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]}],
|
30
|
+
11 => [{:mday => 10, :type => :informal, :name => "Mortensaften", :regions => [:dk]}],
|
34
31
|
6 => [{:mday => 5, :name => "Grundlovsdag", :regions => [:dk]},
|
35
32
|
{:mday => 15, :type => :informal, :name => "Valdemarsdag og Genforeningsdag", :regions => [:dk]},
|
36
33
|
{:mday => 23, :type => :informal, :name => "Sankt Hans aften", :regions => [:dk]}],
|
37
|
-
|
34
|
+
1 => [{:mday => 1, :name => "Nytårsdag", :regions => [:dk]}],
|
38
35
|
12 => [{:mday => 13, :type => :informal, :name => "Sankt Lucia", :regions => [:dk]},
|
39
36
|
{:mday => 24, :name => "Juleaftensdag", :regions => [:dk]},
|
40
37
|
{:mday => 25, :name => "1. juledag", :regions => [:dk]},
|
41
|
-
{:mday => 26, :name => "2. juledag", :regions => [:dk]}]
|
38
|
+
{:mday => 26, :name => "2. juledag", :regions => [:dk]}],
|
39
|
+
4 => [{:mday => 1, :type => :informal, :name => "1. april", :regions => [:dk]},
|
40
|
+
{:mday => 9, :type => :informal, :name => "Danmarks besættelse", :regions => [:dk]},
|
41
|
+
{:mday => 16, :type => :informal, :name => "Dronningens fødselsdag", :regions => [:dk]}]
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
data/lib/holidays/el.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Holidays
|
3
|
+
# This file is generated by the Ruby Holiday gem.
|
4
|
+
#
|
5
|
+
# Definitions loaded: data/el.yaml
|
6
|
+
#
|
7
|
+
# To use the definitions in this file, load them right after you load the
|
8
|
+
# Holiday gem:
|
9
|
+
#
|
10
|
+
# require 'holidays'
|
11
|
+
# require 'holidays/el'
|
12
|
+
#
|
13
|
+
# More definitions are available at http://code.dunae.ca/holidays.
|
14
|
+
module EL # :nodoc:
|
15
|
+
DEFINED_REGIONS = [:el]
|
16
|
+
|
17
|
+
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:mday => 1, :name => "Πρωτομαγιά", :regions => [:el]}],
|
19
|
+
0 => [{:function => lambda { |year| Holidays.orthodox_easter(year)-2 }, :function_id => "orthodox_easter(year)-2", :name => "Μεγάλη Παρασκευή", :regions => [:el]},
|
20
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)-1 }, :function_id => "orthodox_easter(year)-1", :name => "Μεγάλο Σάββατο", :regions => [:el]},
|
21
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year) }, :function_id => "orthodox_easter(year)", :name => "Κυριακή του Πάσχα", :regions => [:el]},
|
22
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)+1 }, :function_id => "orthodox_easter(year)+1", :name => "Δευτέρα του Πάσχα", :regions => [:el]},
|
23
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)-48 }, :function_id => "orthodox_easter(year)-48", :name => "Καθαρά Δευτέρα", :regions => [:el]},
|
24
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)+50 }, :function_id => "orthodox_easter(year)+50", :name => "Αγίου Πνεύματος", :regions => [:el]}],
|
25
|
+
1 => [{:mday => 1, :name => "Πρωτοχρονιά", :regions => [:el]},
|
26
|
+
{:mday => 6, :name => "Θεοφάνεια", :regions => [:el]}],
|
27
|
+
12 => [{:mday => 25, :name => "Χριστούγεννα", :regions => [:el]},
|
28
|
+
{:mday => 26, :name => "Δεύτερη ημέρα των Χριστουγέννων", :regions => [:el]}],
|
29
|
+
8 => [{:mday => 15, :name => "Κοίμηση της Θεοτόκου", :regions => [:el]}],
|
30
|
+
3 => [{:mday => 25, :name => "Επέτειος της Επανάστασης του 1821", :regions => [:el]}],
|
31
|
+
10 => [{:mday => 28, :name => "Επέτειος του Όχι", :regions => [:el]}]
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
Holidays.merge_defs(Holidays::EL::DEFINED_REGIONS, Holidays::EL::HOLIDAYS_BY_MONTH)
|
data/lib/holidays/es.rb
CHANGED
@@ -12,38 +12,38 @@ module Holidays
|
|
12
12
|
#
|
13
13
|
# More definitions are available at http://code.dunae.ca/holidays.
|
14
14
|
module ES # :nodoc:
|
15
|
-
DEFINED_REGIONS = [:
|
15
|
+
DEFINED_REGIONS = [:es, :es_m, :es_cn, :es_cm, :es_pv, :es_ct, :es_na, :es_v, :es_vc, :es_mu, :es_lo, :es_ib, :es_ga, :es_an, :es_ce, :es_o, :es_ex, :es_ar, :es_cl]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
-
0 => [{:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :name => "Jueves Santo", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]},
|
19
|
-
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Viernes Santo", :regions => [:es]},
|
20
|
-
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Lunes de Pascua", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]}],
|
21
|
-
1 => [{:mday => 1, :name => "Año Nuevo", :regions => [:es]},
|
22
|
-
{:mday => 6, :name => "Día de Reyes", :regions => [:es]}],
|
23
|
-
2 => [{:mday => 28, :name => "Día de Andalucía", :regions => [:es_an]}],
|
24
|
-
3 => [{:mday => 1, :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
25
|
-
{:mday => 19, :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]}],
|
26
|
-
4 => [{:mday => 23, :name => "San Jorge", :regions => [:es_ar, :es_cl]},
|
27
|
-
{:mday => 23, :name => "Día de Aragón", :regions => [:es_ar]}],
|
28
18
|
5 => [{:mday => 1, :name => "Día del Trabajador", :regions => [:es]},
|
29
19
|
{:mday => 2, :name => "Fiesta de la Comunidad", :regions => [:es_m]},
|
30
20
|
{:mday => 30, :name => "Día de las Canarias", :regions => [:es_cn]},
|
31
21
|
{:mday => 31, :name => "Día de la Región Castilla-La Mancha", :regions => [:es_cm]}],
|
22
|
+
0 => [{:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :name => "Jueves Santo", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]},
|
23
|
+
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Viernes Santo", :regions => [:es]},
|
24
|
+
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Lunes de Pascua", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]}],
|
25
|
+
11 => [{:mday => 1, :name => "Todos los Santos", :regions => [:es]}],
|
32
26
|
6 => [{:mday => 9, :name => "Día de la Región de Murcia", :regions => [:es_mu]},
|
33
27
|
{:mday => 9, :name => "Día de La Rioja", :regions => [:es_lo]}],
|
28
|
+
1 => [{:mday => 1, :name => "Año Nuevo", :regions => [:es]},
|
29
|
+
{:mday => 6, :name => "Día de Reyes", :regions => [:es]}],
|
30
|
+
12 => [{:mday => 6, :name => "Día de la Constitución", :regions => [:es]},
|
31
|
+
{:mday => 8, :name => "Inmaculada Concepción", :regions => [:es]},
|
32
|
+
{:mday => 25, :name => "Navidad del Señor", :regions => [:es]},
|
33
|
+
{:mday => 26, :name => "San Esteban", :regions => [:es_ib, :es_ct]}],
|
34
34
|
7 => [{:mday => 23, :name => "Santiago Apostol", :regions => [:es_ga]}],
|
35
|
+
2 => [{:mday => 28, :name => "Día de Andalucía", :regions => [:es_an]}],
|
35
36
|
8 => [{:mday => 15, :name => "Asunción", :regions => [:es]}],
|
37
|
+
3 => [{:mday => 1, :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
38
|
+
{:mday => 19, :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]}],
|
36
39
|
9 => [{:mday => 2, :name => "Día de Ceuta", :regions => [:es_ce]},
|
37
40
|
{:mday => 8, :name => "Día de Asturias", :regions => [:es_o]},
|
38
41
|
{:mday => 8, :name => "Día de Extremadura", :regions => [:es_ex]},
|
39
42
|
{:mday => 11, :name => "Fiesta Nacional de Cataluña", :regions => [:es_ct]}],
|
43
|
+
4 => [{:mday => 23, :name => "San Jorge", :regions => [:es_ar, :es_cl]},
|
44
|
+
{:mday => 23, :name => "Día de Aragón", :regions => [:es_ar]}],
|
40
45
|
10 => [{:mday => 9, :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
|
41
|
-
{:mday => 12, :name => "Día de la Hispanidad", :regions => [:es]}]
|
42
|
-
11 => [{:mday => 1, :name => "Todos los Santos", :regions => [:es]}],
|
43
|
-
12 => [{:mday => 6, :name => "Día de la Constitución", :regions => [:es]},
|
44
|
-
{:mday => 8, :name => "Inmaculada Concepción", :regions => [:es]},
|
45
|
-
{:mday => 25, :name => "Navidad del Señor", :regions => [:es]},
|
46
|
-
{:mday => 26, :name => "San Esteban", :regions => [:es_ib, :es_ct]}]
|
46
|
+
{:mday => 12, :name => "Día de la Hispanidad", :regions => [:es]}]
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
data/lib/holidays/europe.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module Holidays
|
3
3
|
# This file is generated by the Ruby Holiday gem.
|
4
4
|
#
|
5
|
-
# Definitions loaded: data/cz.yaml, data/dk.yaml, data/de.yaml, data/es.yaml, data/fr.yaml, data/gb.yaml, data/ie.yaml, data/is.yaml, data/it.yaml, data/nl.yaml, data/no.yaml, data/pt.yaml
|
5
|
+
# Definitions loaded: data/cz.yaml, data/dk.yaml, data/de.yaml, data/el.yaml, data/es.yaml, data/fr.yaml, data/gb.yaml, data/ie.yaml, data/is.yaml, data/it.yaml, data/nl.yaml, data/no.yaml, data/pt.yaml
|
6
6
|
#
|
7
7
|
# To use the definitions in this file, load them right after you load the
|
8
8
|
# Holiday gem:
|
@@ -12,9 +12,32 @@ module Holidays
|
|
12
12
|
#
|
13
13
|
# More definitions are available at http://code.dunae.ca/holidays.
|
14
14
|
module Europe # :nodoc:
|
15
|
-
DEFINED_REGIONS = [:cz, :dk, :no, :de, :de_bw, :de_by, :
|
15
|
+
DEFINED_REGIONS = [:cz, :dk, :no, :de, :de_bw, :de_by, :de_nw, :de_rp, :de_sl, :de_sn, :de_he, :de_st, :de_bb, :de_mv, :de_th, :el, :es, :es_m, :es_cn, :es_cm, :es_pv, :es_ct, :es_na, :es_v, :es_vc, :es_mu, :es_lo, :es_ib, :es_ga, :es_an, :es_ce, :es_o, :es_ex, :es_ar, :es_cl, :fr, :gb, :ie, :je, :gb_jsy, :gg, :gb_gsy, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :gb_sct, :im, :gb_iom, :gb_con, :is, :it, :nl, :pt]
|
16
16
|
|
17
17
|
HOLIDAYS_BY_MONTH = {
|
18
|
+
5 => [{:mday => 1, :name => "Svátek práce", :regions => [:cz]},
|
19
|
+
{:mday => 8, :name => "Den vítězství", :regions => [:cz]},
|
20
|
+
{:mday => 1, :name => "Arbejdernes kampdag", :regions => [:dk]},
|
21
|
+
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]},
|
22
|
+
{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]},
|
23
|
+
{:mday => 1, :name => "Πρωτομαγιά", :regions => [:el]},
|
24
|
+
{:mday => 1, :name => "Día del Trabajador", :regions => [:es]},
|
25
|
+
{:mday => 2, :name => "Fiesta de la Comunidad", :regions => [:es_m]},
|
26
|
+
{:mday => 30, :name => "Día de las Canarias", :regions => [:es_cn]},
|
27
|
+
{:mday => 31, :name => "Día de la Región Castilla-La Mancha", :regions => [:es_cm]},
|
28
|
+
{:mday => 1, :name => "Fête du travail", :regions => [:fr]},
|
29
|
+
{:mday => 8, :name => "Victoire 1945", :regions => [:fr]},
|
30
|
+
{:wday => 1, :week => 1, :name => "May Day", :regions => [:gb, :ie]},
|
31
|
+
{:mday => 9, :name => "Liberation Day", :regions => [:je, :gb_jsy, :gg, :gb_gsy]},
|
32
|
+
{:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:gb]},
|
33
|
+
{:mday => 1, :name => "Verkalýðsdagurinn", :regions => [:is]},
|
34
|
+
{:mday => 13, :name => "Mæðradagurinn", :regions => [:is]},
|
35
|
+
{:mday => 1, :name => "Festa dei Lavoratori", :regions => [:it]},
|
36
|
+
{:mday => 4, :name => "Dodenherdenking", :regions => [:nl]},
|
37
|
+
{:mday => 5, :name => "Bevrijdingsdag", :regions => [:nl]},
|
38
|
+
{:mday => 1, :name => "1. mai", :regions => [:no]},
|
39
|
+
{:mday => 17, :name => "17. mai", :regions => [:no]},
|
40
|
+
{:mday => 1, :name => "Dia do Trabalhador", :regions => [:pt]}],
|
18
41
|
0 => [{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Velikonoční pondělí", :regions => [:cz]},
|
19
42
|
{:function => lambda { |year| Holidays.easter(year)-49 }, :function_id => "easter(year)-49", :type => :informal, :name => "Fastelavn", :regions => [:dk, :no]},
|
20
43
|
{:function => lambda { |year| Holidays.easter(year)-7 }, :function_id => "easter(year)-7", :name => "Palmesøndag", :regions => [:dk, :no]},
|
@@ -31,6 +54,12 @@ module Holidays
|
|
31
54
|
{:function => lambda { |year| Holidays.easter(year)+39 }, :function_id => "easter(year)+39", :name => "Christi Himmelfahrt", :regions => [:de]},
|
32
55
|
{:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "Pfingstmontag", :regions => [:de]},
|
33
56
|
{:function => lambda { |year| Holidays.easter(year)+60 }, :function_id => "easter(year)+60", :name => "Fronleichnam", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl]},
|
57
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)-2 }, :function_id => "orthodox_easter(year)-2", :name => "Μεγάλη Παρασκευή", :regions => [:el]},
|
58
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)-1 }, :function_id => "orthodox_easter(year)-1", :name => "Μεγάλο Σάββατο", :regions => [:el]},
|
59
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year) }, :function_id => "orthodox_easter(year)", :name => "Κυριακή του Πάσχα", :regions => [:el]},
|
60
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)+1 }, :function_id => "orthodox_easter(year)+1", :name => "Δευτέρα του Πάσχα", :regions => [:el]},
|
61
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)-48 }, :function_id => "orthodox_easter(year)-48", :name => "Καθαρά Δευτέρα", :regions => [:el]},
|
62
|
+
{:function => lambda { |year| Holidays.orthodox_easter(year)+50 }, :function_id => "orthodox_easter(year)+50", :name => "Αγίου Πνεύματος", :regions => [:el]},
|
34
63
|
{:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :name => "Jueves Santo", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]},
|
35
64
|
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Viernes Santo", :regions => [:es]},
|
36
65
|
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Lunes de Pascua", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]},
|
@@ -69,10 +98,33 @@ module Holidays
|
|
69
98
|
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Sexta-feira Santa", :regions => [:pt]},
|
70
99
|
{:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Páscoa", :regions => [:pt]},
|
71
100
|
{:function => lambda { |year| Holidays.easter(year)+60 }, :function_id => "easter(year)+60", :name => "Corpo de Deus", :regions => [:pt]}],
|
101
|
+
11 => [{:mday => 17, :name => "Den boje za svobodu a demokracii", :regions => [:cz]},
|
102
|
+
{:mday => 10, :type => :informal, :name => "Mortensaften", :regions => [:dk]},
|
103
|
+
{:mday => 1, :name => "Allerheiligen", :regions => [:de_bw, :de_by, :de_nw, :de_rp, :de_sl]},
|
104
|
+
{:function => lambda { |year| Holidays.de_buss_und_bettag(year) }, :function_id => "de_buss_und_bettag(year)", :name => "Buß- und Bettag", :regions => [:de_sn]},
|
105
|
+
{:mday => 1, :name => "Todos los Santos", :regions => [:es]},
|
106
|
+
{:mday => 1, :name => "Toussaint", :regions => [:fr]},
|
107
|
+
{:mday => 11, :name => "Armistice 1918", :regions => [:fr]},
|
108
|
+
{:mday => 5, :type => :informal, :name => "Guy Fawkes Day", :regions => [:gb]},
|
109
|
+
{:mday => 16, :name => "Dagur íslenskrar tungu", :regions => [:is]},
|
110
|
+
{:mday => 1, :name => "Ognissanti", :regions => [:it]},
|
111
|
+
{:mday => 1, :name => "Todos os Santos", :regions => [:pt]}],
|
112
|
+
6 => [{:mday => 5, :name => "Grundlovsdag", :regions => [:dk]},
|
113
|
+
{:mday => 15, :type => :informal, :name => "Valdemarsdag og Genforeningsdag", :regions => [:dk]},
|
114
|
+
{:mday => 23, :type => :informal, :name => "Sankt Hans aften", :regions => [:dk]},
|
115
|
+
{:mday => 9, :name => "Día de la Región de Murcia", :regions => [:es_mu]},
|
116
|
+
{:mday => 9, :name => "Día de La Rioja", :regions => [:es_lo]},
|
117
|
+
{:wday => 1, :week => 1, :name => "Bank Holiday", :regions => [:ie]},
|
118
|
+
{:mday => 3, :type => :informal, :name => "Sjómannadagurinn", :regions => [:is]},
|
119
|
+
{:mday => 17, :name => "Lýðveldisdagurinn", :regions => [:is]},
|
120
|
+
{:mday => 2, :name => "Festa della Repubblica", :regions => [:it]},
|
121
|
+
{:mday => 10, :name => "Dia de Portugal", :regions => [:pt]}],
|
72
122
|
1 => [{:mday => 1, :name => "Den obnovy samostatného českého státu", :regions => [:cz]},
|
73
123
|
{:mday => 1, :name => "Nytårsdag", :regions => [:dk]},
|
74
124
|
{:mday => 1, :name => "Neujahrstag", :regions => [:de]},
|
75
125
|
{:mday => 6, :name => "Heilige Drei Könige", :regions => [:de_bw, :de_by, :de_st]},
|
126
|
+
{:mday => 1, :name => "Πρωτοχρονιά", :regions => [:el]},
|
127
|
+
{:mday => 6, :name => "Θεοφάνεια", :regions => [:el]},
|
76
128
|
{:mday => 1, :name => "Año Nuevo", :regions => [:es]},
|
77
129
|
{:mday => 6, :name => "Día de Reyes", :regions => [:es]},
|
78
130
|
{:mday => 1, :name => "Jour de l'an", :regions => [:fr]},
|
@@ -86,57 +138,6 @@ module Holidays
|
|
86
138
|
{:mday => 1, :name => "Nieuwjaar", :regions => [:nl]},
|
87
139
|
{:mday => 1, :name => "Nyttårsdag", :regions => [:no]},
|
88
140
|
{:mday => 1, :name => "Ano Novo", :regions => [:pt]}],
|
89
|
-
5 => [{:mday => 1, :name => "Svátek práce", :regions => [:cz]},
|
90
|
-
{:mday => 8, :name => "Den vítězství", :regions => [:cz]},
|
91
|
-
{:mday => 1, :name => "Arbejdernes kampdag", :regions => [:dk]},
|
92
|
-
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]},
|
93
|
-
{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]},
|
94
|
-
{:mday => 1, :name => "Día del Trabajador", :regions => [:es]},
|
95
|
-
{:mday => 2, :name => "Fiesta de la Comunidad", :regions => [:es_m]},
|
96
|
-
{:mday => 30, :name => "Día de las Canarias", :regions => [:es_cn]},
|
97
|
-
{:mday => 31, :name => "Día de la Región Castilla-La Mancha", :regions => [:es_cm]},
|
98
|
-
{:mday => 1, :name => "Fête du travail", :regions => [:fr]},
|
99
|
-
{:mday => 8, :name => "Victoire 1945", :regions => [:fr]},
|
100
|
-
{:wday => 1, :week => 1, :name => "May Day", :regions => [:gb, :ie]},
|
101
|
-
{:mday => 9, :name => "Liberation Day", :regions => [:je, :gb_jsy, :gg, :gb_gsy]},
|
102
|
-
{:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:gb]},
|
103
|
-
{:mday => 1, :name => "Verkalýðsdagurinn", :regions => [:is]},
|
104
|
-
{:mday => 13, :name => "Mæðradagurinn", :regions => [:is]},
|
105
|
-
{:mday => 1, :name => "Festa dei Lavoratori", :regions => [:it]},
|
106
|
-
{:mday => 4, :name => "Dodenherdenking", :regions => [:nl]},
|
107
|
-
{:mday => 5, :name => "Bevrijdingsdag", :regions => [:nl]},
|
108
|
-
{:mday => 1, :name => "1. mai", :regions => [:no]},
|
109
|
-
{:mday => 17, :name => "17. mai", :regions => [:no]},
|
110
|
-
{:mday => 1, :name => "Dia do Trabalhador", :regions => [:pt]}],
|
111
|
-
7 => [{:mday => 5, :name => "Den slovanských věrozvěstů Cyrila a Metoděje", :regions => [:cz]},
|
112
|
-
{:mday => 6, :name => "Den upálení mistra Jana Husa", :regions => [:cz]},
|
113
|
-
{:mday => 23, :name => "Santiago Apostol", :regions => [:es_ga]},
|
114
|
-
{:mday => 14, :name => "Fête nationale", :regions => [:fr]},
|
115
|
-
{:mday => 5, :name => "Tynwald Day", :regions => [:im, :gb_iom]},
|
116
|
-
{:mday => 12, :name => "Battle of the Boyne", :regions => [:gb_nir]}],
|
117
|
-
9 => [{:mday => 28, :name => "Den české státnosti", :regions => [:cz]},
|
118
|
-
{:mday => 2, :name => "Día de Ceuta", :regions => [:es_ce]},
|
119
|
-
{:mday => 8, :name => "Día de Asturias", :regions => [:es_o]},
|
120
|
-
{:mday => 8, :name => "Día de Extremadura", :regions => [:es_ex]},
|
121
|
-
{:mday => 11, :name => "Fiesta Nacional de Cataluña", :regions => [:es_ct]}],
|
122
|
-
10 => [{:mday => 28, :name => "Den vzniku samostatného československého státu", :regions => [:cz]},
|
123
|
-
{:mday => 3, :name => "Tag der Deutschen Einheit", :regions => [:de]},
|
124
|
-
{:mday => 31, :name => "Reformationstag", :regions => [:de_bb, :de_mv, :de_sn, :de_st, :de_th]},
|
125
|
-
{:mday => 9, :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
|
126
|
-
{:mday => 12, :name => "Día de la Hispanidad", :regions => [:es]},
|
127
|
-
{:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:ie]},
|
128
|
-
{:mday => 5, :name => "Implantação da República", :regions => [:pt]}],
|
129
|
-
11 => [{:mday => 17, :name => "Den boje za svobodu a demokracii", :regions => [:cz]},
|
130
|
-
{:mday => 10, :type => :informal, :name => "Mortensaften", :regions => [:dk]},
|
131
|
-
{:mday => 1, :name => "Allerheiligen", :regions => [:de_bw, :de_by, :de_nw, :de_rp, :de_sl]},
|
132
|
-
{:function => lambda { |year| Holidays.de_buss_und_bettag(year) }, :function_id => "de_buss_und_bettag(year)", :name => "Buß- und Bettag", :regions => [:de_sn]},
|
133
|
-
{:mday => 1, :name => "Todos los Santos", :regions => [:es]},
|
134
|
-
{:mday => 1, :name => "Toussaint", :regions => [:fr]},
|
135
|
-
{:mday => 11, :name => "Armistice 1918", :regions => [:fr]},
|
136
|
-
{:mday => 5, :type => :informal, :name => "Guy Fawkes Day", :regions => [:gb]},
|
137
|
-
{:mday => 16, :name => "Dagur íslenskrar tungu", :regions => [:is]},
|
138
|
-
{:mday => 1, :name => "Ognissanti", :regions => [:it]},
|
139
|
-
{:mday => 1, :name => "Todos os Santos", :regions => [:pt]}],
|
140
141
|
12 => [{:mday => 24, :name => "Štědrý den", :regions => [:cz]},
|
141
142
|
{:mday => 25, :name => "1. svátek vánoční", :regions => [:cz]},
|
142
143
|
{:mday => 26, :name => "2. svátek vánoční", :regions => [:cz]},
|
@@ -146,6 +147,8 @@ module Holidays
|
|
146
147
|
{:mday => 26, :name => "2. juledag", :regions => [:dk, :no]},
|
147
148
|
{:mday => 25, :name => "1. Weihnachtstag", :regions => [:de]},
|
148
149
|
{:mday => 26, :name => "2. Weihnachtstag", :regions => [:de]},
|
150
|
+
{:mday => 25, :name => "Χριστούγεννα", :regions => [:el]},
|
151
|
+
{:mday => 26, :name => "Δεύτερη ημέρα των Χριστουγέννων", :regions => [:el]},
|
149
152
|
{:mday => 6, :name => "Día de la Constitución", :regions => [:es]},
|
150
153
|
{:mday => 8, :name => "Inmaculada Concepción", :regions => [:es]},
|
151
154
|
{:mday => 25, :name => "Navidad del Señor", :regions => [:es]},
|
@@ -170,26 +173,16 @@ module Holidays
|
|
170
173
|
{:mday => 1, :name => "Restauração da Independência", :regions => [:pt]},
|
171
174
|
{:mday => 8, :name => "Imaculada Conceição", :regions => [:pt]},
|
172
175
|
{:mday => 25, :name => "Natal", :regions => [:pt]}],
|
173
|
-
|
174
|
-
{:mday =>
|
175
|
-
{:mday =>
|
176
|
-
{:mday =>
|
177
|
-
{:mday =>
|
178
|
-
{:
|
179
|
-
|
180
|
-
{:mday =>
|
181
|
-
{:mday => 25, :name => "Dia da Liberdade", :regions => [:pt]}],
|
182
|
-
6 => [{:mday => 5, :name => "Grundlovsdag", :regions => [:dk]},
|
183
|
-
{:mday => 15, :type => :informal, :name => "Valdemarsdag og Genforeningsdag", :regions => [:dk]},
|
184
|
-
{:mday => 23, :type => :informal, :name => "Sankt Hans aften", :regions => [:dk]},
|
185
|
-
{:mday => 9, :name => "Día de la Región de Murcia", :regions => [:es_mu]},
|
186
|
-
{:mday => 9, :name => "Día de La Rioja", :regions => [:es_lo]},
|
187
|
-
{:wday => 1, :week => 1, :name => "Bank Holiday", :regions => [:ie]},
|
188
|
-
{:mday => 3, :type => :informal, :name => "Sjómannadagurinn", :regions => [:is]},
|
189
|
-
{:mday => 17, :name => "Lýðveldisdagurinn", :regions => [:is]},
|
190
|
-
{:mday => 2, :name => "Festa della Repubblica", :regions => [:it]},
|
191
|
-
{:mday => 10, :name => "Dia de Portugal", :regions => [:pt]}],
|
176
|
+
7 => [{:mday => 5, :name => "Den slovanských věrozvěstů Cyrila a Metoděje", :regions => [:cz]},
|
177
|
+
{:mday => 6, :name => "Den upálení mistra Jana Husa", :regions => [:cz]},
|
178
|
+
{:mday => 23, :name => "Santiago Apostol", :regions => [:es_ga]},
|
179
|
+
{:mday => 14, :name => "Fête nationale", :regions => [:fr]},
|
180
|
+
{:mday => 5, :name => "Tynwald Day", :regions => [:im, :gb_iom]},
|
181
|
+
{:mday => 12, :name => "Battle of the Boyne", :regions => [:gb_nir]}],
|
182
|
+
2 => [{:mday => 28, :name => "Día de Andalucía", :regions => [:es_an]},
|
183
|
+
{:mday => 18, :type => :informal, :name => "Konudagur", :regions => [:is]}],
|
192
184
|
8 => [{:mday => 15, :name => "Mariä Himmelfahrt", :regions => [:de_by, :de_sl]},
|
185
|
+
{:mday => 15, :name => "Κοίμηση της Θεοτόκου", :regions => [:el]},
|
193
186
|
{:mday => 15, :name => "Asunción", :regions => [:es]},
|
194
187
|
{:mday => 15, :name => "Assomption", :regions => [:fr]},
|
195
188
|
{:wday => 1, :week => 1, :name => "Bank Holiday", :regions => [:gb_sct, :ie]},
|
@@ -197,27 +190,36 @@ module Holidays
|
|
197
190
|
{:wday => 1, :week => 1, :name => "Frídagur verslunarmanna", :regions => [:is]},
|
198
191
|
{:mday => 15, :name => "Assunzione", :regions => [:it]},
|
199
192
|
{:mday => 15, :name => "Assunção de Nossa Senhora", :regions => [:pt]}],
|
200
|
-
|
201
|
-
{:mday =>
|
202
|
-
3 => [{:mday => 1, :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
193
|
+
3 => [{:mday => 25, :name => "Επέτειος της Επανάστασης του 1821", :regions => [:el]},
|
194
|
+
{:mday => 1, :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
203
195
|
{:mday => 19, :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]},
|
204
196
|
{:mday => 5, :name => "St. Piran's Day", :regions => [:gb_con]},
|
205
|
-
{:mday => 17, :name => "St. Patrick's Day", :regions => [:gb_nir, :ie]}]
|
197
|
+
{:mday => 17, :name => "St. Patrick's Day", :regions => [:gb_nir, :ie]}],
|
198
|
+
9 => [{:mday => 28, :name => "Den české státnosti", :regions => [:cz]},
|
199
|
+
{:mday => 2, :name => "Día de Ceuta", :regions => [:es_ce]},
|
200
|
+
{:mday => 8, :name => "Día de Asturias", :regions => [:es_o]},
|
201
|
+
{:mday => 8, :name => "Día de Extremadura", :regions => [:es_ex]},
|
202
|
+
{:mday => 11, :name => "Fiesta Nacional de Cataluña", :regions => [:es_ct]}],
|
203
|
+
4 => [{:mday => 1, :type => :informal, :name => "1. april", :regions => [:dk]},
|
204
|
+
{:mday => 9, :type => :informal, :name => "Danmarks besættelse", :regions => [:dk]},
|
205
|
+
{:mday => 16, :type => :informal, :name => "Dronningens fødselsdag", :regions => [:dk]},
|
206
|
+
{:mday => 23, :name => "San Jorge", :regions => [:es_ar, :es_cl]},
|
207
|
+
{:mday => 23, :name => "Día de Aragón", :regions => [:es_ar]},
|
208
|
+
{:function => lambda { |year| Holidays.is_sumardagurinn_fyrsti(year) }, :function_id => "is_sumardagurinn_fyrsti(year)", :name => "Sumardagurinn fyrsti", :regions => [:is]},
|
209
|
+
{:mday => 25, :name => "Festa della Liberazione", :regions => [:it]},
|
210
|
+
{:mday => 30, :name => "Koninginnedag", :regions => [:nl]},
|
211
|
+
{:mday => 25, :name => "Dia da Liberdade", :regions => [:pt]}],
|
212
|
+
10 => [{:mday => 28, :name => "Den vzniku samostatného československého státu", :regions => [:cz]},
|
213
|
+
{:mday => 3, :name => "Tag der Deutschen Einheit", :regions => [:de]},
|
214
|
+
{:mday => 31, :name => "Reformationstag", :regions => [:de_bb, :de_mv, :de_sn, :de_st, :de_th]},
|
215
|
+
{:mday => 28, :name => "Επέτειος του Όχι", :regions => [:el]},
|
216
|
+
{:mday => 9, :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
|
217
|
+
{:mday => 12, :name => "Día de la Hispanidad", :regions => [:es]},
|
218
|
+
{:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:ie]},
|
219
|
+
{:mday => 5, :name => "Implantação da República", :regions => [:pt]}]
|
206
220
|
}
|
207
221
|
end
|
208
222
|
|
209
|
-
# Germany: Wednesday before November 23
|
210
|
-
def self.de_buss_und_bettag(year)
|
211
|
-
date = Date.civil(year,11,23)
|
212
|
-
if date.wday > 3
|
213
|
-
date -= (date.wday - 3)
|
214
|
-
else
|
215
|
-
date -= (date.wday + 4)
|
216
|
-
end
|
217
|
-
date
|
218
|
-
end
|
219
|
-
|
220
|
-
|
221
223
|
# Iceland: first day of summer (Thursday after 18 April)
|
222
224
|
def self.is_sumardagurinn_fyrsti(year)
|
223
225
|
date = Date.civil(year,4,18)
|
@@ -230,6 +232,18 @@ def self.is_sumardagurinn_fyrsti(year)
|
|
230
232
|
end
|
231
233
|
|
232
234
|
|
235
|
+
# Germany: Wednesday before November 23
|
236
|
+
def self.de_buss_und_bettag(year)
|
237
|
+
date = Date.civil(year,11,23)
|
238
|
+
if date.wday > 3
|
239
|
+
date -= (date.wday - 3)
|
240
|
+
else
|
241
|
+
date -= (date.wday + 4)
|
242
|
+
end
|
243
|
+
date
|
244
|
+
end
|
245
|
+
|
246
|
+
|
233
247
|
|
234
248
|
end
|
235
249
|
|