holiday_tools 0.0.5 → 0.0.6

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.
@@ -38,7 +38,7 @@ module HolidayTools
38
38
  # require "holidays/vz"
39
39
  require "holidays/za"
40
40
 
41
- def initialize( filter )
41
+ def initialize( filter=[] )
42
42
  @filter = filter
43
43
 
44
44
  # names of the regions/subregions used in the holidays gem
@@ -1,3 +1,3 @@
1
1
  module HolidayTools
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -14,8 +14,7 @@ describe HolidayTools do
14
14
 
15
15
  it 'should deliver the whole year for all regions' do
16
16
  date = Date.new(2013, 01, 01)
17
- filter = []
18
- holidays = HolidayTools::Locator.new(filter)
17
+ holidays = HolidayTools::Locator.new
19
18
  answer = holidays.show_year(date)
20
19
  #puts answer[0]
21
20
  answer.flatten!.size.should == 909
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.5
4
+ version: 0.0.6
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-03 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: holidays