holidays 4.7.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/CHANGELOG.md +9 -0
  4. data/CONTRIBUTING.md +21 -11
  5. data/Makefile +9 -6
  6. data/holidays.gemspec +1 -1
  7. data/lib/generated_definitions/MANIFEST +1 -0
  8. data/lib/generated_definitions/REGIONS.rb +1 -1
  9. data/lib/generated_definitions/hk.rb +112 -0
  10. data/lib/generated_definitions/kr.rb +4 -4
  11. data/lib/holidays/errors.rb +1 -0
  12. data/lib/holidays/finder/context/parse_options.rb +8 -3
  13. data/lib/holidays/load_all_definitions.rb +0 -11
  14. data/lib/holidays/version.rb +1 -1
  15. data/test/defs/test_defs_hk.rb +38 -0
  16. data/test/defs/test_defs_jp.rb +1 -0
  17. data/test/defs/test_defs_kr.rb +1 -1
  18. data/test/holidays/definition/validator/test_region.rb +4 -0
  19. data/test/holidays/finder/context/test_parse_options.rb +9 -1
  20. data/test/integration/test_all_regions.rb +4 -4
  21. data/test/integration/test_custom_holidays.rb +4 -4
  22. data/test/integration/test_holidays.rb +6 -6
  23. metadata +6 -60
  24. data/definitions/README.md +0 -353
  25. data/definitions/ar.yaml +0 -93
  26. data/definitions/at.yaml +0 -72
  27. data/definitions/au.yaml +0 -378
  28. data/definitions/be_fr.yaml +0 -69
  29. data/definitions/be_nl.yaml +0 -69
  30. data/definitions/bg.yaml +0 -127
  31. data/definitions/br.yaml +0 -77
  32. data/definitions/ca.yaml +0 -317
  33. data/definitions/ch.yaml +0 -193
  34. data/definitions/cl.yaml +0 -94
  35. data/definitions/cr.yaml +0 -65
  36. data/definitions/cz.yaml +0 -73
  37. data/definitions/de.yaml +0 -209
  38. data/definitions/dk.yaml +0 -130
  39. data/definitions/ecb_target.yaml +0 -44
  40. data/definitions/el.yaml +0 -84
  41. data/definitions/es.yaml +0 -203
  42. data/definitions/federal_reserve.yaml +0 -114
  43. data/definitions/fedex.yaml +0 -62
  44. data/definitions/fi.yaml +0 -115
  45. data/definitions/fr.yaml +0 -79
  46. data/definitions/gb.yaml +0 -151
  47. data/definitions/hr.yaml +0 -79
  48. data/definitions/hu.yaml +0 -63
  49. data/definitions/ie.yaml +0 -89
  50. data/definitions/index.yaml +0 -61
  51. data/definitions/is.yaml +0 -146
  52. data/definitions/it.yaml +0 -67
  53. data/definitions/jp.yaml +0 -321
  54. data/definitions/kr.yaml +0 -282
  55. data/definitions/li.yaml +0 -107
  56. data/definitions/lt.yaml +0 -89
  57. data/definitions/lu.yaml +0 -56
  58. data/definitions/ma.yaml +0 -52
  59. data/definitions/mx.yaml +0 -106
  60. data/definitions/my.yaml +0 -51
  61. data/definitions/nerc.yaml +0 -51
  62. data/definitions/nl.yaml +0 -73
  63. data/definitions/no.yaml +0 -90
  64. data/definitions/north_america_informal.yaml +0 -61
  65. data/definitions/nyse.yaml +0 -64
  66. data/definitions/nz.yaml +0 -163
  67. data/definitions/pe.yaml +0 -119
  68. data/definitions/ph.yaml +0 -94
  69. data/definitions/pl.yaml +0 -320
  70. data/definitions/pt.yaml +0 -89
  71. data/definitions/ro.yaml +0 -78
  72. data/definitions/se.yaml +0 -120
  73. data/definitions/sg.yaml +0 -56
  74. data/definitions/si.yaml +0 -86
  75. data/definitions/sk.yaml +0 -80
  76. data/definitions/united_nations.yaml +0 -189
  77. data/definitions/ups.yaml +0 -62
  78. data/definitions/us.yaml +0 -103
  79. data/definitions/ve.yaml +0 -74
  80. data/definitions/vi.yaml +0 -29
  81. data/definitions/za.yaml +0 -80
@@ -1,89 +0,0 @@
1
- # Portugese holiday definitions for the Ruby Holiday gem.
2
- #
3
- # Updated: 2014-03-01.
4
- # Sources:
5
- # - http://thomasallen.home.sapo.pt/travel/hols.htm
6
- # - http://en.wikipedia.org/wiki/Holidays_in_Portugal
7
- # - http://www.kidlink.org/KIDPROJ/MCC/mcc0006.html
8
- # - http://www.worldtravelguide.net/country/227/public_holidays/Europe/Portugal.html
9
- # - http://en.wikipedia.org/wiki/Portugal_Day
10
- # - http://www.timeanddate.com/calendar/custom.html?year=2008&country=15
11
- # - http://en.wikipedia.org/wiki/Public_holidays_in_Portugal
12
- ---
13
- months:
14
- 0:
15
- - name: Carnaval # same as Shrove Tuesday
16
- regions: [pt]
17
- function: easter(year)
18
- function_modifier: -47
19
- type: informal
20
- - name: Sexta-feira Santa
21
- regions: [pt]
22
- function: easter(year)
23
- function_modifier: -2
24
- - name: Páscoa
25
- regions: [pt]
26
- function: easter(year)
27
- - name: Corpo de Deus
28
- regions: [pt]
29
- function: easter(year)
30
- function_modifier: 60
31
- 1:
32
- - name: Ano Novo
33
- regions: [pt]
34
- mday: 1
35
- 4:
36
- - name: Dia da Liberdade
37
- regions: [pt]
38
- mday: 25
39
- 5:
40
- - name: Dia do Trabalhador
41
- regions: [pt]
42
- mday: 1
43
- 6:
44
- - name: Dia de Portugal
45
- regions: [pt]
46
- mday: 10
47
- 8:
48
- - name: Assunção de Nossa Senhora
49
- regions: [pt]
50
- mday: 15
51
- 10:
52
- - name: Dia da República
53
- regions: [pt]
54
- mday: 5
55
- 11:
56
- - name: Dia de Todos-os-Santos
57
- regions: [pt]
58
- mday: 1
59
- 12:
60
- - name: Restauração da Independência
61
- regions: [pt]
62
- mday: 1
63
- - name: Imaculada Conceição
64
- regions: [pt]
65
- mday: 8
66
- - name: Natal
67
- regions: [pt]
68
- mday: 25
69
- tests: |
70
- {Date.civil(2008,1,1) => 'Ano Novo',
71
- Date.civil(2005,2,8) => 'Carnaval',
72
- Date.civil(2006,2,28) => 'Carnaval',
73
- Date.civil(2007,2,20) => 'Carnaval',
74
- Date.civil(2008,2,5) => 'Carnaval',
75
- Date.civil(2008,3,21) => 'Sexta-feira Santa',
76
- Date.civil(2008,3,23) => 'Páscoa',
77
- Date.civil(2016,3,27) => 'Páscoa',
78
- Date.civil(2008,4,25) => 'Dia da Liberdade',
79
- Date.civil(2008,5,1) => 'Dia do Trabalhador',
80
- Date.civil(2016,5,26) => 'Corpo de Deus',
81
- Date.civil(2008,6,10) => 'Dia de Portugal',
82
- Date.civil(2008,8,15) => 'Assunção de Nossa Senhora',
83
- Date.civil(2008,10,5) => 'Dia da República',
84
- Date.civil(2008,11,1) => 'Dia de Todos-os-Santos',
85
- Date.civil(2008,12,1) => 'Restauração da Independência',
86
- Date.civil(2008,12,8) => 'Imaculada Conceição',
87
- Date.civil(2008,12,25) => 'Natal'}.each do |date, name|
88
- assert_equal name, (Holidays.on(date, :pt, :informal)[0] || {})[:name]
89
- end
@@ -1,78 +0,0 @@
1
- # Romanian holiday definitions for the Ruby Holiday gem.
2
- #
3
- # Created: 2013-07-23 by Mihai Târnovan
4
- # Sources:
5
- # - http://ro.wikipedia.org/wiki/S%C4%83rb%C4%83tori_publice_%C3%AEn_Rom%C3%A2nia
6
- # - http://en.wikipedia.org/wiki/Public_holidays_in_Romania
7
- ---
8
- months:
9
- 0:
10
- - name: Paștele - duminică
11
- regions: [ro]
12
- function: orthodox_easter(year)
13
- - name: Paștele - luni
14
- regions: [ro]
15
- function: orthodox_easter(year)
16
- function_modifier: 1
17
- - name: Rusaliile - 50
18
- regions: [ro]
19
- function: orthodox_easter(year)
20
- function_modifier: 49
21
- - name: Rusaliile - 51
22
- regions: [ro]
23
- function: orthodox_easter(year)
24
- function_modifier: 50
25
- 1:
26
- - name: Anul nou
27
- regions: [ro]
28
- mday: 1
29
- - name: Anul nou
30
- regions: [ro]
31
- mday: 2
32
- 5:
33
- - name: Ziua muncii
34
- regions: [ro]
35
- mday: 1
36
- 8:
37
- - name: Adormirea Maicii Domnului
38
- regions: [ro]
39
- mday: 15
40
- 11:
41
- - name: Sfântul Apostol Andrei
42
- regions: [ro]
43
- mday: 30
44
- 12:
45
- - name: Ziua Națională
46
- regions: [ro]
47
- mday: 1
48
- - name: Sărbătoarea Nașterii Domnului
49
- regions: [ro]
50
- mday: 25
51
- - name: Sărbătoarea Nașterii Domnului
52
- regions: [ro]
53
- mday: 26
54
- tests: |
55
- {
56
- Date.civil(1961,4,9) => 'Paștele - duminică',
57
- Date.civil(1961,4,10) => 'Paștele - luni',
58
- Date.civil(2013,5,5) => 'Paștele - duminică',
59
- Date.civil(2013,5,6) => 'Paștele - luni',
60
- Date.civil(2027,5,2) => 'Paștele - duminică',
61
- Date.civil(2027,5,3) => 'Paștele - luni',
62
- Date.civil(2012,6,4) => 'Rusaliile - 51',
63
- Date.civil(2013,6,23) => 'Rusaliile - 50',
64
- Date.civil(2013,6,24) => 'Rusaliile - 51',
65
- Date.civil(1986,6,22) => 'Rusaliile - 50',
66
- Date.civil(1986,6,23) => 'Rusaliile - 51',
67
- Date.civil(2009,1,1) => 'Anul nou',
68
- Date.civil(2014,1,2) => 'Anul nou',
69
- Date.civil(2009,5,1) => 'Ziua muncii',
70
- Date.civil(2012,8,15) => 'Adormirea Maicii Domnului',
71
- Date.civil(2013,11,30) => 'Sfântul Apostol Andrei',
72
- Date.civil(2013,12,1) => 'Ziua Națională',
73
- Date.civil(2013,12,25) => 'Sărbătoarea Nașterii Domnului',
74
- Date.civil(2013,12,26) => 'Sărbătoarea Nașterii Domnului'}.each do |date, name|
75
- assert_equal name, (Holidays.on(date, :ro, :informal)[0] || {})[:name]
76
- end
77
-
78
- assert_equal [], Holidays.on(Date.civil(2013,7,23), :ro), '2013-07-23 is not a holiday in Romania'
@@ -1,120 +0,0 @@
1
- # Swedish holiday definitions for the Ruby Holiday gem.
2
- #
3
- # Updated: 2008-11-28.
4
- # Sources:
5
- # - http://en.wikipedia.org/wiki/Holidays_in_Sweden
6
- # - http://www.worldtravelguide.net/country/269/public_holidays/Europe/Sweden.html
7
- # - http://hem.passagen.se/farila/midsum.htm
8
- # - http://www.timeanddate.com/calendar/?country=21
9
- ---
10
- months:
11
- 0:
12
- - name: Långfredagen
13
- regions: [se]
14
- function: easter(year)
15
- function_modifier: -2
16
- - name: Påskafton
17
- regions: [se]
18
- function: easter(year)
19
- function_modifier: -1
20
- type: informal
21
- - name: Påskdagen
22
- regions: [se]
23
- function: easter(year)
24
- - name: Annandag påsk
25
- regions: [se]
26
- function: easter(year)
27
- function_modifier: 1
28
- - name: Kristi himmelsfärdsdag # Ascension Day
29
- regions: [se]
30
- function: easter(year)
31
- function_modifier: 39
32
- - name: Pingstdagen # Whitsunday
33
- regions: [se]
34
- function: easter(year)
35
- function_modifier: 49
36
- - name: Alla helgons dag # All Saint's Day
37
- regions: [se]
38
- function: se_alla_helgons_dag(year)
39
- 1:
40
- - name: Nyårsdagen
41
- regions: [se]
42
- mday: 1
43
- - name: Trettondedag jul
44
- regions: [se]
45
- mday: 6
46
- 5:
47
- - name: Första maj
48
- regions: [se]
49
- mday: 1
50
- 6:
51
- - name: Nationaldagen
52
- regions: [se]
53
- mday: 6
54
- - name: Midsommardagen
55
- regions: [se]
56
- function: se_midsommardagen(year)
57
- - name: Midsommarafton
58
- regions: [se]
59
- function: se_midsommardagen(year)
60
- function_modifier: -1
61
- type: informal
62
- 12:
63
- - name: Julafton
64
- regions: [se]
65
- mday: 24
66
- type: informal
67
- - name: Juldagen
68
- regions: [se]
69
- mday: 25
70
- - name: Annandag jul
71
- regions: [se]
72
- mday: 26
73
- - name: Nyårsafton
74
- regions: [se]
75
- mday: 31
76
- type: informal
77
- methods:
78
- se_midsommardagen:
79
- # Sweden: Mid-summer (Saturday between June 20–26)
80
- arguments: year
81
- source: |
82
- date = Date.civil(year,6,20)
83
- date += (6 - date.wday)
84
- date
85
- se_alla_helgons_dag:
86
- # Sweden: All Saint's Day (Saturday between Oct 31 and Nov 6)
87
- arguments: year
88
- source: |
89
- date = Date.civil(year,10,31)
90
- date += (6 - date.wday)
91
- date
92
- tests: |
93
- {Date.civil(2008,1,1) => 'Nyårsdagen',
94
- Date.civil(2008,1,6) => 'Trettondedag jul',
95
- Date.civil(2008,3,21) => 'Långfredagen',
96
- Date.civil(2008,3,22) => 'Påskafton',
97
- Date.civil(2008,3,23) => 'Påskdagen',
98
- Date.civil(2008,3,24) => 'Annandag påsk',
99
- Date.civil(2008,5,1) => 'Första maj',
100
- Date.civil(2008,5,1) => 'Kristi himmelsfärdsdag',
101
- Date.civil(2008,5,11) => 'Pingstdagen',
102
- Date.civil(2008,6,6) => 'Nationaldagen',
103
- Date.civil(2005,6,25) => 'Midsommardagen',
104
- Date.civil(2006,6,24) => 'Midsommardagen',
105
- Date.civil(2006,6,23) => 'Midsommarafton',
106
- Date.civil(2007,6,23) => 'Midsommardagen',
107
- Date.civil(2007,6,22) => 'Midsommarafton',
108
- Date.civil(2008,6,21) => 'Midsommardagen',
109
- Date.civil(2008,6,20) => 'Midsommarafton',
110
- Date.civil(2005,11,5) => 'Alla helgons dag',
111
- Date.civil(2006,11,4) => 'Alla helgons dag',
112
- Date.civil(2007,11,3) => 'Alla helgons dag',
113
- Date.civil(2008,11,1) => 'Alla helgons dag',
114
- Date.civil(2008,12,24) => 'Julafton',
115
- Date.civil(2008,12,25) => 'Juldagen',
116
- Date.civil(2008,12,26) => 'Annandag jul',
117
- Date.civil(2008,12,31) => 'Nyårsafton'
118
- }.each do |date, name|
119
- assert_equal name, (Holidays.on(date, :se, :informal)[0] || {})[:name]
120
- end
@@ -1,56 +0,0 @@
1
- # Singapore holiday definitions for the Holidays gem!
2
-
3
- # Days not included in the definitions (yet):
4
- # Vesak Day (falls on the first full moon in May)
5
- # Lunar New Year (falls on the first day of the Lunar Calendar)
6
- # Hari Raya Puasa and Hari Raya Haji (based on moon sightings, Islamic Calendar)
7
- # Deepavali (15th Day of September or October, based on the Hindu Calendar)
8
-
9
- # Source:
10
- # http://publicholidays.sg/
11
-
12
- months:
13
- 0:
14
- - name: Good Friday
15
- regions: [sg]
16
- function: easter(year)
17
- function_modifier: -2
18
- 1:
19
- - name: New Year's Day
20
- regions: [sg]
21
- mday: 1
22
- observed: to_weekday_if_weekend(date)
23
- 2:
24
- - name: Valentine's Day
25
- regions: [sg]
26
- mday: 14
27
- type: informal
28
- - name: Total Defence Day
29
- regions: [sg]
30
- mday: 15
31
- type: informal
32
- 5:
33
- - name: Labour Day
34
- regions: [sg]
35
- mday: 1
36
- 8:
37
- - name: National Day
38
- regions: [sg]
39
- mday: 9
40
- observed: to_weekday_if_weekend(date)
41
- 12:
42
- - name: Christmas Day
43
- regions: [sg]
44
- mday: 25
45
- observed: to_weekday_if_weekend(date)
46
-
47
- tests: |
48
- {Date.civil(2014,1,1) => 'New Year\'s Day',
49
- Date.civil(2014,2,14) => 'Valentine\'s Day',
50
- Date.civil(2014,2,15) => 'Total Defence Day',
51
- Date.civil(2014,4,18) => 'Good Friday',
52
- Date.civil(2014,5,1) => 'Labour Day',
53
- Date.civil(2014,8,9) => 'National Day',
54
- Date.civil(2014,12,25) => 'Christmas Day'}.each do |date, name|
55
- assert_equal name, (Holidays.on(date, :sg, :informal)[0] || {})[:name]
56
- end
@@ -1,86 +0,0 @@
1
- # Slovenia holiday definitions for the Ruby Holiday gem.
2
- #
3
- # Updated: 2014-04-09.
4
- # Sources:
5
- # - http://en.wikipedia.org/wiki/Public_holidays_in_Slovenia
6
-
7
- months:
8
- 0:
9
- - name: velikonočna nedelja
10
- regions: [si]
11
- function: easter(year)
12
- - name: velikonočni ponedeljek
13
- regions: [si]
14
- function: easter(year)
15
- function_modifier: 1
16
- - name: binkošti
17
- regions: [si]
18
- function: easter(year)
19
- function_modifier: 49
20
- 1:
21
- - name: novo leto
22
- regions: [si]
23
- mday: 1
24
- 2:
25
- - name: Prešernov dan, slovenski kulturni praznik
26
- regions: [si]
27
- mday: 8
28
- 4:
29
- - name: dan upora proti okupatorju
30
- regions: [si]
31
- mday: 27
32
- 5:
33
- - name: praznik dela
34
- regions: [si]
35
- mday: 1
36
- - name: praznik dela
37
- regions: [si]
38
- mday: 2
39
- 6:
40
- - name: dan državnosti
41
- regions: [si]
42
- mday: 25
43
- 8:
44
- - name: Marijino vnebovzetje
45
- regions: [si]
46
- mday: 15
47
- 10:
48
- - name: dan reformacije
49
- regions: [si]
50
- mday: 31
51
- 11:
52
- - name: dan spomina na mrtve
53
- regions: [si]
54
- mday: 1
55
- 12:
56
- - name: božič
57
- regions: [si]
58
- mday: 25
59
- - name: dan samostojnosti in enotnosti
60
- regions: [si]
61
- mday: 26
62
- tests: |
63
- assert_equal 'velikonočna nedelja', Holidays.on(Date.civil(2015,4,5), :si)[0][:name]
64
- assert_equal 'velikonočna nedelja', Holidays.on(Date.civil(2016,3,27), :si)[0][:name]
65
-
66
- assert_equal 'velikonočni ponedeljek', Holidays.on(Date.civil(2015,4,6), :si)[0][:name]
67
- assert_equal 'velikonočni ponedeljek', Holidays.on(Date.civil(2016,3,28), :si)[0][:name]
68
-
69
- assert_equal 'binkošti', Holidays.on(Date.civil(2015,5,24), :si)[0][:name]
70
- assert_equal 'binkošti', Holidays.on(Date.civil(2016,5,15), :si)[0][:name]
71
-
72
- (2014..2020).each do |year|
73
- {Date.civil(year,1,1) => 'novo leto',
74
- Date.civil(year,2,8) => 'Prešernov dan, slovenski kulturni praznik',
75
- Date.civil(year,4,27) => 'dan upora proti okupatorju',
76
- Date.civil(year,5,1) => 'praznik dela',
77
- Date.civil(year,5,2) => 'praznik dela',
78
- Date.civil(year,6,25) => 'dan državnosti',
79
- Date.civil(year,8,15) => 'Marijino vnebovzetje',
80
- Date.civil(year,10,31) => 'dan reformacije',
81
- Date.civil(year,11,1) => 'dan spomina na mrtve',
82
- Date.civil(year,12,25) => 'božič',
83
- Date.civil(2008,12,26) => 'dan samostojnosti in enotnosti'}.each do |date, name|
84
- assert_equal name, (Holidays.on(date, :si, :informal)[0] || {})[:name]
85
- end
86
- end
@@ -1,80 +0,0 @@
1
- # Slovak holiday definitions for the Ruby Holiday gem.
2
- #
3
- # Updated: 2013-12-26.
4
- # Sources:
5
- # - http://sk.wikipedia.org/wiki/Slovensk%C3%A9_%C5%A1t%C3%A1tne_sviatky
6
- ---
7
- months:
8
- 0:
9
- - name: Veľkonočný pondelok
10
- regions: [sk]
11
- function: easter(year)
12
- function_modifier: 1
13
- - name: Veľký piatok
14
- regions: [sk]
15
- function: easter(year)
16
- function_modifier: -2
17
- 1:
18
- - name: Nový rok
19
- regions: [sk]
20
- mday: 1
21
- - name: Zjavenie Pána (Traja králi)
22
- regions: [sk]
23
- mday: 6
24
- 5:
25
- - name: Sviatok práce
26
- regions: [sk]
27
- mday: 1
28
- - name: Deň víťazstva nad fašizmom
29
- regions: [sk]
30
- mday: 8
31
- 7:
32
- - name: Sviatok svätého Cyrila a svätého Metoda
33
- regions: [sk]
34
- mday: 5
35
- 8:
36
- - name: Výročie Slovenského národného povstania
37
- regions: [sk]
38
- mday: 29
39
- 9:
40
- - name: Deň Ústavy Slovenskej republiky
41
- regions: [sk]
42
- mday: 1
43
- - name: Sedembolestná Panna Mária
44
- regions: [sk]
45
- mday: 15
46
- 11:
47
- - name: Sviatok všetkých svätých
48
- regions: [sk]
49
- mday: 1
50
- - name: Deň boja za slobodu a demokraciu
51
- regions: [sk]
52
- mday: 17
53
- 12:
54
- - name: Štedrý deň
55
- regions: [sk]
56
- mday: 24
57
- - name: 1. sviatok vianočný
58
- regions: [sk]
59
- mday: 25
60
- - name: 2. sviatok vianočný
61
- regions: [sk]
62
- mday: 26
63
- tests: |
64
- {Date.civil(2013,1,1) => 'Nový rok',
65
- Date.civil(2013,1,6) => 'Zjavenie Pána (Traja králi)',
66
- Date.civil(2013,3,29) => 'Veľký piatok',
67
- Date.civil(2013,4,1) => 'Veľkonočný pondelok',
68
- Date.civil(2013,5,1) => 'Sviatok práce',
69
- Date.civil(2013,5,8) => 'Deň víťazstva nad fašizmom',
70
- Date.civil(2013,7,5) => 'Sviatok svätého Cyrila a svätého Metoda',
71
- Date.civil(2013,8,29) => 'Výročie Slovenského národného povstania',
72
- Date.civil(2013,9,1) => 'Deň Ústavy Slovenskej republiky',
73
- Date.civil(2013,9,15) => 'Sedembolestná Panna Mária',
74
- Date.civil(2013,11,1) => 'Sviatok všetkých svätých',
75
- Date.civil(2013,11,17) => 'Deň boja za slobodu a demokraciu',
76
- Date.civil(2013,12,24) => 'Štedrý deň',
77
- Date.civil(2013,12,25) => '1. sviatok vianočný',
78
- Date.civil(2013,12,26) => '2. sviatok vianočný'}.each do |date, name|
79
- assert_equal name, (Holidays.on(date, :sk, :informal)[0] || {})[:name]
80
- end