holiday_tools 0.0.4 → 0.0.5
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/Guardfile +1 -0
- data/lib/holiday_tools/version.rb +1 -1
- data/spec/holiday_tools_spec.rb +20 -1
- data/x +39 -0
- metadata +3 -2
data/Guardfile
CHANGED
data/spec/holiday_tools_spec.rb
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe HolidayTools do
|
4
|
-
it '
|
4
|
+
it 'should deliver the new years day for Austria' do
|
5
|
+
date = Date.new(2013, 01, 01)
|
6
|
+
filter = ['at']
|
7
|
+
holidays = HolidayTools::Locator.new(filter)
|
8
|
+
answer = holidays.show_holiday(date)
|
9
|
+
answer.size.should == 3
|
10
|
+
answer[0].should =~ /Tuesday/
|
11
|
+
answer[1].should =~ /Neujahrstag/
|
12
|
+
answer[2].should =~ /Austria/
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should deliver the whole year for all regions' do
|
16
|
+
date = Date.new(2013, 01, 01)
|
17
|
+
filter = []
|
18
|
+
holidays = HolidayTools::Locator.new(filter)
|
19
|
+
answer = holidays.show_year(date)
|
20
|
+
#puts answer[0]
|
21
|
+
answer.flatten!.size.should == 909
|
22
|
+
end
|
23
|
+
|
5
24
|
end
|
data/x
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
2013-01-01 (Tuesday)
|
2
|
+
Neujahrstag
|
3
|
+
Austria
|
4
|
+
2013-01-06 (Sunday)
|
5
|
+
Heilige Drei Könige
|
6
|
+
Austria
|
7
|
+
2013-04-01 (Monday)
|
8
|
+
Ostermontag
|
9
|
+
Austria
|
10
|
+
2013-05-01 (Wednesday)
|
11
|
+
Staatsfeiertag
|
12
|
+
Austria
|
13
|
+
2013-05-09 (Thursday)
|
14
|
+
Christi Himmelfahrt
|
15
|
+
Austria
|
16
|
+
2013-05-20 (Monday)
|
17
|
+
Pfingstmontag
|
18
|
+
Austria
|
19
|
+
2013-05-30 (Thursday)
|
20
|
+
Fronleichnam
|
21
|
+
Austria
|
22
|
+
2013-08-15 (Thursday)
|
23
|
+
Mariä Himmelfahrt
|
24
|
+
Austria
|
25
|
+
2013-10-26 (Saturday)
|
26
|
+
Nationalfeiertag
|
27
|
+
Austria
|
28
|
+
2013-11-01 (Friday)
|
29
|
+
Allerheiligen
|
30
|
+
Austria
|
31
|
+
2013-12-08 (Sunday)
|
32
|
+
Mariä Empfängnis
|
33
|
+
Austria
|
34
|
+
2013-12-25 (Wednesday)
|
35
|
+
1. Weihnachtstag
|
36
|
+
Austria
|
37
|
+
2013-12-26 (Thursday)
|
38
|
+
2. Weihnachtstag
|
39
|
+
Austria
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holiday_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: holidays
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- lib/holiday_tools/version.rb
|
67
67
|
- spec/holiday_tools_spec.rb
|
68
68
|
- spec/spec_helper.rb
|
69
|
+
- x
|
69
70
|
homepage: ''
|
70
71
|
licenses: []
|
71
72
|
post_install_message:
|