holidays 0.9.3 → 1.0.0

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.
Files changed (86) hide show
  1. data/.gitignore +3 -0
  2. data/CHANGELOG +7 -0
  3. data/{README → README.rdoc} +36 -39
  4. data/data/SYNTAX +1 -1
  5. data/data/au.yaml +110 -105
  6. data/data/build_defs.rb +4 -3
  7. data/data/ca.yaml +140 -140
  8. data/data/cz.yaml +68 -0
  9. data/data/de.yaml +12 -14
  10. data/data/dk.yaml +1 -1
  11. data/data/es.yaml +1 -1
  12. data/data/fr.yaml +1 -1
  13. data/data/gb.yaml +1 -1
  14. data/data/ie.yaml +1 -1
  15. data/data/index.yaml +7 -2
  16. data/data/is.yaml +1 -1
  17. data/data/it.yaml +1 -1
  18. data/data/mx.yaml +1 -1
  19. data/data/nl.yaml +1 -1
  20. data/data/no.yaml +82 -0
  21. data/data/nyse.yaml +1 -1
  22. data/data/nz.yaml +141 -0
  23. data/data/pt.yaml +1 -1
  24. data/data/se.yaml +1 -1
  25. data/data/united_nations.yaml +188 -188
  26. data/data/ups.yaml +55 -55
  27. data/data/us.yaml +80 -80
  28. data/data/za.yaml +1 -1
  29. data/holidays.gemspec +155 -0
  30. data/lib/holidays.rb +424 -403
  31. data/lib/holidays/MANIFEST +28 -25
  32. data/lib/holidays/au.rb +43 -41
  33. data/lib/holidays/ca.rb +69 -68
  34. data/lib/holidays/cz.rb +36 -0
  35. data/lib/holidays/de.rb +51 -52
  36. data/lib/holidays/dk.rb +48 -47
  37. data/lib/holidays/es.rb +53 -52
  38. data/lib/holidays/europe.rb +236 -215
  39. data/lib/holidays/fr.rb +37 -36
  40. data/lib/holidays/gb.rb +41 -40
  41. data/lib/holidays/ie.rb +33 -32
  42. data/lib/holidays/is.rb +62 -61
  43. data/lib/holidays/it.rb +36 -35
  44. data/lib/holidays/mx.rb +52 -51
  45. data/lib/holidays/nl.rb +37 -36
  46. data/lib/holidays/no.rb +40 -0
  47. data/lib/holidays/north_america.rb +108 -107
  48. data/lib/holidays/nyse.rb +33 -32
  49. data/lib/holidays/nz.rb +69 -0
  50. data/lib/holidays/pt.rb +38 -52
  51. data/lib/holidays/scandinavia.rb +124 -114
  52. data/lib/holidays/se.rb +53 -52
  53. data/lib/holidays/united_nations.rb +25 -24
  54. data/lib/holidays/ups.rb +32 -31
  55. data/lib/holidays/us.rb +49 -48
  56. data/lib/holidays/za.rb +36 -35
  57. data/rakefile.rb +105 -113
  58. data/test/defs/test_defs_au.rb +36 -36
  59. data/test/defs/test_defs_ca.rb +29 -29
  60. data/test/defs/test_defs_cz.rb +26 -0
  61. data/test/defs/test_defs_de.rb +51 -46
  62. data/test/defs/test_defs_dk.rb +30 -30
  63. data/test/defs/test_defs_es.rb +57 -57
  64. data/test/defs/test_defs_europe.rb +280 -240
  65. data/test/defs/test_defs_fr.rb +26 -26
  66. data/test/defs/test_defs_gb.rb +36 -36
  67. data/test/defs/test_defs_ie.rb +21 -21
  68. data/test/defs/test_defs_is.rb +33 -33
  69. data/test/defs/test_defs_it.rb +25 -25
  70. data/test/defs/test_defs_mx.rb +22 -22
  71. data/test/defs/test_defs_nl.rb +24 -24
  72. data/test/defs/test_defs_no.rb +29 -0
  73. data/test/defs/test_defs_north_america.rb +54 -54
  74. data/test/defs/test_defs_nyse.rb +22 -22
  75. data/test/defs/test_defs_nz.rb +22 -0
  76. data/test/defs/test_defs_pt.rb +32 -32
  77. data/test/defs/test_defs_scandinavia.rb +94 -75
  78. data/test/defs/test_defs_se.rb +32 -32
  79. data/test/defs/test_defs_ups.rb +21 -21
  80. data/test/defs/test_defs_us.rb +23 -23
  81. data/test/defs/test_defs_za.rb +25 -25
  82. data/test/test_date.rb +123 -0
  83. data/test/test_helper.rb +22 -0
  84. data/test/test_holidays.rb +128 -0
  85. data/test/test_multiple_regions.rb +24 -0
  86. metadata +126 -73
@@ -1,25 +1,25 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
2
- require 'holidays/za'
3
-
4
- # This file is generated by the Ruby Holiday gem.
5
- #
6
- # Definitions loaded: data/za.yaml
7
- class ZaDefinitionTests < Test::Unit::TestCase # :nodoc:
8
-
9
- def test_za
10
- {Date.civil(2007,1,1) => 'New Year\'s Day',
11
- Date.civil(2007,3,21) => 'Human Rights Day',
12
- Date.civil(2007,4,6) => 'Good Friday',
13
- Date.civil(2007,4,9) => 'Family Day',
14
- Date.civil(2007,4,27) => 'Freedom Day',
15
- Date.civil(2007,5,1) => 'Workers Day',
16
- Date.civil(2007,6,16) => 'Youth Day',
17
- Date.civil(2007,8,9) => 'National Women\'s Day',
18
- Date.civil(2007,9,24) => 'Heritage Day',
19
- Date.civil(2007,12,16) => 'Day of Reconciliation',
20
- Date.civil(2007,12,25) => 'Christmas Day',
21
- Date.civil(2007,12,26) => 'Day of Goodwill'}.each do |date, name|
22
- assert_equal name, Holidays.on(date, :za, :informal)[0][:name]
23
- end
24
- end
25
- end
1
+ # encoding: utf-8
2
+ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
3
+
4
+ # This file is generated by the Ruby Holiday gem.
5
+ #
6
+ # Definitions loaded: data/za.yaml
7
+ class ZaDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_za
10
+ {Date.civil(2007,1,1) => 'New Year\'s Day',
11
+ Date.civil(2007,3,21) => 'Human Rights Day',
12
+ Date.civil(2007,4,6) => 'Good Friday',
13
+ Date.civil(2007,4,9) => 'Family Day',
14
+ Date.civil(2007,4,27) => 'Freedom Day',
15
+ Date.civil(2007,5,1) => 'Workers Day',
16
+ Date.civil(2007,6,16) => 'Youth Day',
17
+ Date.civil(2007,8,9) => 'National Women\'s Day',
18
+ Date.civil(2007,9,24) => 'Heritage Day',
19
+ Date.civil(2007,12,16) => 'Day of Reconciliation',
20
+ Date.civil(2007,12,25) => 'Christmas Day',
21
+ Date.civil(2007,12,26) => 'Day of Goodwill'}.each do |date, name|
22
+ assert_equal name, (Holidays.on(date, :za, :informal)[0] || {})[:name]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,123 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/test_helper'
2
+
3
+ class DateTests < Test::Unit::TestCase
4
+ def setup
5
+ @date = Date.civil(2008,1,1)
6
+ end
7
+
8
+ def test_extending_date_class
9
+ assert @date.respond_to?('holidays')
10
+ assert @date.respond_to?('holiday?')
11
+ end
12
+
13
+ def test_extending_datetime_class
14
+ dt = DateTime.civil(2008,1,1)
15
+ assert dt.respond_to?('holidays')
16
+ assert dt.respond_to?('holiday?')
17
+ end
18
+
19
+ def test_calculating_mdays
20
+ # US Memorial day
21
+ assert_equal 29, Date.calculate_mday(2006, 5, :last, 1)
22
+ assert_equal 28, Date.calculate_mday(2007, 5, :last, 1)
23
+ assert_equal 26, Date.calculate_mday(2008, 5, :last, 1)
24
+ assert_equal 25, Date.calculate_mday(2009, 5, :last, 1)
25
+ assert_equal 31, Date.calculate_mday(2010, 5, :last, 1)
26
+ assert_equal 30, Date.calculate_mday(2011, 5, :last, 1)
27
+
28
+ # Labour day
29
+ assert_equal 3, Date.calculate_mday(2007, 9, :first, 1)
30
+ assert_equal 1, Date.calculate_mday(2008, 9, :first, :monday)
31
+ assert_equal 7, Date.calculate_mday(2009, 9, :first, 1)
32
+ assert_equal 5, Date.calculate_mday(2011, 9, :first, 1)
33
+ assert_equal 5, Date.calculate_mday(2050, 9, :first, 1)
34
+ assert_equal 4, Date.calculate_mday(2051, 9, :first, 1)
35
+
36
+ # Canadian thanksgiving
37
+ assert_equal 8, Date.calculate_mday(2007, 10, :second, 1)
38
+ assert_equal 13, Date.calculate_mday(2008, 10, :second, :monday)
39
+ assert_equal 12, Date.calculate_mday(2009, 10, :second, 1)
40
+ assert_equal 11, Date.calculate_mday(2010, 10, :second, 1)
41
+
42
+ # Misc
43
+ assert_equal 21, Date.calculate_mday(2008, 1, :third, 1)
44
+ assert_equal 1, Date.calculate_mday(2007, 1, :first, 1)
45
+ assert_equal 2, Date.calculate_mday(2007, 3, :first, :friday)
46
+ assert_equal 30, Date.calculate_mday(2012, 1, :last, 1)
47
+ assert_equal 29, Date.calculate_mday(2016, 2, :last, 1)
48
+
49
+ # From end of month
50
+ assert_equal 26, Date.calculate_mday(2009, 8, -1, :wednesday)
51
+ assert_equal 19, Date.calculate_mday(2009, 8, -2, :wednesday)
52
+ assert_equal 12, Date.calculate_mday(2009, 8, -3, :wednesday)
53
+
54
+ assert_equal 13, Date.calculate_mday(2008, 8, -3, :wednesday)
55
+ assert_equal 12, Date.calculate_mday(2009, 8, -3, :wednesday)
56
+ assert_equal 11, Date.calculate_mday(2010, 8, -3, :wednesday)
57
+ assert_equal 17, Date.calculate_mday(2011, 8, -3, :wednesday)
58
+ assert_equal 15, Date.calculate_mday(2012, 8, -3, :wednesday)
59
+ assert_equal 14, Date.calculate_mday(2013, 8, -3, :wednesday)
60
+ end
61
+
62
+ def test_mday_allows_integers_or_symbols
63
+ assert_nothing_raised do
64
+ Date.calculate_mday(2008, 1, 1, 1)
65
+ end
66
+
67
+ assert_nothing_raised do
68
+ Date.calculate_mday(2008, 1, -1, 1)
69
+ end
70
+
71
+ assert_nothing_raised do
72
+ Date.calculate_mday(2008, 1, :last, 1)
73
+ end
74
+ end
75
+
76
+ def test_mday_requires_valid_week
77
+ assert_raises ArgumentError do
78
+ Date.calculate_mday(2008, 1, :none, 1)
79
+ end
80
+
81
+ assert_raises ArgumentError do
82
+ Date.calculate_mday(2008, 1, nil, 1)
83
+ end
84
+
85
+ assert_raises ArgumentError do
86
+ Date.calculate_mday(2008, 1, 0, 1)
87
+ end
88
+ end
89
+
90
+ def test_mday_requires_valid_day
91
+ assert_raises ArgumentError do
92
+ Date.calculate_mday(2008, 1, 1, :october)
93
+ end
94
+
95
+ assert_raises ArgumentError do
96
+ Date.calculate_mday(2008, 1, 1, nil)
97
+ end
98
+
99
+ assert_raises ArgumentError do
100
+ Date.calculate_mday(2008, 1, 1, 7)
101
+ end
102
+ end
103
+
104
+ def test_date_holiday?
105
+ assert Date.civil(2008,1,1).holiday?('ca')
106
+ assert Date.today.holiday?('test')
107
+ end
108
+
109
+ def test_datetime_holiday?
110
+ # in situations with activesupport
111
+ assert DateTime.now.to_date.holiday?('test') if DateTime.now.respond_to?(:to_date)
112
+ assert DateTime.now.holiday?('test')
113
+ end
114
+
115
+ # ensure that dates are compared in the same timezone
116
+ def test_datetime_offset_holiday?
117
+ dt = DateTime.now.new_offset(Rational(23,24))
118
+ assert dt.holiday?('test'), dt.inspect
119
+
120
+ dt = DateTime.now.new_offset(Rational(-23,24))
121
+ assert dt.holiday?('test'), dt.inspect
122
+ end
123
+ end
@@ -0,0 +1,22 @@
1
+ $:.unshift(File.expand_path(File.dirname(__FILE__) + '../../lib/'))
2
+
3
+ $KCODE = 'u' if RUBY_VERSION =~ /^1\.8/
4
+
5
+ require 'rubygems'
6
+ require 'test/unit'
7
+ require 'date'
8
+ require 'holidays'
9
+ require 'holidays/ca'
10
+
11
+ module Holidays
12
+ # Test region used for generating a holiday on Date.today
13
+ module Test # :nodoc:
14
+ DEFINED_REGIONS = [:test]
15
+
16
+ HOLIDAYS_BY_MONTH = {
17
+ Date.today.mon => [{:mday => Date.today.mday, :name => "Test Holiday", :regions => [:test]}]
18
+ }
19
+ end
20
+ end
21
+
22
+ Holidays.merge_defs(Holidays::Test::DEFINED_REGIONS, Holidays::Test::HOLIDAYS_BY_MONTH)
@@ -0,0 +1,128 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/test_helper'
2
+
3
+ require 'holidays/ca'
4
+
5
+ # Re-include CA defs via holidays/north_america to ensure that individual
6
+ # defs aren't duplicated.
7
+ require 'holidays/north_america'
8
+
9
+ class HolidaysTests < Test::Unit::TestCase
10
+ def setup
11
+ @date = Date.civil(2008,1,1)
12
+ end
13
+
14
+ def test_on
15
+ h = Holidays.on(Date.civil(2008,9,1), :ca)
16
+ assert_equal 'Labour Day', h[0][:name]
17
+
18
+ holidays = Holidays.on(Date.civil(2008,7,4), :ca)
19
+ assert_equal 0, holidays.length
20
+ end
21
+
22
+ def test_between
23
+ holidays = Holidays.between(Date.civil(2008,7,1), Date.civil(2008,7,1), :ca)
24
+ assert_equal 1, holidays.length
25
+
26
+ holidays = Holidays.between(Date.civil(2008,7,1), Date.civil(2008,7,31), :ca)
27
+ assert_equal 1, holidays.length
28
+
29
+ holidays = Holidays.between(Date.civil(2008,7,2), Date.civil(2008,7,31), :ca)
30
+ assert_equal 0, holidays.length
31
+ end
32
+
33
+ def test_requires_valid_regions
34
+ assert_raises Holidays::UnknownRegionError do
35
+ Holidays.on(Date.civil(2008,1,1), :xx)
36
+ end
37
+
38
+ assert_raises Holidays::UnknownRegionError do
39
+ Holidays.on(Date.civil(2008,1,1), [:ca,:xx])
40
+ end
41
+
42
+ assert_raises Holidays::UnknownRegionError do
43
+ Holidays.between(Date.civil(2008,1,1), Date.civil(2008,12,31), [:ca,:xx])
44
+ end
45
+ end
46
+
47
+ def test_region_params
48
+ holidays = Holidays.on(@date, :ca)
49
+ assert_equal 1, holidays.length
50
+
51
+ holidays = Holidays.on(@date, [:ca_bc,:ca])
52
+ assert_equal 1, holidays.length
53
+ end
54
+
55
+ def test_observed_dates
56
+ # Should fall on Tuesday the 1st
57
+ assert_equal 1, Holidays.on(Date.civil(2008,7,1), :ca, :observed).length
58
+
59
+ # Should fall on Monday the 2nd
60
+ assert_equal 1, Holidays.on(Date.civil(2007,7,2), :ca, :observed).length
61
+ end
62
+
63
+ def test_any_region
64
+ # Should return Victoria Day.
65
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31), :ca)
66
+ assert_equal 1, holidays.length
67
+
68
+ # Should return Victoria Day and National Patriotes Day.
69
+ #
70
+ # Should be 2 in the CA region but other regional files are loaded during the
71
+ # unit tests add to the :any count.
72
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31), [:any])
73
+ assert holidays.length >= 2
74
+
75
+ # Test blank region
76
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31))
77
+ assert holidays.length >= 3
78
+ end
79
+
80
+ def test_sub_regions
81
+ # Should return Victoria Day.
82
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31), :ca)
83
+ assert_equal 1, holidays.length
84
+
85
+ # Should return Victoria Da and National Patriotes Day.
86
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31), :ca_qc)
87
+ assert_equal 2, holidays.length
88
+
89
+ # Should return Victoria Day and National Patriotes Day.
90
+ holidays = Holidays.between(Date.civil(2008,5,1), Date.civil(2008,5,31), :ca_)
91
+ assert_equal 2, holidays.length
92
+ end
93
+
94
+ def test_easter_sunday
95
+ assert_equal '1800-04-13', Holidays.easter(1800).to_s
96
+ assert_equal '1899-04-02', Holidays.easter(1899).to_s
97
+ assert_equal '1900-04-15', Holidays.easter(1900).to_s
98
+ assert_equal '1999-04-04', Holidays.easter(1999).to_s
99
+ assert_equal '2000-04-23', Holidays.easter(2000).to_s
100
+ assert_equal '2025-04-20', Holidays.easter(2025).to_s
101
+ assert_equal '2035-03-25', Holidays.easter(2035).to_s
102
+ assert_equal '2067-04-03', Holidays.easter(2067).to_s
103
+ assert_equal '2099-04-12', Holidays.easter(2099).to_s
104
+ end
105
+
106
+ def test_easter_lambda
107
+ [Date.civil(1800,4,11), Date.civil(1899,3,31), Date.civil(1900,4,13),
108
+ Date.civil(2008,3,21), Date.civil(2035,3,23)].each do |date|
109
+ assert_equal 'Good Friday', Holidays.on(date, :ca)[0][:name]
110
+ end
111
+
112
+ [Date.civil(1800,4,14), Date.civil(1899,4,3), Date.civil(1900,4,16),
113
+ Date.civil(2008,3,24), Date.civil(2035,3,26)].each do |date|
114
+ assert_equal 'Easter Monday', Holidays.on(date, :ca_qc, :informal)[0][:name]
115
+ end
116
+ end
117
+
118
+ def test_sorting
119
+ (1..10).each{|year|
120
+ (1..12).each{|month|
121
+ holidays = Holidays.between(Date.civil(year, month, 1), Date.civil(year, month, 28), :gb_)
122
+ holidays.each_with_index{|holiday, index|
123
+ assert holiday[:date] >= holidays[index - 1][:date] if index > 0
124
+ }
125
+ }
126
+ }
127
+ end
128
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/test_helper'
2
+ require 'holidays/gb'
3
+ require 'holidays/ie'
4
+
5
+ class MultipleRegionsTests < Test::Unit::TestCase
6
+ def setup
7
+ @date = Date.civil(2008,1,1)
8
+ end
9
+
10
+ def test_defining_holidays
11
+ h = Holidays.on(Date.civil(2008,12,26), :ie)
12
+ assert_equal 'St. Stephen\'s Day', h[0][:name]
13
+
14
+ h = Holidays.on(Date.civil(2008,5,9), :gb_)
15
+ assert_equal 'Liberation Day', (h[0] || {})[:name]
16
+
17
+
18
+ h = Holidays.on(Date.civil(2008,5,9), :je)
19
+ assert_equal 'Liberation Day', h[0][:name]
20
+
21
+ h = Holidays.on(Date.civil(2008,5,9), :gb)
22
+ assert h.empty?
23
+ end
24
+ end
metadata CHANGED
@@ -1,62 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: holidays
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.9.3
7
- date: 2008-11-19 00:00:00 -08:00
8
- summary: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
9
- require_paths:
10
- - lib
11
- email:
12
- homepage: http://code.dunae.ca/holidays
13
- rubyforge_project:
14
- description: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
25
10
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
11
  authors:
30
12
  - Alex Dunae
13
+ - Rowan Crawford
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-12 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
23
+ email: code@dunae.ca
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - LICENSE
30
+ - README.rdoc
31
31
  files:
32
- - lib/holidays
33
- - lib/holidays/au.rb
34
- - lib/holidays/ca.rb
35
- - lib/holidays/de.rb
36
- - lib/holidays/dk.rb
37
- - lib/holidays/es.rb
38
- - lib/holidays/europe.rb
39
- - lib/holidays/fr.rb
40
- - lib/holidays/gb.rb
41
- - lib/holidays/ie.rb
42
- - lib/holidays/is.rb
43
- - lib/holidays/it.rb
44
- - lib/holidays/MANIFEST
45
- - lib/holidays/mx.rb
46
- - lib/holidays/nl.rb
47
- - lib/holidays/north_america.rb
48
- - lib/holidays/nyse.rb
49
- - lib/holidays/pt.rb
50
- - lib/holidays/scandinavia.rb
51
- - lib/holidays/se.rb
52
- - lib/holidays/united_nations.rb
53
- - lib/holidays/ups.rb
54
- - lib/holidays/us.rb
55
- - lib/holidays/za.rb
56
- - lib/holidays.rb
32
+ - .gitignore
33
+ - CHANGELOG
34
+ - LICENSE
35
+ - README.rdoc
36
+ - REFERENCES
37
+ - data/SYNTAX
57
38
  - data/au.yaml
58
39
  - data/build_defs.rb
59
40
  - data/ca.yaml
41
+ - data/cz.yaml
60
42
  - data/de.yaml
61
43
  - data/dk.yaml
62
44
  - data/es.yaml
@@ -68,23 +50,48 @@ files:
68
50
  - data/it.yaml
69
51
  - data/mx.yaml
70
52
  - data/nl.yaml
53
+ - data/no.yaml
71
54
  - data/north_america_informal.yaml
72
55
  - data/nyse.yaml
56
+ - data/nz.yaml
73
57
  - data/pt.yaml
74
58
  - data/se.yaml
75
- - data/SYNTAX
76
59
  - data/united_nations.yaml
77
60
  - data/ups.yaml
78
61
  - data/us.yaml
79
62
  - data/za.yaml
63
+ - holidays.gemspec
64
+ - lib/holidays.rb
65
+ - lib/holidays/MANIFEST
66
+ - lib/holidays/au.rb
67
+ - lib/holidays/ca.rb
68
+ - lib/holidays/cz.rb
69
+ - lib/holidays/de.rb
70
+ - lib/holidays/dk.rb
71
+ - lib/holidays/es.rb
72
+ - lib/holidays/europe.rb
73
+ - lib/holidays/fr.rb
74
+ - lib/holidays/gb.rb
75
+ - lib/holidays/ie.rb
76
+ - lib/holidays/is.rb
77
+ - lib/holidays/it.rb
78
+ - lib/holidays/mx.rb
79
+ - lib/holidays/nl.rb
80
+ - lib/holidays/no.rb
81
+ - lib/holidays/north_america.rb
82
+ - lib/holidays/nyse.rb
83
+ - lib/holidays/nz.rb
84
+ - lib/holidays/pt.rb
85
+ - lib/holidays/scandinavia.rb
86
+ - lib/holidays/se.rb
87
+ - lib/holidays/united_nations.rb
88
+ - lib/holidays/ups.rb
89
+ - lib/holidays/us.rb
90
+ - lib/holidays/za.rb
80
91
  - rakefile.rb
81
- - README
82
- - REFERENCES
83
- - CHANGELOG
84
- - LICENSE
85
- test_files:
86
92
  - test/defs/test_defs_au.rb
87
93
  - test/defs/test_defs_ca.rb
94
+ - test/defs/test_defs_cz.rb
88
95
  - test/defs/test_defs_de.rb
89
96
  - test/defs/test_defs_dk.rb
90
97
  - test/defs/test_defs_es.rb
@@ -96,32 +103,78 @@ test_files:
96
103
  - test/defs/test_defs_it.rb
97
104
  - test/defs/test_defs_mx.rb
98
105
  - test/defs/test_defs_nl.rb
106
+ - test/defs/test_defs_no.rb
99
107
  - test/defs/test_defs_north_america.rb
100
108
  - test/defs/test_defs_nyse.rb
109
+ - test/defs/test_defs_nz.rb
101
110
  - test/defs/test_defs_pt.rb
102
111
  - test/defs/test_defs_scandinavia.rb
103
112
  - test/defs/test_defs_se.rb
104
113
  - test/defs/test_defs_ups.rb
105
114
  - test/defs/test_defs_us.rb
106
115
  - test/defs/test_defs_za.rb
107
- rdoc_options:
108
- - --all
109
- - --inline-source
110
- - --line-numbers
111
- - --charset
112
- - utf-8
113
- extra_rdoc_files:
114
- - README
115
- - data/SYNTAX
116
- - lib/holidays/MANIFEST
117
- - REFERENCES
118
- - CHANGELOG
119
- - LICENSE
120
- executables: []
121
-
122
- extensions: []
116
+ - test/test_date.rb
117
+ - test/test_helper.rb
118
+ - test/test_holidays.rb
119
+ - test/test_multiple_regions.rb
120
+ has_rdoc: true
121
+ homepage: https://github.com/alexdunae/holidays
122
+ licenses: []
123
123
 
124
+ post_install_message:
125
+ rdoc_options:
126
+ - --charset=UTF-8
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ segments:
143
+ - 0
144
+ version: "0"
124
145
  requirements: []
125
146
 
126
- dependencies: []
127
-
147
+ rubyforge_project:
148
+ rubygems_version: 1.3.7
149
+ signing_key:
150
+ specification_version: 3
151
+ summary: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
152
+ test_files:
153
+ - test/defs/test_defs_au.rb
154
+ - test/defs/test_defs_ca.rb
155
+ - test/defs/test_defs_cz.rb
156
+ - test/defs/test_defs_de.rb
157
+ - test/defs/test_defs_dk.rb
158
+ - test/defs/test_defs_es.rb
159
+ - test/defs/test_defs_europe.rb
160
+ - test/defs/test_defs_fr.rb
161
+ - test/defs/test_defs_gb.rb
162
+ - test/defs/test_defs_ie.rb
163
+ - test/defs/test_defs_is.rb
164
+ - test/defs/test_defs_it.rb
165
+ - test/defs/test_defs_mx.rb
166
+ - test/defs/test_defs_nl.rb
167
+ - test/defs/test_defs_no.rb
168
+ - test/defs/test_defs_north_america.rb
169
+ - test/defs/test_defs_nyse.rb
170
+ - test/defs/test_defs_nz.rb
171
+ - test/defs/test_defs_pt.rb
172
+ - test/defs/test_defs_scandinavia.rb
173
+ - test/defs/test_defs_se.rb
174
+ - test/defs/test_defs_ups.rb
175
+ - test/defs/test_defs_us.rb
176
+ - test/defs/test_defs_za.rb
177
+ - test/test_date.rb
178
+ - test/test_helper.rb
179
+ - test/test_holidays.rb
180
+ - test/test_multiple_regions.rb