-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathve.yaml
74 lines (73 loc) · 1.9 KB
/
ve.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
# Venezuela holiday definitions for the Ruby Holiday gem.
#
# Just including nonworking days nationally
#
# Updated: 2012-09-14.
# Source: http://venciclopedia.com/index.php?title=D%C3%ADas_feriados_de_Venezuela
---
months:
0:
- name: Lunes Carnaval
regions: [ve]
function: easter(year)
function_modifier: -48
- name: Martes Carnaval
regions: [ve]
function: easter(year)
function_modifier: -47
- name: Jueves Santo
regions: [ve]
function: easter(year)
function_modifier: -3
- name: Viernes Santo
regions: [ve]
function: easter(year)
function_modifier: -2
1:
- name: Año Nuevo
regions: [ve]
mday: 1
4:
- name: Declaración Independencia
regions: [ve]
mday: 19
5:
- name: Día del Trabajador
regions: [ve]
mday: 1
6:
- name: Aniversario Batalla de Carabobo
regions: [ve]
mday: 24
7:
- name: Día de la Independencia
regions: [ve]
mday: 5
- name: Natalicio de Simón Bolívar
regions: [ve]
mday: 24
10:
- name: Día de la Resistencia Indígena
regions: [ve]
mday: 12
12:
- name: Día de Navidad
regions: [ve]
mday: 25
tests: |
{
Date.civil(2013, 1, 1) => "Año Nuevo",
Date.civil(2013, 2, 11) => "Lunes Carnaval",
Date.civil(2013, 2, 12) => "Martes Carnaval",
Date.civil(2013, 3, 28) => "Jueves Santo",
Date.civil(2013, 3, 29) => "Viernes Santo",
Date.civil(2013, 4, 19) => "Declaración Independencia",
Date.civil(2013, 5, 1) => "Día del Trabajador",
Date.civil(2013, 6, 24) => "Aniversario Batalla de Carabobo",
Date.civil(2013, 7, 5) => "Día de la Independencia",
Date.civil(2013, 7, 24) => "Natalicio de Simón Bolívar",
Date.civil(2013, 10, 12) => "Día de la Resistencia Indígena",
Date.civil(2013, 12, 25) => "Día de Navidad"
}.each do |date, name|
assert_equal name, (Holidays.on(date, :ve)[0] || {})[:name]
end