holidays 1.0.0 → 1.0.1
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.
- data/data/{SYNTAX → SYNTAX.rdoc} +1 -1
- data/data/br.yaml +74 -0
- data/data/ca.yaml +2 -2
- data/data/fi.yaml +95 -0
- data/data/index.yaml +4 -1
- data/data/jp.yaml +202 -0
- data/holidays.gemspec +130 -120
- data/lib/holidays.rb +1 -1
- data/lib/holidays/MANIFEST +20 -17
- data/lib/holidays/br.rb +36 -0
- data/lib/holidays/ca.rb +1 -1
- data/lib/holidays/fi.rb +54 -0
- data/lib/holidays/jp.rb +109 -0
- data/lib/holidays/north_america.rb +1 -1
- data/lib/holidays/scandinavia.rb +37 -7
- data/rakefile.rb +1 -1
- data/test/defs/test_defs_br.rb +31 -0
- data/test/defs/test_defs_ca.rb +1 -1
- data/test/defs/test_defs_fi.rb +33 -0
- data/test/defs/test_defs_jp.rb +50 -0
- data/test/defs/test_defs_north_america.rb +1 -1
- data/test/defs/test_defs_scandinavia.rb +24 -1
- metadata +18 -7
- data/.gitignore +0 -3
data/data/{SYNTAX → SYNTAX.rdoc}
RENAMED
@@ -11,7 +11,7 @@ Holidays are grouped by month from 1 through 12. Each entry within a month can
|
|
11
11
|
|
12
12
|
===== Dates defined by a fixed date (e.g. January 1st)
|
13
13
|
|
14
|
-
[<tt>
|
14
|
+
[<tt>mday</tt>] Integer representing day of the month (1 through 31).
|
15
15
|
|
16
16
|
For example, the following holiday is on the first of January and available in the <tt>ca</tt>, <tt>us</tt> and <tt>au</tt> regions.
|
17
17
|
|
data/data/br.yaml
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Brazilian holiday definitions for the Ruby Holiday gem.
|
2
|
+
# Provided by Rogério Carrasqueira
|
3
|
+
#
|
4
|
+
# Updated: 2008-11-28.
|
5
|
+
# Sources:
|
6
|
+
# - http://pt.wikipedia.org/wiki/Feriados_no_Brasil
|
7
|
+
|
8
|
+
---
|
9
|
+
months:
|
10
|
+
0:
|
11
|
+
- name: Carnaval # same as Shrove Tuesday
|
12
|
+
regions: [br]
|
13
|
+
function: easter(year)-47
|
14
|
+
type: informal
|
15
|
+
- name: Sexta-feira Santa
|
16
|
+
regions: [br]
|
17
|
+
function: easter(year)-2
|
18
|
+
- name: Páscoa
|
19
|
+
regions: [br]
|
20
|
+
function: easter(year)
|
21
|
+
- name: Corpus Christ
|
22
|
+
regions: [br]
|
23
|
+
function: easter(year)+60
|
24
|
+
1:
|
25
|
+
- name: Dia da Confraternização Universal
|
26
|
+
regions: [br]
|
27
|
+
mday: 1
|
28
|
+
4:
|
29
|
+
- name: Dia de Tiradentes
|
30
|
+
regions: [br]
|
31
|
+
mday: 21
|
32
|
+
5:
|
33
|
+
- name: Dia do Trabalho
|
34
|
+
regions: [br]
|
35
|
+
mday: 1
|
36
|
+
9:
|
37
|
+
- name: Proclamação da Independência
|
38
|
+
regions: [br]
|
39
|
+
mday: 7
|
40
|
+
10:
|
41
|
+
- name: Dia de Nossa Senhora Aparecida
|
42
|
+
regions: [br]
|
43
|
+
mday: 12
|
44
|
+
11:
|
45
|
+
- name: Dia de Finados
|
46
|
+
regions: [br]
|
47
|
+
mday: 2
|
48
|
+
- name: Proclamação da República
|
49
|
+
regions: [br]
|
50
|
+
mday: 15
|
51
|
+
12:
|
52
|
+
- name: Natal
|
53
|
+
regions: [br]
|
54
|
+
mday: 25
|
55
|
+
tests: |
|
56
|
+
{Date.civil(2008,1,1) => 'Dia da Confraternização Universal',
|
57
|
+
Date.civil(2005,2,8) => 'Carnaval',
|
58
|
+
Date.civil(2006,2,28) => 'Carnaval',
|
59
|
+
Date.civil(2007,2,20) => 'Carnaval',
|
60
|
+
Date.civil(2008,2,5) => 'Carnaval',
|
61
|
+
Date.civil(2008,3,21) => 'Sexta-feira Santa',
|
62
|
+
Date.civil(2008,3,23) => 'Páscoa',
|
63
|
+
Date.civil(2008,4,21) => 'Dia de Tiradentes',
|
64
|
+
Date.civil(2008,5,1) => 'Dia do Trabalho',
|
65
|
+
Date.civil(2005,5,26) => 'Corpus Christ',
|
66
|
+
Date.civil(2007,6,7) => 'Corpus Christ',
|
67
|
+
Date.civil(2008,5,22) => 'Corpus Christ',
|
68
|
+
Date.civil(2008,9,7) => 'Proclamação da Independência',
|
69
|
+
Date.civil(2008,10,12) => 'Dia de Nossa Senhora Aparecida',
|
70
|
+
Date.civil(2008,11,2) => 'Dia de Finados',
|
71
|
+
Date.civil(2008,11,15) => 'Proclamação da República',
|
72
|
+
Date.civil(2008,12,25) => 'Natal'}.each do |date, name|
|
73
|
+
assert_equal name, (Holidays.on(date, :br, :informal)[0] || {})[:name]
|
74
|
+
end
|
data/data/ca.yaml
CHANGED
@@ -98,7 +98,7 @@ months:
|
|
98
98
|
regions: [ca]
|
99
99
|
wday: 1
|
100
100
|
11:
|
101
|
-
- name:
|
101
|
+
- name: Remembrance Day
|
102
102
|
regions: [ca]
|
103
103
|
mday: 11
|
104
104
|
12:
|
@@ -128,7 +128,7 @@ tests: |
|
|
128
128
|
Date.civil(2008,7,1) => 'Canada Day',
|
129
129
|
Date.civil(2008,9,1) => 'Labour Day',
|
130
130
|
Date.civil(2008,10,13) => 'Thanksgiving',
|
131
|
-
Date.civil(2008,11,11) => '
|
131
|
+
Date.civil(2008,11,11) => 'Remembrance Day',
|
132
132
|
Date.civil(2008,12,25) => 'Christmas Day',
|
133
133
|
Date.civil(2008,12,26) => 'Boxing Day'}.each do |date, name|
|
134
134
|
assert_equal name, (Holidays.on(date, :ca, :informal)[0] || {})[:name]
|
data/data/fi.yaml
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
# Finnish holiday definitions for the Ruby Holiday gem.
|
2
|
+
#
|
3
|
+
# Updated: 2010-12-28.
|
4
|
+
# Sources:
|
5
|
+
# - http://en.wikipedia.org/wiki/Public_holidays_in_Finland
|
6
|
+
---
|
7
|
+
months:
|
8
|
+
0:
|
9
|
+
- name: Pitkäperjantai
|
10
|
+
regions: [fi]
|
11
|
+
function: easter(year)-2
|
12
|
+
- name: Pääsiäispäivä
|
13
|
+
regions: [fi]
|
14
|
+
function: easter(year)
|
15
|
+
- name: 2. Pääsiäispäivä
|
16
|
+
regions: [fi]
|
17
|
+
function: easter(year)+1
|
18
|
+
- name: Helatorstai # Ascension Day
|
19
|
+
regions: [fi]
|
20
|
+
function: easter(year)+39
|
21
|
+
- name: Helluntaipäivä # Whitsunday
|
22
|
+
regions: [fi]
|
23
|
+
function: easter(year)+49
|
24
|
+
- name: Pyhäinpäivä # All Saint's Day
|
25
|
+
regions: [fi]
|
26
|
+
function: fi_pyhainpaiva(year)
|
27
|
+
|
28
|
+
1:
|
29
|
+
- name: Uudenvuodenpäivä
|
30
|
+
regions: [fi]
|
31
|
+
mday: 1
|
32
|
+
- name: Loppiainen
|
33
|
+
regions: [fi]
|
34
|
+
mday: 6
|
35
|
+
|
36
|
+
5:
|
37
|
+
- name: Vappu
|
38
|
+
regions: [fi]
|
39
|
+
mday: 1
|
40
|
+
6:
|
41
|
+
- name: Juhannuspäivä
|
42
|
+
regions: [fi]
|
43
|
+
function: fi_juhannuspaiva(year)
|
44
|
+
|
45
|
+
12:
|
46
|
+
- name: Itsenäisyyspäivä
|
47
|
+
regions: [fi]
|
48
|
+
mday: 6
|
49
|
+
- name: Jouluaatto
|
50
|
+
regions: [fi]
|
51
|
+
mday: 24
|
52
|
+
- name: Joulupäivä
|
53
|
+
regions: [fi]
|
54
|
+
mday: 25
|
55
|
+
- name: Tapaninpäivä
|
56
|
+
regions: [fi]
|
57
|
+
mday: 26
|
58
|
+
methods:
|
59
|
+
fi_juhannuspaiva: |
|
60
|
+
# Finland: Mid-summer (Saturday between June 20–26)
|
61
|
+
def self.fi_juhannuspaiva(year)
|
62
|
+
date = Date.civil(year,6,20)
|
63
|
+
date += (6 - date.wday)
|
64
|
+
date
|
65
|
+
end
|
66
|
+
fi_pyhainpaiva: |
|
67
|
+
# Finland: All Saint's Day (Saturday between Oct 31 and Nov 6)
|
68
|
+
def self.fi_pyhainpaiva(year)
|
69
|
+
date = Date.civil(year,10,31)
|
70
|
+
date += (6 - date.wday)
|
71
|
+
date
|
72
|
+
end
|
73
|
+
tests: |
|
74
|
+
{Date.civil(2008,1,1) => 'Uudenvuodenpäivä',
|
75
|
+
Date.civil(2008,1,6) => 'Loppiainen',
|
76
|
+
Date.civil(2008,3,21) => 'Pitkäperjantai',
|
77
|
+
Date.civil(2008,3,23) => 'Pääsiäispäivä',
|
78
|
+
Date.civil(2008,3,24) => '2. Pääsiäispäivä',
|
79
|
+
Date.civil(2008,5,1) => 'Vappu',
|
80
|
+
Date.civil(2008,5,1) => 'Helatorstai',
|
81
|
+
Date.civil(2008,5,11) => 'Helluntaipäivä',
|
82
|
+
Date.civil(2005,6,25) => 'Juhannuspäivä',
|
83
|
+
Date.civil(2006,6,24) => 'Juhannuspäivä',
|
84
|
+
Date.civil(2007,6,23) => 'Juhannuspäivä',
|
85
|
+
Date.civil(2008,6,21) => 'Juhannuspäivä',
|
86
|
+
Date.civil(2005,11,5) => 'Pyhäinpäivä',
|
87
|
+
Date.civil(2006,11,4) => 'Pyhäinpäivä',
|
88
|
+
Date.civil(2007,11,3) => 'Pyhäinpäivä',
|
89
|
+
Date.civil(2008,11,1) => 'Pyhäinpäivä',
|
90
|
+
Date.civil(2008,12,6) => 'Itsenäisyyspäivä',
|
91
|
+
Date.civil(2008,12,24) => 'Jouluaatto',
|
92
|
+
Date.civil(2008,12,25) => 'Joulupäivä',
|
93
|
+
Date.civil(2008,12,26) => 'Tapaninpäivä'}.each do |date, name|
|
94
|
+
assert_equal name, (Holidays.on(date, :fi, :informal)[0] || {})[:name]
|
95
|
+
end
|
data/data/index.yaml
CHANGED
@@ -2,11 +2,13 @@
|
|
2
2
|
---
|
3
3
|
defs:
|
4
4
|
AU: ['au.yaml']
|
5
|
+
BR: ['br.yaml']
|
5
6
|
CA: ['ca.yaml', 'north_america_informal.yaml']
|
6
7
|
CZ: ['cz.yaml']
|
7
8
|
DK: ['dk.yaml']
|
8
9
|
DE: ['de.yaml']
|
9
10
|
ES: ['es.yaml']
|
11
|
+
FI: ['fi.yaml']
|
10
12
|
FR: ['fr.yaml']
|
11
13
|
GB: ['gb.yaml']
|
12
14
|
IE: ['ie.yaml']
|
@@ -24,5 +26,6 @@ defs:
|
|
24
26
|
UPS: ['ups.yaml']
|
25
27
|
ZA: ['za.yaml']
|
26
28
|
North_America: ['ca.yaml', 'mx.yaml', 'us.yaml', 'north_america_informal.yaml']
|
27
|
-
Scandinavia: ['dk.yaml', 'is.yaml', 'no.yaml', 'se.yaml']
|
29
|
+
Scandinavia: ['dk.yaml', 'is.yaml', 'no.yaml', 'se.yaml', 'fi.yaml']
|
28
30
|
Europe: ['cz.yaml', 'dk.yaml', 'de.yaml', 'es.yaml', 'fr.yaml', 'gb.yaml', 'ie.yaml', 'is.yaml', 'it.yaml', 'nl.yaml', 'no.yaml', 'pt.yaml']
|
31
|
+
JP: ['jp.yaml']
|
data/data/jp.yaml
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
# Japanese holiday definitions for Ruby Holiday gem.
|
2
|
+
# Reference: http://www.h3.dion.ne.jp/~sakatsu/holiday_topic.htm
|
3
|
+
#
|
4
|
+
# This definition can calculate current Japanese holidays,
|
5
|
+
# don't compat with past changes of Japan Holiday Act.
|
6
|
+
#
|
7
|
+
# CHANGES:
|
8
|
+
# 2010-12-25: Initial version by Tatsuki Sugiura <sugi@nemui.org>
|
9
|
+
#
|
10
|
+
---
|
11
|
+
months:
|
12
|
+
1:
|
13
|
+
- name: 元日
|
14
|
+
regions: [jp]
|
15
|
+
mday: 1
|
16
|
+
- name: 成人の日
|
17
|
+
regions: [jp]
|
18
|
+
wday: 1
|
19
|
+
week: 2
|
20
|
+
2:
|
21
|
+
- name: 建国記念日
|
22
|
+
regions: [jp]
|
23
|
+
mday: 11
|
24
|
+
- name: 振替休日
|
25
|
+
regions: [jp]
|
26
|
+
function: jp_substitute_holiday(year, 2, 11)
|
27
|
+
3:
|
28
|
+
- name: 春分の日
|
29
|
+
regions: [jp]
|
30
|
+
function: jp_vernal_equinox_day(year)
|
31
|
+
- name: 振替休日
|
32
|
+
regions: [jp]
|
33
|
+
function: jp_substitute_holiday(Holidays.jp_vernal_equinox_day(year))
|
34
|
+
4:
|
35
|
+
- name: 昭和の日
|
36
|
+
regions: [jp]
|
37
|
+
mday: 29
|
38
|
+
- name: 振替休日
|
39
|
+
regions: [jp]
|
40
|
+
function: jp_substitute_holiday(year, 4, 29)
|
41
|
+
5:
|
42
|
+
- name: 憲法記念日
|
43
|
+
regions: [jp]
|
44
|
+
mday: 3
|
45
|
+
- name: みどりの日
|
46
|
+
regions: [jp]
|
47
|
+
mday: 4
|
48
|
+
- name: こどもの日
|
49
|
+
regions: [jp]
|
50
|
+
mday: 5
|
51
|
+
- name: 振替休日
|
52
|
+
regions: [jp]
|
53
|
+
function: jp_substitute_holiday(year, 5, 3)
|
54
|
+
- name: 振替休日
|
55
|
+
regions: [jp]
|
56
|
+
function: jp_substitute_holiday(year, 5, 5)
|
57
|
+
7:
|
58
|
+
- name: 海の日
|
59
|
+
regions: [jp]
|
60
|
+
wday: 1
|
61
|
+
week: 3
|
62
|
+
- name: 振替休日
|
63
|
+
regions: [jp]
|
64
|
+
function: jp_substitute_holiday(year, 7, Date.calculate_mday(year, 7, 3, 1))
|
65
|
+
9:
|
66
|
+
- name: 敬老の日
|
67
|
+
regions: [jp]
|
68
|
+
wday: 1
|
69
|
+
week: 3
|
70
|
+
- name: 振替休日
|
71
|
+
regions: [jp]
|
72
|
+
function: jp_substitute_holiday(year, 9, Date.calculate_mday(year, 9, 3, 1))
|
73
|
+
- name: 国民の休日
|
74
|
+
regions: [jp]
|
75
|
+
function: jp_citizons_holiday(year)
|
76
|
+
- name: 秋分の日
|
77
|
+
regions: [jp]
|
78
|
+
function: jp_national_culture_day(year)
|
79
|
+
- name: 振替休日
|
80
|
+
regions: [jp]
|
81
|
+
function: jp_substitute_holiday(Holidays.jp_national_culture_day(year))
|
82
|
+
10:
|
83
|
+
- name: 体育の日
|
84
|
+
regions: [jp]
|
85
|
+
wday: 1
|
86
|
+
week: 2
|
87
|
+
- name: 振替休日
|
88
|
+
regions: [jp]
|
89
|
+
function: jp_substitute_holiday(year, 10, Date.calculate_mday(year, 10, 2, 1))
|
90
|
+
11:
|
91
|
+
- name: 文化の日
|
92
|
+
regions: [jp]
|
93
|
+
mday: 3
|
94
|
+
- name: 振替休日
|
95
|
+
regions: [jp]
|
96
|
+
function: jp_substitute_holiday(year, 11, 3)
|
97
|
+
- name: 勤労感謝の日
|
98
|
+
regions: [jp]
|
99
|
+
mday: 23
|
100
|
+
- name: 振替休日
|
101
|
+
regions: [jp]
|
102
|
+
function: jp_substitute_holiday(year, 11, 23)
|
103
|
+
12:
|
104
|
+
- name: 天皇誕生日
|
105
|
+
regions: [jp]
|
106
|
+
mday: 23
|
107
|
+
- name: 振替休日
|
108
|
+
regions: [jp]
|
109
|
+
function: jp_substitute_holiday(year, 12, 23)
|
110
|
+
methods:
|
111
|
+
jp_vernal_equinox_day: |
|
112
|
+
def self.jp_vernal_equinox_day(year)
|
113
|
+
day =
|
114
|
+
case year
|
115
|
+
when 1851..1899
|
116
|
+
19.8277
|
117
|
+
when 1900..1979
|
118
|
+
20.8357
|
119
|
+
when 1980..2099
|
120
|
+
20.8431
|
121
|
+
when 2100..2150
|
122
|
+
21.8510
|
123
|
+
else
|
124
|
+
raise IndexError.new("Out of range")
|
125
|
+
end
|
126
|
+
day += 0.242194 * (year - 1980) - ((year - 1980)/4).floor
|
127
|
+
day = day.floor
|
128
|
+
Date.civil(year, 3, day)
|
129
|
+
end
|
130
|
+
jp_national_culture_day: |
|
131
|
+
def self.jp_national_culture_day(year)
|
132
|
+
day =
|
133
|
+
case year
|
134
|
+
when 1851..1899
|
135
|
+
22.2588
|
136
|
+
when 1900..1979
|
137
|
+
23.2588
|
138
|
+
when 1980..2099
|
139
|
+
23.2488
|
140
|
+
when 2100..2150
|
141
|
+
24.2488
|
142
|
+
else
|
143
|
+
raise IndexError.new("Out of range")
|
144
|
+
end
|
145
|
+
day += 0.242194 * (year - 1980) - ((year - 1980)/4).floor
|
146
|
+
day = day.floor
|
147
|
+
Date.civil(year, 9, day)
|
148
|
+
end
|
149
|
+
jp_citizons_holiday: |
|
150
|
+
def self.jp_citizons_holiday(year)
|
151
|
+
year < 2003 and return nil
|
152
|
+
ncd = Holidays.jp_national_culture_day(year)
|
153
|
+
if ncd.wday == 3
|
154
|
+
ncd - 1
|
155
|
+
else
|
156
|
+
nil
|
157
|
+
end
|
158
|
+
end
|
159
|
+
jp_substitute_holiday: |
|
160
|
+
def self.jp_substitute_holiday(*date)
|
161
|
+
date = date[0].kind_of?(Date) ? date.first : Date.civil(*date)
|
162
|
+
date.wday == 0 ? date+1 : nil
|
163
|
+
end
|
164
|
+
tests: |
|
165
|
+
{Date.civil(2008,1,1) => '元日',
|
166
|
+
Date.civil(2010,1,11) => '成人の日',
|
167
|
+
Date.civil(2008,2,11) => '建国記念日',
|
168
|
+
Date.civil(2008,4,29) => '昭和の日',
|
169
|
+
Date.civil(2008,5,3) => '憲法記念日',
|
170
|
+
Date.civil(2008,5,5) => 'こどもの日',
|
171
|
+
Date.civil(2010,7,19) => '海の日',
|
172
|
+
Date.civil(2010,9,20) => '敬老の日',
|
173
|
+
Date.civil(2010,10,11) => '体育の日',
|
174
|
+
Date.civil(2008,11,3) => '文化の日',
|
175
|
+
Date.civil(2008,11,23) => '勤労感謝の日',
|
176
|
+
Date.civil(2008,12,23) => '天皇誕生日',
|
177
|
+
Date.civil(2010,3,22) => '振替休日',
|
178
|
+
Date.civil(2008,11,24) => '振替休日',
|
179
|
+
}.each do |date, name|
|
180
|
+
assert_equal name, (Holidays.on(date, :jp, :informal)[0] || {})[:name]
|
181
|
+
end
|
182
|
+
|
183
|
+
# vernal equinox day
|
184
|
+
[Date.civil(2004,3,20), Date.civil(2005,3,20), Date.civil(2006,3,21),
|
185
|
+
Date.civil(2007,3,21), Date.civil(2008,3,20), Date.civil(2009,3,20),
|
186
|
+
Date.civil(2010,3,21)].each do |date|
|
187
|
+
assert_equal '春分の日', Holidays.on(date, :jp)[0][:name]
|
188
|
+
end
|
189
|
+
|
190
|
+
# national culture day
|
191
|
+
[Date.civil(2004,9,23), Date.civil(2005,9,23), Date.civil(2006,9,23),
|
192
|
+
Date.civil(2007,9,23), Date.civil(2008,9,23), Date.civil(2009,9,23),
|
193
|
+
Date.civil(2010,9,23), Date.civil(2011,9,23), Date.civil(2012,9,22),
|
194
|
+
Date.civil(2013,9,23)].each do |date|
|
195
|
+
assert_equal '秋分の日', Holidays.on(date, :jp)[0][:name]
|
196
|
+
end
|
197
|
+
|
198
|
+
# citizens holiday
|
199
|
+
[Date.civil(2032,9,21), Date.civil(2049,9,21), Date.civil(2009,9,22),
|
200
|
+
Date.civil(2015,9,22), Date.civil(2026,9,22)].each do |date|
|
201
|
+
assert_equal '国民の休日', Holidays.on(date, :jp)[0][:name]
|
202
|
+
end
|
data/holidays.gemspec
CHANGED
@@ -1,145 +1,155 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in rakefile.rb, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile.rb, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{holidays}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex Dunae", "Rowan Crawford"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-04-29}
|
13
13
|
s.description = %q{A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!}
|
14
14
|
s.email = %q{code@dunae.ca}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
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
|
-
|
20
|
+
"CHANGELOG",
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"REFERENCES",
|
24
|
+
"data/SYNTAX.rdoc",
|
25
|
+
"data/au.yaml",
|
26
|
+
"data/br.yaml",
|
27
|
+
"data/build_defs.rb",
|
28
|
+
"data/ca.yaml",
|
29
|
+
"data/cz.yaml",
|
30
|
+
"data/de.yaml",
|
31
|
+
"data/dk.yaml",
|
32
|
+
"data/es.yaml",
|
33
|
+
"data/fi.yaml",
|
34
|
+
"data/fr.yaml",
|
35
|
+
"data/gb.yaml",
|
36
|
+
"data/ie.yaml",
|
37
|
+
"data/index.yaml",
|
38
|
+
"data/is.yaml",
|
39
|
+
"data/it.yaml",
|
40
|
+
"data/jp.yaml",
|
41
|
+
"data/mx.yaml",
|
42
|
+
"data/nl.yaml",
|
43
|
+
"data/no.yaml",
|
44
|
+
"data/north_america_informal.yaml",
|
45
|
+
"data/nyse.yaml",
|
46
|
+
"data/nz.yaml",
|
47
|
+
"data/pt.yaml",
|
48
|
+
"data/se.yaml",
|
49
|
+
"data/united_nations.yaml",
|
50
|
+
"data/ups.yaml",
|
51
|
+
"data/us.yaml",
|
52
|
+
"data/za.yaml",
|
53
|
+
"holidays.gemspec",
|
54
|
+
"lib/holidays.rb",
|
55
|
+
"lib/holidays/MANIFEST",
|
56
|
+
"lib/holidays/au.rb",
|
57
|
+
"lib/holidays/br.rb",
|
58
|
+
"lib/holidays/ca.rb",
|
59
|
+
"lib/holidays/cz.rb",
|
60
|
+
"lib/holidays/de.rb",
|
61
|
+
"lib/holidays/dk.rb",
|
62
|
+
"lib/holidays/es.rb",
|
63
|
+
"lib/holidays/europe.rb",
|
64
|
+
"lib/holidays/fi.rb",
|
65
|
+
"lib/holidays/fr.rb",
|
66
|
+
"lib/holidays/gb.rb",
|
67
|
+
"lib/holidays/ie.rb",
|
68
|
+
"lib/holidays/is.rb",
|
69
|
+
"lib/holidays/it.rb",
|
70
|
+
"lib/holidays/jp.rb",
|
71
|
+
"lib/holidays/mx.rb",
|
72
|
+
"lib/holidays/nl.rb",
|
73
|
+
"lib/holidays/no.rb",
|
74
|
+
"lib/holidays/north_america.rb",
|
75
|
+
"lib/holidays/nyse.rb",
|
76
|
+
"lib/holidays/nz.rb",
|
77
|
+
"lib/holidays/pt.rb",
|
78
|
+
"lib/holidays/scandinavia.rb",
|
79
|
+
"lib/holidays/se.rb",
|
80
|
+
"lib/holidays/united_nations.rb",
|
81
|
+
"lib/holidays/ups.rb",
|
82
|
+
"lib/holidays/us.rb",
|
83
|
+
"lib/holidays/za.rb",
|
84
|
+
"rakefile.rb",
|
85
|
+
"test/defs/test_defs_au.rb",
|
86
|
+
"test/defs/test_defs_br.rb",
|
87
|
+
"test/defs/test_defs_ca.rb",
|
88
|
+
"test/defs/test_defs_cz.rb",
|
89
|
+
"test/defs/test_defs_de.rb",
|
90
|
+
"test/defs/test_defs_dk.rb",
|
91
|
+
"test/defs/test_defs_es.rb",
|
92
|
+
"test/defs/test_defs_europe.rb",
|
93
|
+
"test/defs/test_defs_fi.rb",
|
94
|
+
"test/defs/test_defs_fr.rb",
|
95
|
+
"test/defs/test_defs_gb.rb",
|
96
|
+
"test/defs/test_defs_ie.rb",
|
97
|
+
"test/defs/test_defs_is.rb",
|
98
|
+
"test/defs/test_defs_it.rb",
|
99
|
+
"test/defs/test_defs_jp.rb",
|
100
|
+
"test/defs/test_defs_mx.rb",
|
101
|
+
"test/defs/test_defs_nl.rb",
|
102
|
+
"test/defs/test_defs_no.rb",
|
103
|
+
"test/defs/test_defs_north_america.rb",
|
104
|
+
"test/defs/test_defs_nyse.rb",
|
105
|
+
"test/defs/test_defs_nz.rb",
|
106
|
+
"test/defs/test_defs_pt.rb",
|
107
|
+
"test/defs/test_defs_scandinavia.rb",
|
108
|
+
"test/defs/test_defs_se.rb",
|
109
|
+
"test/defs/test_defs_ups.rb",
|
110
|
+
"test/defs/test_defs_us.rb",
|
111
|
+
"test/defs/test_defs_za.rb",
|
112
|
+
"test/test_date.rb",
|
113
|
+
"test/test_helper.rb",
|
114
|
+
"test/test_holidays.rb",
|
115
|
+
"test/test_multiple_regions.rb"
|
108
116
|
]
|
109
117
|
s.homepage = %q{https://github.com/alexdunae/holidays}
|
110
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
111
118
|
s.require_paths = ["lib"]
|
112
119
|
s.rubygems_version = %q{1.3.7}
|
113
120
|
s.summary = %q{A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!}
|
114
121
|
s.test_files = [
|
115
122
|
"test/defs/test_defs_au.rb",
|
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
|
-
|
123
|
+
"test/defs/test_defs_br.rb",
|
124
|
+
"test/defs/test_defs_ca.rb",
|
125
|
+
"test/defs/test_defs_cz.rb",
|
126
|
+
"test/defs/test_defs_de.rb",
|
127
|
+
"test/defs/test_defs_dk.rb",
|
128
|
+
"test/defs/test_defs_es.rb",
|
129
|
+
"test/defs/test_defs_europe.rb",
|
130
|
+
"test/defs/test_defs_fi.rb",
|
131
|
+
"test/defs/test_defs_fr.rb",
|
132
|
+
"test/defs/test_defs_gb.rb",
|
133
|
+
"test/defs/test_defs_ie.rb",
|
134
|
+
"test/defs/test_defs_is.rb",
|
135
|
+
"test/defs/test_defs_it.rb",
|
136
|
+
"test/defs/test_defs_jp.rb",
|
137
|
+
"test/defs/test_defs_mx.rb",
|
138
|
+
"test/defs/test_defs_nl.rb",
|
139
|
+
"test/defs/test_defs_no.rb",
|
140
|
+
"test/defs/test_defs_north_america.rb",
|
141
|
+
"test/defs/test_defs_nyse.rb",
|
142
|
+
"test/defs/test_defs_nz.rb",
|
143
|
+
"test/defs/test_defs_pt.rb",
|
144
|
+
"test/defs/test_defs_scandinavia.rb",
|
145
|
+
"test/defs/test_defs_se.rb",
|
146
|
+
"test/defs/test_defs_ups.rb",
|
147
|
+
"test/defs/test_defs_us.rb",
|
148
|
+
"test/defs/test_defs_za.rb",
|
149
|
+
"test/test_date.rb",
|
150
|
+
"test/test_helper.rb",
|
151
|
+
"test/test_holidays.rb",
|
152
|
+
"test/test_multiple_regions.rb"
|
143
153
|
]
|
144
154
|
|
145
155
|
if s.respond_to? :specification_version then
|