-
Notifications
You must be signed in to change notification settings - Fork 136
/
it.yaml
246 lines (243 loc) · 5.54 KB
/
it.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# Italian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2008-11-23.
# Sources:
# - http://en.wikipedia.org/wiki/Holidays_in_Italy
#
# Changes 2019-03-11
# - add Rome region (it_rm)
# - add Festa di San Pietro e Paolo for it_rm region
#
# Sources:
# - https://en.wikipedia.org/wiki/Feast_of_Saints_Peter_and_Paul
# - https://www.officeholidays.com/countries/global/st_peter_and_paul.php
#
# Changes 2019-06-28
# - add Florence region (it_fi)
# - add Genoa region (it_ge)
# - add Turin region (it_to)
# - add Festa di San Giovanni Battista for it_fi, it_ge, it_to regions
# Sources:
# - https://www.officeholidays.com/holidays/italy/st-johns-day
#
# Changes 2019-09-18
# - add Venetian regions (it_vr, it_vi, it_pd, it_ro, it_tv, it_bl, it_ve)
# - add patron's feast for each venetian region
# Sources:
# - https://it.wikipedia.org/wiki/Santi_patroni_cattolici_delle_citt%C3%A0_capoluogo_di_provincia_italiane
---
months:
0:
- name: Pasqua
regions: [it]
function: easter(year)
- name: Lunedì dell'Angelo
regions: [it]
function: easter(year)
function_modifier: 1
1:
- name: Capodanno
regions: [it]
mday: 1
- name: Epifania
regions: [it]
mday: 6
4:
- name: Festa della Liberazione
regions: [it]
mday: 25
- name: Festa di San Marco Evangelista
regions: [it_ve]
mday: 25
- name: Festa di San Liberale
regions: [it_tv]
mday: 27
5:
- name: Festa dei Lavoratori
regions: [it]
mday: 1
- name: Festa di San Zeno
regions: [it_vr]
mday: 21
6:
- name: Festa della Repubblica
regions: [it]
mday: 2
- name: Festa di Sant'Antonio di Padova
regions: [it_pd]
mday: 13
- name: Festa di San Giovanni Battista
regions: [it_fi, it_ge, it_to]
mday: 24
- name: Festa di San Pietro e Paolo
regions: [it_rm]
mday: 29
8:
- name: Assunzione
regions: [it]
mday: 15
9:
- name: Festa della Madonna di Monte Berico
regions: [it_vi]
mday: 8
11:
- name: Ognissanti
regions: [it]
mday: 1
- name: Festa di San Martino
regions: [it_bl]
mday: 11
- name: Festa di San Bellino
regions: [it_ro]
mday: 26
12:
- name: Immacolata Concezione
regions: [it]
mday: 8
- name: Natale
regions: [it]
mday: 25
- name: Santo Stefano
regions: [it]
mday: 26
tests:
- given:
date: '2007-01-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Capodanno"
- given:
date: '2007-01-06'
regions: ["it"]
options: ["informal"]
expect:
name: "Epifania"
- given:
date: '2007-04-08'
regions: ["it"]
options: ["informal"]
expect:
name: "Pasqua"
- given:
date: '2007-04-09'
regions: ["it"]
options: ["informal"]
expect:
name: "Lunedì dell'Angelo"
- given:
date: '2007-04-25'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa della Liberazione"
# This is a valid test but unfortunately we have no way right now to handle two holidays that occur on the same day in tests.
# Allowing for it will require some kind of update to the test def here to say 'I expect this to be the second result returned'
# and this will require ruby updates.
#
#- given:
# date: '2019-04-25'
# regions: ["it_ve"]
# options: ["informal"]
# expect:
# name: "Festa di San Marco Evangelista"
- given:
date: '2019-04-27'
regions: ["it_tv"]
options: ["informal"]
expect:
name: "Festa di San Liberale"
- given:
date: '2007-05-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa dei Lavoratori"
- given:
date: '2019-05-21'
regions: ["it_vr"]
options: ["informal"]
expect:
name: "Festa di San Zeno"
- given:
date: '2007-06-02'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa della Repubblica"
- given:
date: '2019-06-13'
regions: ["it_pd"]
options: ["informal"]
expect:
name: "Festa di Sant'Antonio di Padova"
- given:
date: '2019-06-24'
regions: ["it_fi", "it_ge", "it_to"]
options: ["informal"]
expect:
name: "Festa di San Giovanni Battista"
- given:
date: '2019-06-24'
regions: ["it"]
expect:
holiday: false
- given:
date: '2019-06-29'
regions: ["it_rm"]
options: ["informal"]
expect:
name: "Festa di San Pietro e Paolo"
- given:
date: '2019-06-29'
regions: ["it"]
expect:
holiday: false
- given:
date: '2007-08-15'
regions: ["it"]
options: ["informal"]
expect:
name: "Assunzione"
- given:
date: '2019-09-08'
regions: ["it_vi"]
options: ["informal"]
expect:
name: "Festa della Madonna di Monte Berico"
- given:
date: '2007-11-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Ognissanti"
- given:
date: '2019-11-11'
regions: ["it_bl"]
options: ["informal"]
expect:
name: "Festa di San Martino"
- given:
date: '2019-11-26'
regions: ["it_ro"]
options: ["informal"]
expect:
name: "Festa di San Bellino"
- given:
date: '2007-12-08'
regions: ["it"]
options: ["informal"]
expect:
name: "Immacolata Concezione"
- given:
date: '2007-12-25'
regions: ["it"]
options: ["informal"]
expect:
name: "Natale"
- given:
date: '2007-12-26'
regions: ["it"]
options: ["informal"]
expect:
name: "Santo Stefano"