holidays 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +77 -0
  3. data/Gemfile +2 -6
  4. data/{README.rdoc → README.md} +46 -39
  5. data/Rakefile +62 -0
  6. data/data/au.yaml +11 -1
  7. data/data/cl.yaml +92 -0
  8. data/data/de.yaml +24 -0
  9. data/data/dk.yaml +3 -1
  10. data/data/ecb_target.yaml +42 -0
  11. data/data/es.yaml +44 -16
  12. data/data/fr.yaml +15 -10
  13. data/data/gb.yaml +14 -1
  14. data/data/index.yaml +7 -1
  15. data/data/lt.yaml +88 -0
  16. data/data/nl.yaml +10 -10
  17. data/data/se.yaml +26 -3
  18. data/data/sg.yaml +55 -0
  19. data/data/si.yaml +84 -0
  20. data/data/vi.yaml +29 -0
  21. data/holidays.gemspec +17 -187
  22. data/lib/holidays.rb +24 -14
  23. data/lib/holidays/MANIFEST +7 -0
  24. data/lib/holidays/au.rb +9 -9
  25. data/lib/holidays/cl.rb +43 -0
  26. data/lib/holidays/de.rb +1 -1
  27. data/lib/holidays/dk.rb +2 -2
  28. data/lib/holidays/ecb_target.rb +34 -0
  29. data/lib/holidays/es.rb +27 -27
  30. data/lib/holidays/europe.rb +72 -44
  31. data/lib/holidays/fr.rb +2 -2
  32. data/lib/holidays/gb.rb +3 -2
  33. data/lib/holidays/lt.rb +41 -0
  34. data/lib/holidays/nl.rb +1 -1
  35. data/lib/holidays/scandinavia.rb +6 -2
  36. data/lib/holidays/se.rb +7 -3
  37. data/lib/holidays/sg.rb +35 -0
  38. data/lib/holidays/si.rb +42 -0
  39. data/lib/holidays/version.rb +3 -0
  40. data/lib/holidays/vi.rb +32 -0
  41. data/test/defs/test_defs_au.rb +3 -0
  42. data/test/defs/test_defs_cl.rb +39 -0
  43. data/test/defs/test_defs_de.rb +24 -0
  44. data/test/defs/test_defs_dk.rb +1 -0
  45. data/test/defs/test_defs_ecb_target.rb +23 -0
  46. data/test/defs/test_defs_es.rb +7 -2
  47. data/test/defs/test_defs_europe.rb +84 -9
  48. data/test/defs/test_defs_fr.rb +7 -3
  49. data/test/defs/test_defs_gb.rb +7 -0
  50. data/test/defs/test_defs_lt.rb +42 -0
  51. data/test/defs/test_defs_nl.rb +3 -3
  52. data/test/defs/test_defs_scandinavia.rb +10 -2
  53. data/test/defs/test_defs_se.rb +9 -2
  54. data/test/defs/test_defs_sg.rb +20 -0
  55. data/test/defs/test_defs_si.rb +36 -0
  56. data/test/defs/test_defs_vi.rb +18 -0
  57. data/test/test_all_regions.rb +17 -9
  58. metadata +123 -105
  59. data/.travis.yml +0 -15
  60. data/CHANGELOG.rdoc +0 -57
  61. data/rakefile.rb +0 -107
@@ -7,20 +7,24 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class FrDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_fr
10
- {Date.civil(2007,1,1) => 'Jour de l\'an',
11
- Date.civil(2007,4,8) => 'Pâques',
10
+ {Date.civil(2007,1,1) => 'Jour de l\'an',
12
11
  Date.civil(2007,4,9) => 'Lundi de Pâques',
13
12
  Date.civil(2007,5,1) => 'Fête du travail',
14
13
  Date.civil(2007,5,8) => 'Victoire 1945',
15
14
  Date.civil(2007,5,17) => 'Ascension',
16
- Date.civil(2007,5,27) => 'Pentecôte',
17
15
  Date.civil(2007,5,28) => 'Lundi de Pentecôte',
18
16
  Date.civil(2007,7,14) => 'Fête nationale',
19
17
  Date.civil(2007,8,15) => 'Assomption',
20
18
  Date.civil(2007,11,1) => 'Toussaint',
21
19
  Date.civil(2007,11,11) => 'Armistice 1918',
22
20
  Date.civil(2007,12,25) => 'Noël'}.each do |date, name|
21
+ assert_equal name, (Holidays.on(date, :fr)[0] || {})[:name]
22
+ end
23
+ {Date.civil(2007,4,8) => 'Pâques',
24
+ Date.civil(2007,5,27) => 'Pentecôte'}.each do |date, name|
25
+ assert_nil (Holidays.on(date, :fr)[0] || {})[:name]
23
26
  assert_equal name, (Holidays.on(date, :fr, :informal)[0] || {})[:name]
24
27
  end
28
+
25
29
  end
26
30
  end
@@ -18,6 +18,7 @@ class GbDefinitionTests < Test::Unit::TestCase # :nodoc:
18
18
  end
19
19
 
20
20
  assert_equal 'St. Patrick\'s Day', Date.civil(2008,3,17).holidays(:gb_nir, :informal)[0][:name]
21
+ assert_equal 'St. Andrew\'s Day', Date.civil(2008,11,30).holidays(:gb_sct, :informal)[0][:name]
21
22
 
22
23
  assert_equal 'Christmas Day', Date.civil(2008,12,25).holidays(:gb_, :observed)[0][:name]
23
24
  assert_equal 'Christmas Day', Date.civil(2009,12,25).holidays(:gb_, :observed)[0][:name]
@@ -32,6 +33,12 @@ assert_equal 'New Year\'s Day', Date.civil(2010,1,1).holidays(:gb, :observed)[0]
32
33
  assert_equal 'New Year\'s Day', Date.civil(2011,1,3).holidays(:gb, :observed)[0][:name]
33
34
  assert_equal 'New Year\'s Day', Date.civil(2012,1,2).holidays(:gb, :observed)[0][:name]
34
35
 
36
+ assert_equal '2nd January', Date.civil(2010,1,4).holidays(:gb_sct, :observed)[0][:name]
37
+ assert_equal '2nd January', Date.civil(2011,1,4).holidays(:gb_sct, :observed)[0][:name]
38
+ assert_equal '2nd January', Date.civil(2012,1,3).holidays(:gb_sct, :observed)[0][:name]
39
+ assert_equal '2nd January', Date.civil(2013,1,2).holidays(:gb_sct, :observed)[0][:name]
40
+ assert_equal '2nd January', Date.civil(2014,1,2).holidays(:gb_sct, :observed)[0][:name]
41
+
35
42
  [:gb_wls, :gb_eng, :gb_nir, :gb_eaw, :gb_].each do |r|
36
43
  assert_equal 'Easter Monday', Date.civil(2008,3,24).holidays(r)[0][:name]
37
44
  assert_equal 'Bank Holiday', Date.civil(2008,8,25).holidays(r)[0][:name]
@@ -0,0 +1,42 @@
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/lt.yaml
7
+ class LtDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_lt
10
+ {Date.civil(2008,1,1) => 'Naujieji metai',
11
+ Date.civil(2008,2,16) => 'Valstybės atkūrimo diena',
12
+ Date.civil(2008,3,11) => 'Nepriklausomybės atkūrimo diena',
13
+ Date.civil(2008,3,23) => 'Šv. Velykos',
14
+ Date.civil(2008,3,24) => 'Antroji Velykų diena',
15
+ Date.civil(2008,5,1) => 'Darbininkų diena',
16
+ Date.civil(2008,6,24) => 'Joninės',
17
+ Date.civil(2008,7,6) => 'Valstybės diena',
18
+ Date.civil(2008,8,15) => 'Žolinė',
19
+ Date.civil(2008,11,1) => 'Visų šventųjų diena',
20
+ Date.civil(2008,12,24) => 'Šv. Kūčios',
21
+ Date.civil(2008,12,25) => 'Šv. Kalėdos',
22
+ Date.civil(2008,12,26) => 'Antroji Kalėdų diena'}.each do |date, name|
23
+ assert_equal name, (Holidays.on(date, :lt)[0] || {})[:name]
24
+ end
25
+ {Date.civil(2012,1,1) => 'Naujieji metai',
26
+ Date.civil(2012,2,16) => 'Valstybės atkūrimo diena',
27
+ Date.civil(2012,3,11) => 'Nepriklausomybės atkūrimo diena',
28
+ Date.civil(2012,4,8) => 'Šv. Velykos',
29
+ Date.civil(2012,4,9) => 'Antroji Velykų diena',
30
+ Date.civil(2012,5,1) => 'Darbininkų diena',
31
+ Date.civil(2012,6,24) => 'Joninės',
32
+ Date.civil(2012,7,6) => 'Valstybės diena',
33
+ Date.civil(2012,8,15) => 'Žolinė',
34
+ Date.civil(2012,11,1) => 'Visų šventųjų diena',
35
+ Date.civil(2012,12,24) => 'Šv. Kūčios',
36
+ Date.civil(2012,12,25) => 'Šv. Kalėdos',
37
+ Date.civil(2012,12,26) => 'Antroji Kalėdų diena'}.each do |date, name|
38
+ assert_equal name, (Holidays.on(date, :lt)[0] || {})[:name]
39
+ end
40
+
41
+ end
42
+ end
@@ -7,11 +7,11 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class NlDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_nl
10
- {Date.civil(2008,1,1) => 'Nieuwjaar',
11
- Date.civil(2008,3,21) => 'Goede Vrijdag',
10
+ {Date.civil(2008,1,1) => 'Nieuwjaar',
11
+ Date.civil(2008,3,21) => 'Goede Vrijdag',
12
12
  Date.civil(2008,3,23) => 'Pasen',
13
13
  Date.civil(2008,3,24) => 'Pasen',
14
- Date.civil(2008,4,30) => 'Koninginnedag',
14
+ Date.civil(2008,4,27) => 'Koningsdag',
15
15
  Date.civil(2008,5,1) => 'Hemelvaartsdag', # Ascension, Easter+39
16
16
  Date.civil(2008,5,5) => 'Bevrijdingsdag',
17
17
  Date.civil(2008,5,11) => 'Pinksteren', # Pentecost, Easter+49
@@ -27,6 +27,7 @@ class ScandinaviaDefinitionTests < Test::Unit::TestCase # :nodoc:
27
27
  assert_equal name, (Holidays.on(date, :dk, :informal)[0] || {})[:name]
28
28
  end
29
29
 
30
+
30
31
  {Date.civil(2007,1,1) => 'Nýársdagur',
31
32
  Date.civil(2007,1,6) => 'Þrettándinn',
32
33
  Date.civil(2007,1,19) => 'Bóndadagur',
@@ -71,7 +72,8 @@ end
71
72
 
72
73
  {Date.civil(2008,1,1) => 'Nyårsdagen',
73
74
  Date.civil(2008,1,6) => 'Trettondedag jul',
74
- Date.civil(2008,3,21) => 'Långfredagen',
75
+ Date.civil(2008,3,21) => 'Långfredagen',
76
+ Date.civil(2008,3,22) => 'Påskafton',
75
77
  Date.civil(2008,3,23) => 'Påskdagen',
76
78
  Date.civil(2008,3,24) => 'Annandag påsk',
77
79
  Date.civil(2008,5,1) => 'Första maj',
@@ -80,14 +82,20 @@ end
80
82
  Date.civil(2008,6,6) => 'Nationaldagen',
81
83
  Date.civil(2005,6,25) => 'Midsommardagen',
82
84
  Date.civil(2006,6,24) => 'Midsommardagen',
85
+ Date.civil(2006,6,23) => 'Midsommarafton',
83
86
  Date.civil(2007,6,23) => 'Midsommardagen',
87
+ Date.civil(2007,6,22) => 'Midsommarafton',
84
88
  Date.civil(2008,6,21) => 'Midsommardagen',
89
+ Date.civil(2008,6,20) => 'Midsommarafton',
85
90
  Date.civil(2005,11,5) => 'Alla helgons dag',
86
91
  Date.civil(2006,11,4) => 'Alla helgons dag',
87
92
  Date.civil(2007,11,3) => 'Alla helgons dag',
88
93
  Date.civil(2008,11,1) => 'Alla helgons dag',
94
+ Date.civil(2008,12,24) => 'Julafton',
89
95
  Date.civil(2008,12,25) => 'Juldagen',
90
- Date.civil(2008,12,26) => 'Annandag jul'}.each do |date, name|
96
+ Date.civil(2008,12,26) => 'Annandag jul',
97
+ Date.civil(2008,12,31) => 'Nyårsafton'
98
+ }.each do |date, name|
91
99
  assert_equal name, (Holidays.on(date, :se, :informal)[0] || {})[:name]
92
100
  end
93
101
 
@@ -9,7 +9,8 @@ class SeDefinitionTests < Test::Unit::TestCase # :nodoc:
9
9
  def test_se
10
10
  {Date.civil(2008,1,1) => 'Nyårsdagen',
11
11
  Date.civil(2008,1,6) => 'Trettondedag jul',
12
- Date.civil(2008,3,21) => 'Långfredagen',
12
+ Date.civil(2008,3,21) => 'Långfredagen',
13
+ Date.civil(2008,3,22) => 'Påskafton',
13
14
  Date.civil(2008,3,23) => 'Påskdagen',
14
15
  Date.civil(2008,3,24) => 'Annandag påsk',
15
16
  Date.civil(2008,5,1) => 'Första maj',
@@ -18,14 +19,20 @@ class SeDefinitionTests < Test::Unit::TestCase # :nodoc:
18
19
  Date.civil(2008,6,6) => 'Nationaldagen',
19
20
  Date.civil(2005,6,25) => 'Midsommardagen',
20
21
  Date.civil(2006,6,24) => 'Midsommardagen',
22
+ Date.civil(2006,6,23) => 'Midsommarafton',
21
23
  Date.civil(2007,6,23) => 'Midsommardagen',
24
+ Date.civil(2007,6,22) => 'Midsommarafton',
22
25
  Date.civil(2008,6,21) => 'Midsommardagen',
26
+ Date.civil(2008,6,20) => 'Midsommarafton',
23
27
  Date.civil(2005,11,5) => 'Alla helgons dag',
24
28
  Date.civil(2006,11,4) => 'Alla helgons dag',
25
29
  Date.civil(2007,11,3) => 'Alla helgons dag',
26
30
  Date.civil(2008,11,1) => 'Alla helgons dag',
31
+ Date.civil(2008,12,24) => 'Julafton',
27
32
  Date.civil(2008,12,25) => 'Juldagen',
28
- Date.civil(2008,12,26) => 'Annandag jul'}.each do |date, name|
33
+ Date.civil(2008,12,26) => 'Annandag jul',
34
+ Date.civil(2008,12,31) => 'Nyårsafton'
35
+ }.each do |date, name|
29
36
  assert_equal name, (Holidays.on(date, :se, :informal)[0] || {})[:name]
30
37
  end
31
38
  end
@@ -0,0 +1,20 @@
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/sg.yaml
7
+ class SgDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_sg
10
+ {Date.civil(2014,1,1) => 'New Year\'s Day',
11
+ Date.civil(2014,2,14) => 'Valentine\'s Day',
12
+ Date.civil(2014,2,15) => 'Total Defence Day',
13
+ Date.civil(2014,4,18) => 'Good Friday',
14
+ Date.civil(2014,5,1) => 'Labour Day',
15
+ Date.civil(2014,8,9) => 'National Day',
16
+ Date.civil(2014,12,25) => 'Christmas Day'}.each do |date, name|
17
+ assert_equal name, (Holidays.on(date, :sg, :informal)[0] || {})[:name]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,36 @@
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/si.yaml
7
+ class SiDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_si
10
+ assert_equal 'velikonočna nedelja', Date.civil(2015,4,5).holidays(:si)[0][:name]
11
+ assert_equal 'velikonočna nedelja', Date.civil(2016,3,27).holidays(:si)[0][:name]
12
+
13
+ assert_equal 'velikonočni ponedeljek', Date.civil(2015,4,6).holidays(:si)[0][:name]
14
+ assert_equal 'velikonočni ponedeljek', Date.civil(2016,3,28).holidays(:si)[0][:name]
15
+
16
+ assert_equal 'binkošti', Date.civil(2015,5,24).holidays(:si)[0][:name]
17
+ assert_equal 'binkošti', Date.civil(2016,5,15).holidays(:si)[0][:name]
18
+
19
+ (2014..2020).each do |year|
20
+ {Date.civil(year,1,1) => 'novo leto',
21
+ Date.civil(year,2,8) => 'Prešernov dan, slovenski kulturni praznik',
22
+ Date.civil(year,4,27) => 'dan upora proti okupatorju',
23
+ Date.civil(year,5,1) => 'praznik dela',
24
+ Date.civil(year,5,2) => 'praznik dela',
25
+ Date.civil(year,6,25) => 'dan državnosti',
26
+ Date.civil(year,8,15) => 'Marijino vnebovzetje',
27
+ Date.civil(year,10,31) => 'dan reformacije',
28
+ Date.civil(year,11,1) => 'dan spomina na mrtve',
29
+ Date.civil(year,12,25) => 'božič',
30
+ Date.civil(2008,12,26) => 'dan samostojnosti in enotnosti'}.each do |date, name|
31
+ assert_equal name, (Holidays.on(date, :si, :informal)[0] || {})[:name]
32
+ end
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,18 @@
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/vi.yaml
7
+ class ViDefinitionTests < Test::Unit::TestCase # :nodoc:
8
+
9
+ def test_vi
10
+ {Date.civil(2014,1,1) => 'New Year',
11
+ Date.civil(2014,4,30) => 'Liberation Day',
12
+ Date.civil(2014,5,1) => "International Workers' Day",
13
+ Date.civil(2014,9,2) => 'National Day'}.each do |date, name|
14
+ assert_equal name, (Holidays.on(date, :vi)[0] || {})[:name]
15
+ end
16
+
17
+ end
18
+ end
@@ -5,35 +5,35 @@ class MultipleRegionsTests < Test::Unit::TestCase
5
5
  def test_definition_dir
6
6
  assert File.directory?(Holidays::DEFINITION_PATH)
7
7
  end
8
-
8
+
9
9
  def test_getting_available_paths
10
10
  defs = Holidays.available(true)
11
11
  assert_equal def_count, defs.size
12
-
12
+
13
13
  defs.each do |f|
14
14
  assert f.kind_of?(String)
15
15
  assert File.exists?(f)
16
16
  end
17
17
  end
18
-
18
+
19
19
  def test_getting_available_symbols
20
20
  defs = Holidays.available(false)
21
21
  assert_equal def_count, defs.size
22
-
22
+
23
23
  defs.each { |f| assert f.kind_of?(Symbol) }
24
-
24
+
25
25
  # some spot checks
26
26
  assert defs.include?(:ca)
27
27
  assert defs.include?(:united_nations)
28
28
  end
29
29
 
30
-
30
+
31
31
  def test_loading_all
32
32
  Holidays.load_all
33
33
  holidays = Holidays.on(Date.civil(2011, 5, 1), :any)
34
34
 
35
35
  # at least 15 now, but there could be more in the future
36
- assert holidays.size > 15
36
+ assert holidays.size > 15
37
37
 
38
38
  # some spot checks
39
39
  assert holidays.any? { |h| h[:name] == 'Staatsfeiertag' } # :at
@@ -50,9 +50,17 @@ class MultipleRegionsTests < Test::Unit::TestCase
50
50
  assert regions.include? :nyse
51
51
  assert regions.include? :united_nations
52
52
  end
53
-
53
+
54
+ def test_load_subregion
55
+ Holidays.send(:remove_const, :DE) #unload de module so that is has to be loaded again
56
+ Holidays.send(:class_variable_set, :@@regions, []) # reset regions
57
+ holidays = Holidays.on(Date.civil(2014, 1, 1), :de_bb)
58
+
59
+ assert holidays.any? { |h| h[:name] == 'Neujahrstag' }
60
+ end
61
+
54
62
  private
55
63
  def def_count
56
64
  Dir.glob(Holidays::DEFINITION_PATH + '/*.rb').size
57
- end
65
+ end
58
66
  end
metadata CHANGED
@@ -1,99 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: holidays
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 6
10
- version: 1.0.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.8
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Alex Dunae
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-01-04 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rake
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
33
20
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rdoc
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
41
24
  - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 27
44
- segments:
45
- - 2
46
- - 4
47
- - 2
48
- version: 2.4.2
49
- type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: jeweler
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
57
31
  - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
63
34
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: rdoc
67
35
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
71
38
  - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 27
74
- segments:
75
- - 2
76
- - 4
77
- - 2
78
- version: 2.4.2
79
- type: :development
80
- version_requirements: *id004
81
- description: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
82
- email: code@dunae.ca
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: A collection of Ruby methods to deal with statutory and other holidays.
42
+ You deserve a holiday!
43
+ email:
44
+ - code@dunae.ca
83
45
  executables: []
84
-
85
46
  extensions: []
86
-
87
- extra_rdoc_files:
88
- - LICENSE
89
- - README.rdoc
90
- files:
91
- - .travis.yml
92
- - CHANGELOG.rdoc
47
+ extra_rdoc_files: []
48
+ files:
49
+ - CHANGELOG.md
93
50
  - Gemfile
94
51
  - LICENSE
95
- - README.rdoc
52
+ - README.md
96
53
  - REFERENCES
54
+ - Rakefile
97
55
  - data/SYNTAX.rdoc
98
56
  - data/ar.yaml
99
57
  - data/at.yaml
@@ -103,9 +61,11 @@ files:
103
61
  - data/build_defs.rb
104
62
  - data/ca.yaml
105
63
  - data/ch.yaml
64
+ - data/cl.yaml
106
65
  - data/cz.yaml
107
66
  - data/de.yaml
108
67
  - data/dk.yaml
68
+ - data/ecb_target.yaml
109
69
  - data/el.yaml
110
70
  - data/es.yaml
111
71
  - data/federal_reserve.yaml
@@ -120,6 +80,7 @@ files:
120
80
  - data/it.yaml
121
81
  - data/jp.yaml
122
82
  - data/li.yaml
83
+ - data/lt.yaml
123
84
  - data/ma.yaml
124
85
  - data/mx.yaml
125
86
  - data/nerc.yaml
@@ -132,11 +93,14 @@ files:
132
93
  - data/pt.yaml
133
94
  - data/ro.yaml
134
95
  - data/se.yaml
96
+ - data/sg.yaml
97
+ - data/si.yaml
135
98
  - data/sk.yaml
136
99
  - data/united_nations.yaml
137
100
  - data/ups.yaml
138
101
  - data/us.yaml
139
102
  - data/ve.yaml
103
+ - data/vi.yaml
140
104
  - data/za.yaml
141
105
  - holidays.gemspec
142
106
  - lib/holidays.rb
@@ -148,9 +112,11 @@ files:
148
112
  - lib/holidays/br.rb
149
113
  - lib/holidays/ca.rb
150
114
  - lib/holidays/ch.rb
115
+ - lib/holidays/cl.rb
151
116
  - lib/holidays/cz.rb
152
117
  - lib/holidays/de.rb
153
118
  - lib/holidays/dk.rb
119
+ - lib/holidays/ecb_target.rb
154
120
  - lib/holidays/el.rb
155
121
  - lib/holidays/es.rb
156
122
  - lib/holidays/europe.rb
@@ -165,6 +131,7 @@ files:
165
131
  - lib/holidays/it.rb
166
132
  - lib/holidays/jp.rb
167
133
  - lib/holidays/li.rb
134
+ - lib/holidays/lt.rb
168
135
  - lib/holidays/ma.rb
169
136
  - lib/holidays/mx.rb
170
137
  - lib/holidays/nerc.rb
@@ -178,13 +145,16 @@ files:
178
145
  - lib/holidays/ro.rb
179
146
  - lib/holidays/scandinavia.rb
180
147
  - lib/holidays/se.rb
148
+ - lib/holidays/sg.rb
149
+ - lib/holidays/si.rb
181
150
  - lib/holidays/sk.rb
182
151
  - lib/holidays/united_nations.rb
183
152
  - lib/holidays/ups.rb
184
153
  - lib/holidays/us.rb
185
154
  - lib/holidays/ve.rb
155
+ - lib/holidays/version.rb
156
+ - lib/holidays/vi.rb
186
157
  - lib/holidays/za.rb
187
- - rakefile.rb
188
158
  - test/defs/test_defs_ar.rb
189
159
  - test/defs/test_defs_at.rb
190
160
  - test/defs/test_defs_au.rb
@@ -192,9 +162,11 @@ files:
192
162
  - test/defs/test_defs_br.rb
193
163
  - test/defs/test_defs_ca.rb
194
164
  - test/defs/test_defs_ch.rb
165
+ - test/defs/test_defs_cl.rb
195
166
  - test/defs/test_defs_cz.rb
196
167
  - test/defs/test_defs_de.rb
197
168
  - test/defs/test_defs_dk.rb
169
+ - test/defs/test_defs_ecb_target.rb
198
170
  - test/defs/test_defs_el.rb
199
171
  - test/defs/test_defs_es.rb
200
172
  - test/defs/test_defs_europe.rb
@@ -209,6 +181,7 @@ files:
209
181
  - test/defs/test_defs_it.rb
210
182
  - test/defs/test_defs_jp.rb
211
183
  - test/defs/test_defs_li.rb
184
+ - test/defs/test_defs_lt.rb
212
185
  - test/defs/test_defs_ma.rb
213
186
  - test/defs/test_defs_mx.rb
214
187
  - test/defs/test_defs_nerc.rb
@@ -222,49 +195,94 @@ files:
222
195
  - test/defs/test_defs_ro.rb
223
196
  - test/defs/test_defs_scandinavia.rb
224
197
  - test/defs/test_defs_se.rb
198
+ - test/defs/test_defs_sg.rb
199
+ - test/defs/test_defs_si.rb
225
200
  - test/defs/test_defs_sk.rb
226
201
  - test/defs/test_defs_ups.rb
227
202
  - test/defs/test_defs_us.rb
228
203
  - test/defs/test_defs_ve.rb
204
+ - test/defs/test_defs_vi.rb
229
205
  - test/defs/test_defs_za.rb
230
206
  - test/test_all_regions.rb
231
207
  - test/test_date.rb
232
208
  - test/test_helper.rb
233
209
  - test/test_holidays.rb
234
210
  - test/test_multiple_regions.rb
235
- has_rdoc: true
236
211
  homepage: https://github.com/alexdunae/holidays
237
- licenses: []
238
-
212
+ licenses:
213
+ - MIT
214
+ metadata: {}
239
215
  post_install_message:
240
216
  rdoc_options: []
241
-
242
- require_paths:
217
+ require_paths:
243
218
  - lib
244
- required_ruby_version: !ruby/object:Gem::Requirement
245
- none: false
246
- requirements:
219
+ required_ruby_version: !ruby/object:Gem::Requirement
220
+ requirements:
247
221
  - - ">="
248
- - !ruby/object:Gem::Version
249
- hash: 3
250
- segments:
251
- - 0
252
- version: "0"
253
- required_rubygems_version: !ruby/object:Gem::Requirement
254
- none: false
255
- requirements:
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
225
+ requirements:
256
226
  - - ">="
257
- - !ruby/object:Gem::Version
258
- hash: 3
259
- segments:
260
- - 0
261
- version: "0"
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
262
229
  requirements: []
263
-
264
230
  rubyforge_project:
265
- rubygems_version: 1.6.2
231
+ rubygems_version: 2.2.2
266
232
  signing_key:
267
- specification_version: 3
268
- summary: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
269
- test_files: []
270
-
233
+ specification_version: 4
234
+ summary: A collection of Ruby methods to deal with statutory and other holidays.
235
+ test_files:
236
+ - test/defs/test_defs_ar.rb
237
+ - test/defs/test_defs_at.rb
238
+ - test/defs/test_defs_au.rb
239
+ - test/defs/test_defs_be.rb
240
+ - test/defs/test_defs_br.rb
241
+ - test/defs/test_defs_ca.rb
242
+ - test/defs/test_defs_ch.rb
243
+ - test/defs/test_defs_cl.rb
244
+ - test/defs/test_defs_cz.rb
245
+ - test/defs/test_defs_de.rb
246
+ - test/defs/test_defs_dk.rb
247
+ - test/defs/test_defs_ecb_target.rb
248
+ - test/defs/test_defs_el.rb
249
+ - test/defs/test_defs_es.rb
250
+ - test/defs/test_defs_europe.rb
251
+ - test/defs/test_defs_federal_reserve.rb
252
+ - test/defs/test_defs_fi.rb
253
+ - test/defs/test_defs_fr.rb
254
+ - test/defs/test_defs_gb.rb
255
+ - test/defs/test_defs_hr.rb
256
+ - test/defs/test_defs_hu.rb
257
+ - test/defs/test_defs_ie.rb
258
+ - test/defs/test_defs_is.rb
259
+ - test/defs/test_defs_it.rb
260
+ - test/defs/test_defs_jp.rb
261
+ - test/defs/test_defs_li.rb
262
+ - test/defs/test_defs_lt.rb
263
+ - test/defs/test_defs_ma.rb
264
+ - test/defs/test_defs_mx.rb
265
+ - test/defs/test_defs_nerc.rb
266
+ - test/defs/test_defs_nl.rb
267
+ - test/defs/test_defs_no.rb
268
+ - test/defs/test_defs_north_america.rb
269
+ - test/defs/test_defs_nyse.rb
270
+ - test/defs/test_defs_nz.rb
271
+ - test/defs/test_defs_pl.rb
272
+ - test/defs/test_defs_pt.rb
273
+ - test/defs/test_defs_ro.rb
274
+ - test/defs/test_defs_scandinavia.rb
275
+ - test/defs/test_defs_se.rb
276
+ - test/defs/test_defs_sg.rb
277
+ - test/defs/test_defs_si.rb
278
+ - test/defs/test_defs_sk.rb
279
+ - test/defs/test_defs_ups.rb
280
+ - test/defs/test_defs_us.rb
281
+ - test/defs/test_defs_ve.rb
282
+ - test/defs/test_defs_vi.rb
283
+ - test/defs/test_defs_za.rb
284
+ - test/test_all_regions.rb
285
+ - test/test_date.rb
286
+ - test/test_helper.rb
287
+ - test/test_holidays.rb
288
+ - test/test_multiple_regions.rb