holidays 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +77 -0
- data/Gemfile +2 -6
- data/{README.rdoc → README.md} +46 -39
- data/Rakefile +62 -0
- data/data/au.yaml +11 -1
- data/data/cl.yaml +92 -0
- data/data/de.yaml +24 -0
- data/data/dk.yaml +3 -1
- data/data/ecb_target.yaml +42 -0
- data/data/es.yaml +44 -16
- data/data/fr.yaml +15 -10
- data/data/gb.yaml +14 -1
- data/data/index.yaml +7 -1
- data/data/lt.yaml +88 -0
- data/data/nl.yaml +10 -10
- data/data/se.yaml +26 -3
- data/data/sg.yaml +55 -0
- data/data/si.yaml +84 -0
- data/data/vi.yaml +29 -0
- data/holidays.gemspec +17 -187
- data/lib/holidays.rb +24 -14
- data/lib/holidays/MANIFEST +7 -0
- data/lib/holidays/au.rb +9 -9
- data/lib/holidays/cl.rb +43 -0
- data/lib/holidays/de.rb +1 -1
- data/lib/holidays/dk.rb +2 -2
- data/lib/holidays/ecb_target.rb +34 -0
- data/lib/holidays/es.rb +27 -27
- data/lib/holidays/europe.rb +72 -44
- data/lib/holidays/fr.rb +2 -2
- data/lib/holidays/gb.rb +3 -2
- data/lib/holidays/lt.rb +41 -0
- data/lib/holidays/nl.rb +1 -1
- data/lib/holidays/scandinavia.rb +6 -2
- data/lib/holidays/se.rb +7 -3
- data/lib/holidays/sg.rb +35 -0
- data/lib/holidays/si.rb +42 -0
- data/lib/holidays/version.rb +3 -0
- data/lib/holidays/vi.rb +32 -0
- data/test/defs/test_defs_au.rb +3 -0
- data/test/defs/test_defs_cl.rb +39 -0
- data/test/defs/test_defs_de.rb +24 -0
- data/test/defs/test_defs_dk.rb +1 -0
- data/test/defs/test_defs_ecb_target.rb +23 -0
- data/test/defs/test_defs_es.rb +7 -2
- data/test/defs/test_defs_europe.rb +84 -9
- data/test/defs/test_defs_fr.rb +7 -3
- data/test/defs/test_defs_gb.rb +7 -0
- data/test/defs/test_defs_lt.rb +42 -0
- data/test/defs/test_defs_nl.rb +3 -3
- data/test/defs/test_defs_scandinavia.rb +10 -2
- data/test/defs/test_defs_se.rb +9 -2
- data/test/defs/test_defs_sg.rb +20 -0
- data/test/defs/test_defs_si.rb +36 -0
- data/test/defs/test_defs_vi.rb +18 -0
- data/test/test_all_regions.rb +17 -9
- metadata +123 -105
- data/.travis.yml +0 -15
- data/CHANGELOG.rdoc +0 -57
- data/rakefile.rb +0 -107
data/data/nl.yaml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Dutch holiday definitions for the Ruby Holiday gem.
|
2
2
|
#
|
3
|
-
# Updated:
|
3
|
+
# Updated: 2014-04-17.
|
4
4
|
# Sources:
|
5
5
|
# - http://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands
|
6
6
|
# - http://www.buyusa.gov/netherlands/en/dutch_holidays.html
|
7
|
-
---
|
7
|
+
---
|
8
8
|
months:
|
9
|
-
0:
|
9
|
+
0:
|
10
10
|
- name: Goede Vrijdag
|
11
11
|
regions: [nl]
|
12
12
|
function: easter(year)-2
|
@@ -25,15 +25,15 @@ months:
|
|
25
25
|
- name: Pinksteren
|
26
26
|
regions: [nl]
|
27
27
|
function: easter(year)+50
|
28
|
-
1:
|
28
|
+
1:
|
29
29
|
- name: Nieuwjaar
|
30
30
|
regions: [nl]
|
31
31
|
mday: 1
|
32
32
|
4:
|
33
|
-
- name:
|
33
|
+
- name: Koningsdag
|
34
34
|
regions: [nl]
|
35
|
-
mday:
|
36
|
-
5:
|
35
|
+
mday: 27
|
36
|
+
5:
|
37
37
|
- name: Dodenherdenking
|
38
38
|
regions: [nl]
|
39
39
|
mday: 4
|
@@ -52,11 +52,11 @@ months:
|
|
52
52
|
regions: [nl]
|
53
53
|
mday: 26
|
54
54
|
tests: |
|
55
|
-
{Date.civil(2008,1,1) => 'Nieuwjaar',
|
56
|
-
Date.civil(2008,3,21) => 'Goede Vrijdag',
|
55
|
+
{Date.civil(2008,1,1) => 'Nieuwjaar',
|
56
|
+
Date.civil(2008,3,21) => 'Goede Vrijdag',
|
57
57
|
Date.civil(2008,3,23) => 'Pasen',
|
58
58
|
Date.civil(2008,3,24) => 'Pasen',
|
59
|
-
Date.civil(2008,4,
|
59
|
+
Date.civil(2008,4,27) => 'Koningsdag',
|
60
60
|
Date.civil(2008,5,1) => 'Hemelvaartsdag', # Ascension, Easter+39
|
61
61
|
Date.civil(2008,5,5) => 'Bevrijdingsdag',
|
62
62
|
Date.civil(2008,5,11) => 'Pinksteren', # Pentecost, Easter+49
|
data/data/se.yaml
CHANGED
@@ -12,6 +12,10 @@ months:
|
|
12
12
|
- name: Långfredagen
|
13
13
|
regions: [se]
|
14
14
|
function: easter(year)-2
|
15
|
+
- name: Påskafton
|
16
|
+
regions: [se]
|
17
|
+
function: easter(year)-1
|
18
|
+
type: informal
|
15
19
|
- name: Påskdagen
|
16
20
|
regions: [se]
|
17
21
|
function: easter(year)
|
@@ -45,13 +49,25 @@ months:
|
|
45
49
|
- name: Midsommardagen
|
46
50
|
regions: [se]
|
47
51
|
function: se_midsommardagen(year)
|
48
|
-
|
52
|
+
- name: Midsommarafton
|
53
|
+
regions: [se]
|
54
|
+
function: se_midsommardagen(year)-1
|
55
|
+
type: informal
|
56
|
+
12:
|
57
|
+
- name: Julafton
|
58
|
+
regions: [se]
|
59
|
+
mday: 24
|
60
|
+
type: informal
|
49
61
|
- name: Juldagen
|
50
62
|
regions: [se]
|
51
63
|
mday: 25
|
52
64
|
- name: Annandag jul
|
53
65
|
regions: [se]
|
54
66
|
mday: 26
|
67
|
+
- name: Nyårsafton
|
68
|
+
regions: [se]
|
69
|
+
mday: 31
|
70
|
+
type: informal
|
55
71
|
methods:
|
56
72
|
se_midsommardagen: |
|
57
73
|
# Sweden: Mid-summer (Saturday between June 20–26)
|
@@ -70,7 +86,8 @@ methods:
|
|
70
86
|
tests: |
|
71
87
|
{Date.civil(2008,1,1) => 'Nyårsdagen',
|
72
88
|
Date.civil(2008,1,6) => 'Trettondedag jul',
|
73
|
-
Date.civil(2008,3,21) => 'Långfredagen',
|
89
|
+
Date.civil(2008,3,21) => 'Långfredagen',
|
90
|
+
Date.civil(2008,3,22) => 'Påskafton',
|
74
91
|
Date.civil(2008,3,23) => 'Påskdagen',
|
75
92
|
Date.civil(2008,3,24) => 'Annandag påsk',
|
76
93
|
Date.civil(2008,5,1) => 'Första maj',
|
@@ -79,13 +96,19 @@ tests: |
|
|
79
96
|
Date.civil(2008,6,6) => 'Nationaldagen',
|
80
97
|
Date.civil(2005,6,25) => 'Midsommardagen',
|
81
98
|
Date.civil(2006,6,24) => 'Midsommardagen',
|
99
|
+
Date.civil(2006,6,23) => 'Midsommarafton',
|
82
100
|
Date.civil(2007,6,23) => 'Midsommardagen',
|
101
|
+
Date.civil(2007,6,22) => 'Midsommarafton',
|
83
102
|
Date.civil(2008,6,21) => 'Midsommardagen',
|
103
|
+
Date.civil(2008,6,20) => 'Midsommarafton',
|
84
104
|
Date.civil(2005,11,5) => 'Alla helgons dag',
|
85
105
|
Date.civil(2006,11,4) => 'Alla helgons dag',
|
86
106
|
Date.civil(2007,11,3) => 'Alla helgons dag',
|
87
107
|
Date.civil(2008,11,1) => 'Alla helgons dag',
|
108
|
+
Date.civil(2008,12,24) => 'Julafton',
|
88
109
|
Date.civil(2008,12,25) => 'Juldagen',
|
89
|
-
Date.civil(2008,12,26) => 'Annandag jul'
|
110
|
+
Date.civil(2008,12,26) => 'Annandag jul',
|
111
|
+
Date.civil(2008,12,31) => 'Nyårsafton'
|
112
|
+
}.each do |date, name|
|
90
113
|
assert_equal name, (Holidays.on(date, :se, :informal)[0] || {})[:name]
|
91
114
|
end
|
data/data/sg.yaml
ADDED
@@ -0,0 +1,55 @@
|
|
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)-2
|
17
|
+
1:
|
18
|
+
- name: New Year's Day
|
19
|
+
regions: [sg]
|
20
|
+
mday: 1
|
21
|
+
observed: to_weekday_if_weekend
|
22
|
+
2:
|
23
|
+
- name: Valentine's Day
|
24
|
+
regions: [sg]
|
25
|
+
mday: 14
|
26
|
+
type: informal
|
27
|
+
- name: Total Defence Day
|
28
|
+
regions: [sg]
|
29
|
+
mday: 15
|
30
|
+
type: informal
|
31
|
+
5:
|
32
|
+
- name: Labour Day
|
33
|
+
regions: [sg]
|
34
|
+
mday: 1
|
35
|
+
8:
|
36
|
+
- name: National Day
|
37
|
+
regions: [sg]
|
38
|
+
mday: 9
|
39
|
+
observed: to_weekday_if_weekend
|
40
|
+
12:
|
41
|
+
- name: Christmas Day
|
42
|
+
regions: [sg]
|
43
|
+
mday: 25
|
44
|
+
observed: to_weekday_if_weekend
|
45
|
+
|
46
|
+
tests: |
|
47
|
+
{Date.civil(2014,1,1) => 'New Year\'s Day',
|
48
|
+
Date.civil(2014,2,14) => 'Valentine\'s Day',
|
49
|
+
Date.civil(2014,2,15) => 'Total Defence Day',
|
50
|
+
Date.civil(2014,4,18) => 'Good Friday',
|
51
|
+
Date.civil(2014,5,1) => 'Labour Day',
|
52
|
+
Date.civil(2014,8,9) => 'National Day',
|
53
|
+
Date.civil(2014,12,25) => 'Christmas Day'}.each do |date, name|
|
54
|
+
assert_equal name, (Holidays.on(date, :sg, :informal)[0] || {})[:name]
|
55
|
+
end
|
data/data/si.yaml
ADDED
@@ -0,0 +1,84 @@
|
|
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)+1
|
15
|
+
- name: binkošti
|
16
|
+
regions: [si]
|
17
|
+
function: easter(year)+49
|
18
|
+
1:
|
19
|
+
- name: novo leto
|
20
|
+
regions: [si]
|
21
|
+
mday: 1
|
22
|
+
2:
|
23
|
+
- name: Prešernov dan, slovenski kulturni praznik
|
24
|
+
regions: [si]
|
25
|
+
mday: 8
|
26
|
+
4:
|
27
|
+
- name: dan upora proti okupatorju
|
28
|
+
regions: [si]
|
29
|
+
mday: 27
|
30
|
+
5:
|
31
|
+
- name: praznik dela
|
32
|
+
regions: [si]
|
33
|
+
mday: 1
|
34
|
+
- name: praznik dela
|
35
|
+
regions: [si]
|
36
|
+
mday: 2
|
37
|
+
6:
|
38
|
+
- name: dan državnosti
|
39
|
+
regions: [si]
|
40
|
+
mday: 25
|
41
|
+
8:
|
42
|
+
- name: Marijino vnebovzetje
|
43
|
+
regions: [si]
|
44
|
+
mday: 15
|
45
|
+
10:
|
46
|
+
- name: dan reformacije
|
47
|
+
regions: [si]
|
48
|
+
mday: 31
|
49
|
+
11:
|
50
|
+
- name: dan spomina na mrtve
|
51
|
+
regions: [si]
|
52
|
+
mday: 1
|
53
|
+
12:
|
54
|
+
- name: božič
|
55
|
+
regions: [si]
|
56
|
+
mday: 25
|
57
|
+
- name: dan samostojnosti in enotnosti
|
58
|
+
regions: [si]
|
59
|
+
mday: 26
|
60
|
+
tests: |
|
61
|
+
assert_equal 'velikonočna nedelja', Date.civil(2015,4,5).holidays(:si)[0][:name]
|
62
|
+
assert_equal 'velikonočna nedelja', Date.civil(2016,3,27).holidays(:si)[0][:name]
|
63
|
+
|
64
|
+
assert_equal 'velikonočni ponedeljek', Date.civil(2015,4,6).holidays(:si)[0][:name]
|
65
|
+
assert_equal 'velikonočni ponedeljek', Date.civil(2016,3,28).holidays(:si)[0][:name]
|
66
|
+
|
67
|
+
assert_equal 'binkošti', Date.civil(2015,5,24).holidays(:si)[0][:name]
|
68
|
+
assert_equal 'binkošti', Date.civil(2016,5,15).holidays(:si)[0][:name]
|
69
|
+
|
70
|
+
(2014..2020).each do |year|
|
71
|
+
{Date.civil(year,1,1) => 'novo leto',
|
72
|
+
Date.civil(year,2,8) => 'Prešernov dan, slovenski kulturni praznik',
|
73
|
+
Date.civil(year,4,27) => 'dan upora proti okupatorju',
|
74
|
+
Date.civil(year,5,1) => 'praznik dela',
|
75
|
+
Date.civil(year,5,2) => 'praznik dela',
|
76
|
+
Date.civil(year,6,25) => 'dan državnosti',
|
77
|
+
Date.civil(year,8,15) => 'Marijino vnebovzetje',
|
78
|
+
Date.civil(year,10,31) => 'dan reformacije',
|
79
|
+
Date.civil(year,11,1) => 'dan spomina na mrtve',
|
80
|
+
Date.civil(year,12,25) => 'božič',
|
81
|
+
Date.civil(2008,12,26) => 'dan samostojnosti in enotnosti'}.each do |date, name|
|
82
|
+
assert_equal name, (Holidays.on(date, :si, :informal)[0] || {})[:name]
|
83
|
+
end
|
84
|
+
end
|
data/data/vi.yaml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Vietnam holiday definitions for the Ruby Holiday gem.
|
2
|
+
#
|
3
|
+
# Updated: 2014-07-17.
|
4
|
+
# Source: http://en.wikipedia.org/wiki/Public_holidays_in_Vietnam
|
5
|
+
---
|
6
|
+
months:
|
7
|
+
1:
|
8
|
+
- name: New Year
|
9
|
+
regions: [vi]
|
10
|
+
mday: 1
|
11
|
+
4:
|
12
|
+
- name: Liberation Day
|
13
|
+
regions: [vi]
|
14
|
+
mday: 30
|
15
|
+
5:
|
16
|
+
- name: International Workers' Day
|
17
|
+
regions: [vi]
|
18
|
+
mday: 1
|
19
|
+
9:
|
20
|
+
- name: National Day
|
21
|
+
regions: [vi]
|
22
|
+
mday: 2
|
23
|
+
tests: |
|
24
|
+
{Date.civil(2014,1,1) => 'New Year',
|
25
|
+
Date.civil(2014,4,30) => 'Liberation Day',
|
26
|
+
Date.civil(2014,5,1) => "International Workers' Day",
|
27
|
+
Date.civil(2014,9,2) => 'National Day'}.each do |date, name|
|
28
|
+
assert_equal name, (Holidays.on(date, :vi)[0] || {})[:name]
|
29
|
+
end
|
data/holidays.gemspec
CHANGED
@@ -1,191 +1,21 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in rakefile.rb, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
4
|
|
6
|
-
|
7
|
-
s.name = %q{holidays}
|
8
|
-
s.version = "1.0.6"
|
5
|
+
require 'holidays/version'
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
]
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"README.rdoc",
|
25
|
-
"REFERENCES",
|
26
|
-
"data/SYNTAX.rdoc",
|
27
|
-
"data/ar.yaml",
|
28
|
-
"data/at.yaml",
|
29
|
-
"data/au.yaml",
|
30
|
-
"data/be.yaml",
|
31
|
-
"data/br.yaml",
|
32
|
-
"data/build_defs.rb",
|
33
|
-
"data/ca.yaml",
|
34
|
-
"data/ch.yaml",
|
35
|
-
"data/cz.yaml",
|
36
|
-
"data/de.yaml",
|
37
|
-
"data/dk.yaml",
|
38
|
-
"data/el.yaml",
|
39
|
-
"data/es.yaml",
|
40
|
-
"data/federal_reserve.yaml",
|
41
|
-
"data/fi.yaml",
|
42
|
-
"data/fr.yaml",
|
43
|
-
"data/gb.yaml",
|
44
|
-
"data/hr.yaml",
|
45
|
-
"data/hu.yaml",
|
46
|
-
"data/ie.yaml",
|
47
|
-
"data/index.yaml",
|
48
|
-
"data/is.yaml",
|
49
|
-
"data/it.yaml",
|
50
|
-
"data/jp.yaml",
|
51
|
-
"data/li.yaml",
|
52
|
-
"data/ma.yaml",
|
53
|
-
"data/mx.yaml",
|
54
|
-
"data/nerc.yaml",
|
55
|
-
"data/nl.yaml",
|
56
|
-
"data/no.yaml",
|
57
|
-
"data/north_america_informal.yaml",
|
58
|
-
"data/nyse.yaml",
|
59
|
-
"data/nz.yaml",
|
60
|
-
"data/pl.yaml",
|
61
|
-
"data/pt.yaml",
|
62
|
-
"data/ro.yaml",
|
63
|
-
"data/se.yaml",
|
64
|
-
"data/sk.yaml",
|
65
|
-
"data/united_nations.yaml",
|
66
|
-
"data/ups.yaml",
|
67
|
-
"data/us.yaml",
|
68
|
-
"data/ve.yaml",
|
69
|
-
"data/za.yaml",
|
70
|
-
"holidays.gemspec",
|
71
|
-
"lib/holidays.rb",
|
72
|
-
"lib/holidays/MANIFEST",
|
73
|
-
"lib/holidays/ar.rb",
|
74
|
-
"lib/holidays/at.rb",
|
75
|
-
"lib/holidays/au.rb",
|
76
|
-
"lib/holidays/be.rb",
|
77
|
-
"lib/holidays/br.rb",
|
78
|
-
"lib/holidays/ca.rb",
|
79
|
-
"lib/holidays/ch.rb",
|
80
|
-
"lib/holidays/cz.rb",
|
81
|
-
"lib/holidays/de.rb",
|
82
|
-
"lib/holidays/dk.rb",
|
83
|
-
"lib/holidays/el.rb",
|
84
|
-
"lib/holidays/es.rb",
|
85
|
-
"lib/holidays/europe.rb",
|
86
|
-
"lib/holidays/federal_reserve.rb",
|
87
|
-
"lib/holidays/fi.rb",
|
88
|
-
"lib/holidays/fr.rb",
|
89
|
-
"lib/holidays/gb.rb",
|
90
|
-
"lib/holidays/hr.rb",
|
91
|
-
"lib/holidays/hu.rb",
|
92
|
-
"lib/holidays/ie.rb",
|
93
|
-
"lib/holidays/is.rb",
|
94
|
-
"lib/holidays/it.rb",
|
95
|
-
"lib/holidays/jp.rb",
|
96
|
-
"lib/holidays/li.rb",
|
97
|
-
"lib/holidays/ma.rb",
|
98
|
-
"lib/holidays/mx.rb",
|
99
|
-
"lib/holidays/nerc.rb",
|
100
|
-
"lib/holidays/nl.rb",
|
101
|
-
"lib/holidays/no.rb",
|
102
|
-
"lib/holidays/north_america.rb",
|
103
|
-
"lib/holidays/nyse.rb",
|
104
|
-
"lib/holidays/nz.rb",
|
105
|
-
"lib/holidays/pl.rb",
|
106
|
-
"lib/holidays/pt.rb",
|
107
|
-
"lib/holidays/ro.rb",
|
108
|
-
"lib/holidays/scandinavia.rb",
|
109
|
-
"lib/holidays/se.rb",
|
110
|
-
"lib/holidays/sk.rb",
|
111
|
-
"lib/holidays/united_nations.rb",
|
112
|
-
"lib/holidays/ups.rb",
|
113
|
-
"lib/holidays/us.rb",
|
114
|
-
"lib/holidays/ve.rb",
|
115
|
-
"lib/holidays/za.rb",
|
116
|
-
"rakefile.rb",
|
117
|
-
"test/defs/test_defs_ar.rb",
|
118
|
-
"test/defs/test_defs_at.rb",
|
119
|
-
"test/defs/test_defs_au.rb",
|
120
|
-
"test/defs/test_defs_be.rb",
|
121
|
-
"test/defs/test_defs_br.rb",
|
122
|
-
"test/defs/test_defs_ca.rb",
|
123
|
-
"test/defs/test_defs_ch.rb",
|
124
|
-
"test/defs/test_defs_cz.rb",
|
125
|
-
"test/defs/test_defs_de.rb",
|
126
|
-
"test/defs/test_defs_dk.rb",
|
127
|
-
"test/defs/test_defs_el.rb",
|
128
|
-
"test/defs/test_defs_es.rb",
|
129
|
-
"test/defs/test_defs_europe.rb",
|
130
|
-
"test/defs/test_defs_federal_reserve.rb",
|
131
|
-
"test/defs/test_defs_fi.rb",
|
132
|
-
"test/defs/test_defs_fr.rb",
|
133
|
-
"test/defs/test_defs_gb.rb",
|
134
|
-
"test/defs/test_defs_hr.rb",
|
135
|
-
"test/defs/test_defs_hu.rb",
|
136
|
-
"test/defs/test_defs_ie.rb",
|
137
|
-
"test/defs/test_defs_is.rb",
|
138
|
-
"test/defs/test_defs_it.rb",
|
139
|
-
"test/defs/test_defs_jp.rb",
|
140
|
-
"test/defs/test_defs_li.rb",
|
141
|
-
"test/defs/test_defs_ma.rb",
|
142
|
-
"test/defs/test_defs_mx.rb",
|
143
|
-
"test/defs/test_defs_nerc.rb",
|
144
|
-
"test/defs/test_defs_nl.rb",
|
145
|
-
"test/defs/test_defs_no.rb",
|
146
|
-
"test/defs/test_defs_north_america.rb",
|
147
|
-
"test/defs/test_defs_nyse.rb",
|
148
|
-
"test/defs/test_defs_nz.rb",
|
149
|
-
"test/defs/test_defs_pl.rb",
|
150
|
-
"test/defs/test_defs_pt.rb",
|
151
|
-
"test/defs/test_defs_ro.rb",
|
152
|
-
"test/defs/test_defs_scandinavia.rb",
|
153
|
-
"test/defs/test_defs_se.rb",
|
154
|
-
"test/defs/test_defs_sk.rb",
|
155
|
-
"test/defs/test_defs_ups.rb",
|
156
|
-
"test/defs/test_defs_us.rb",
|
157
|
-
"test/defs/test_defs_ve.rb",
|
158
|
-
"test/defs/test_defs_za.rb",
|
159
|
-
"test/test_all_regions.rb",
|
160
|
-
"test/test_date.rb",
|
161
|
-
"test/test_helper.rb",
|
162
|
-
"test/test_holidays.rb",
|
163
|
-
"test/test_multiple_regions.rb"
|
164
|
-
]
|
165
|
-
s.homepage = %q{https://github.com/alexdunae/holidays}
|
166
|
-
s.require_paths = ["lib"]
|
167
|
-
s.rubygems_version = %q{1.6.2}
|
168
|
-
s.summary = %q{A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!}
|
169
|
-
|
170
|
-
if s.respond_to? :specification_version then
|
171
|
-
s.specification_version = 3
|
172
|
-
|
173
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
174
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
175
|
-
s.add_development_dependency(%q<rdoc>, [">= 2.4.2"])
|
176
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
177
|
-
s.add_development_dependency(%q<rdoc>, [">= 2.4.2"])
|
178
|
-
else
|
179
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
180
|
-
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
|
181
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
182
|
-
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
|
183
|
-
end
|
184
|
-
else
|
185
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
186
|
-
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
|
187
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
188
|
-
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
|
189
|
-
end
|
7
|
+
Gem::Specification.new do |gem|
|
8
|
+
gem.name = 'holidays'
|
9
|
+
gem.version = Holidays::VERSION
|
10
|
+
gem.authors = ['Alex Dunae']
|
11
|
+
gem.email = ['code@dunae.ca']
|
12
|
+
gem.homepage = 'https://github.com/alexdunae/holidays'
|
13
|
+
gem.description = %q(A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!)
|
14
|
+
gem.summary = %q(A collection of Ruby methods to deal with statutory and other holidays.)
|
15
|
+
gem.files = `git ls-files`.split("\n") - ['.gitignore', '.travis.yml']
|
16
|
+
gem.test_files = gem.files.grep(/^test/)
|
17
|
+
gem.require_paths = ['lib']
|
18
|
+
gem.licenses = ['MIT']
|
19
|
+
gem.add_development_dependency 'bundler'
|
20
|
+
gem.add_development_dependency 'rake'
|
190
21
|
end
|
191
|
-
|