holidays 5.6.0 → 5.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/holidays.gemspec +2 -1
  5. data/lib/generated_definitions/MANIFEST +8 -0
  6. data/lib/generated_definitions/REGIONS.rb +2 -2
  7. data/lib/generated_definitions/au.rb +2 -2
  8. data/lib/generated_definitions/de.rb +4 -4
  9. data/lib/generated_definitions/ee.rb +36 -0
  10. data/lib/generated_definitions/europe.rb +8 -4
  11. data/lib/generated_definitions/fr.rb +5 -3
  12. data/lib/generated_definitions/ge.rb +41 -0
  13. data/lib/generated_definitions/mt_en.rb +38 -0
  14. data/lib/generated_definitions/mt_mt.rb +38 -0
  15. data/lib/generated_definitions/north_america.rb +106 -9
  16. data/lib/generated_definitions/nz.rb +0 -1
  17. data/lib/generated_definitions/pt.rb +4 -2
  18. data/lib/generated_definitions/rs_cyrl.rb +39 -0
  19. data/lib/generated_definitions/rs_la.rb +39 -0
  20. data/lib/generated_definitions/ru.rb +37 -0
  21. data/lib/generated_definitions/tr.rb +61 -0
  22. data/lib/generated_definitions/us.rb +112 -15
  23. data/lib/holidays/version.rb +1 -1
  24. data/test/coverage_report.rb +4 -2
  25. data/test/defs/test_defs_au.rb +2 -2
  26. data/test/defs/test_defs_de.rb +39 -37
  27. data/test/defs/test_defs_ee.rb +33 -0
  28. data/test/defs/test_defs_europe.rb +84 -68
  29. data/test/defs/test_defs_fr.rb +21 -13
  30. data/test/defs/test_defs_ge.rb +41 -0
  31. data/test/defs/test_defs_mt_en.rb +32 -0
  32. data/test/defs/test_defs_mt_mt.rb +32 -0
  33. data/test/defs/test_defs_north_america.rb +244 -16
  34. data/test/defs/test_defs_pt.rb +24 -18
  35. data/test/defs/test_defs_rs_cyrl.rb +39 -0
  36. data/test/defs/test_defs_rs_la.rb +39 -0
  37. data/test/defs/test_defs_ru.rb +28 -0
  38. data/test/defs/test_defs_tr.rb +44 -0
  39. data/test/defs/test_defs_us.rb +245 -17
  40. data/test/integration/test_available_regions.rb +1 -1
  41. data/test/integration/test_holidays.rb +2 -2
  42. metadata +65 -26
@@ -18,6 +18,6 @@ class AvailableRegionsTests < Test::Unit::TestCase
18
18
  # This test might fail if we add new regions. Since this is an integration test
19
19
  # I am fine with that!
20
20
  def test_available_regions_returns_correct_number_of_regions
21
- assert_equal 170, Holidays.available_regions.count
21
+ assert_equal 240, Holidays.available_regions.count
22
22
  end
23
23
  end
@@ -41,7 +41,7 @@ class HolidaysTests < Test::Unit::TestCase
41
41
  # Should be 10 non-full weeks in the year (in the US)
42
42
  weeks_in_2012 = Date.commercial(2013, -1).cweek
43
43
  holidays_in_2012 = weeks_in_2012.times.count { |week| Holidays.any_holidays_during_work_week?(Date.commercial(2012,week+1), :us) == false }
44
- assert_equal 10, holidays_in_2012
44
+ assert_equal 9, holidays_in_2012
45
45
  end
46
46
 
47
47
  def test_requires_valid_regions
@@ -296,6 +296,6 @@ class HolidaysTests < Test::Unit::TestCase
296
296
 
297
297
  def test_load_all
298
298
  Holidays.load_all
299
- assert_equal 170, Holidays.available_regions.count
299
+ assert_equal 240, Holidays.available_regions.count
300
300
  end
301
301
  end
metadata CHANGED
@@ -1,101 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0
4
+ version: 5.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
8
8
  - Phil Trimble
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-03 00:00:00.000000000 Z
12
+ date: 2017-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
16
23
  version_requirements: !ruby/object:Gem::Requirement
17
24
  requirements:
18
25
  - - ">="
19
26
  - !ruby/object:Gem::Version
20
27
  version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
21
30
  requirement: !ruby/object:Gem::Requirement
22
31
  requirements:
23
32
  - - ">="
24
33
  - !ruby/object:Gem::Version
25
34
  version: '0'
26
- prerelease: false
27
35
  type: :development
28
- - !ruby/object:Gem::Dependency
29
- name: rake
36
+ prerelease: false
30
37
  version_requirements: !ruby/object:Gem::Requirement
31
38
  requirements:
32
39
  - - ">="
33
40
  - !ruby/object:Gem::Version
34
41
  version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: simplecov
35
44
  requirement: !ruby/object:Gem::Requirement
36
45
  requirements:
37
46
  - - ">="
38
47
  - !ruby/object:Gem::Version
39
48
  version: '0'
40
- prerelease: false
41
49
  type: :development
42
- - !ruby/object:Gem::Dependency
43
- name: coveralls
50
+ prerelease: false
44
51
  version_requirements: !ruby/object:Gem::Requirement
45
52
  requirements:
46
53
  - - ">="
47
54
  - !ruby/object:Gem::Version
48
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: simplecov-rcov
49
58
  requirement: !ruby/object:Gem::Requirement
50
59
  requirements:
51
60
  - - ">="
52
61
  - !ruby/object:Gem::Version
53
62
  version: '0'
54
- prerelease: false
55
63
  type: :development
56
- - !ruby/object:Gem::Dependency
57
- name: test-unit
64
+ prerelease: false
58
65
  version_requirements: !ruby/object:Gem::Requirement
59
66
  requirements:
60
67
  - - ">="
61
68
  - !ruby/object:Gem::Version
62
69
  version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: test-unit
63
72
  requirement: !ruby/object:Gem::Requirement
64
73
  requirements:
65
74
  - - ">="
66
75
  - !ruby/object:Gem::Version
67
76
  version: '0'
68
- prerelease: false
69
77
  type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: mocha
72
- version_requirements: !ruby/object:Gem::Requirement
86
+ requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - "~>"
75
89
  - !ruby/object:Gem::Version
76
90
  version: '1.0'
77
- requirement: !ruby/object:Gem::Requirement
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
78
94
  requirements:
79
95
  - - "~>"
80
96
  - !ruby/object:Gem::Version
81
97
  version: '1.0'
82
- prerelease: false
83
- type: :development
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: pry
86
- version_requirements: !ruby/object:Gem::Requirement
100
+ requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
102
  - - "~>"
89
103
  - !ruby/object:Gem::Version
90
104
  version: '0.10'
91
- requirement: !ruby/object:Gem::Requirement
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
92
108
  requirements:
93
109
  - - "~>"
94
110
  - !ruby/object:Gem::Version
95
111
  version: '0.10'
96
- prerelease: false
97
- type: :development
98
- description: A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!
112
+ description: A collection of Ruby methods to deal with statutory and other holidays.
113
+ You deserve a holiday!
99
114
  email:
100
115
  - holidaysgem@gmail.com
101
116
  executables: []
@@ -133,6 +148,7 @@ files:
133
148
  - lib/generated_definitions/de.rb
134
149
  - lib/generated_definitions/dk.rb
135
150
  - lib/generated_definitions/ecb_target.rb
151
+ - lib/generated_definitions/ee.rb
136
152
  - lib/generated_definitions/el.rb
137
153
  - lib/generated_definitions/es.rb
138
154
  - lib/generated_definitions/europe.rb
@@ -141,6 +157,7 @@ files:
141
157
  - lib/generated_definitions/fi.rb
142
158
  - lib/generated_definitions/fr.rb
143
159
  - lib/generated_definitions/gb.rb
160
+ - lib/generated_definitions/ge.rb
144
161
  - lib/generated_definitions/hk.rb
145
162
  - lib/generated_definitions/hr.rb
146
163
  - lib/generated_definitions/hu.rb
@@ -153,6 +170,8 @@ files:
153
170
  - lib/generated_definitions/lt.rb
154
171
  - lib/generated_definitions/lu.rb
155
172
  - lib/generated_definitions/ma.rb
173
+ - lib/generated_definitions/mt_en.rb
174
+ - lib/generated_definitions/mt_mt.rb
156
175
  - lib/generated_definitions/mx.rb
157
176
  - lib/generated_definitions/my.rb
158
177
  - lib/generated_definitions/nerc.rb
@@ -166,12 +185,16 @@ files:
166
185
  - lib/generated_definitions/pl.rb
167
186
  - lib/generated_definitions/pt.rb
168
187
  - lib/generated_definitions/ro.rb
188
+ - lib/generated_definitions/rs_cyrl.rb
189
+ - lib/generated_definitions/rs_la.rb
190
+ - lib/generated_definitions/ru.rb
169
191
  - lib/generated_definitions/scandinavia.rb
170
192
  - lib/generated_definitions/se.rb
171
193
  - lib/generated_definitions/sg.rb
172
194
  - lib/generated_definitions/si.rb
173
195
  - lib/generated_definitions/sk.rb
174
196
  - lib/generated_definitions/tn.rb
197
+ - lib/generated_definitions/tr.rb
175
198
  - lib/generated_definitions/united_nations.rb
176
199
  - lib/generated_definitions/ups.rb
177
200
  - lib/generated_definitions/us.rb
@@ -238,6 +261,7 @@ files:
238
261
  - test/defs/test_defs_de.rb
239
262
  - test/defs/test_defs_dk.rb
240
263
  - test/defs/test_defs_ecb_target.rb
264
+ - test/defs/test_defs_ee.rb
241
265
  - test/defs/test_defs_el.rb
242
266
  - test/defs/test_defs_es.rb
243
267
  - test/defs/test_defs_europe.rb
@@ -247,6 +271,7 @@ files:
247
271
  - test/defs/test_defs_fi.rb
248
272
  - test/defs/test_defs_fr.rb
249
273
  - test/defs/test_defs_gb.rb
274
+ - test/defs/test_defs_ge.rb
250
275
  - test/defs/test_defs_hk.rb
251
276
  - test/defs/test_defs_hr.rb
252
277
  - test/defs/test_defs_hu.rb
@@ -259,6 +284,8 @@ files:
259
284
  - test/defs/test_defs_lt.rb
260
285
  - test/defs/test_defs_lu.rb
261
286
  - test/defs/test_defs_ma.rb
287
+ - test/defs/test_defs_mt_en.rb
288
+ - test/defs/test_defs_mt_mt.rb
262
289
  - test/defs/test_defs_mx.rb
263
290
  - test/defs/test_defs_my.rb
264
291
  - test/defs/test_defs_nerc.rb
@@ -272,12 +299,16 @@ files:
272
299
  - test/defs/test_defs_pl.rb
273
300
  - test/defs/test_defs_pt.rb
274
301
  - test/defs/test_defs_ro.rb
302
+ - test/defs/test_defs_rs_cyrl.rb
303
+ - test/defs/test_defs_rs_la.rb
304
+ - test/defs/test_defs_ru.rb
275
305
  - test/defs/test_defs_scandinavia.rb
276
306
  - test/defs/test_defs_se.rb
277
307
  - test/defs/test_defs_sg.rb
278
308
  - test/defs/test_defs_si.rb
279
309
  - test/defs/test_defs_sk.rb
280
310
  - test/defs/test_defs_tn.rb
311
+ - test/defs/test_defs_tr.rb
281
312
  - test/defs/test_defs_united_nations.rb
282
313
  - test/defs/test_defs_ups.rb
283
314
  - test/defs/test_defs_us.rb
@@ -330,7 +361,7 @@ homepage: https://github.com/holidays/holidays
330
361
  licenses:
331
362
  - MIT
332
363
  metadata: {}
333
- post_install_message:
364
+ post_install_message:
334
365
  rdoc_options: []
335
366
  require_paths:
336
367
  - lib
@@ -345,9 +376,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
376
  - !ruby/object:Gem::Version
346
377
  version: '0'
347
378
  requirements: []
348
- rubyforge_project:
349
- rubygems_version: 2.4.8
350
- signing_key:
379
+ rubyforge_project:
380
+ rubygems_version: 2.6.11
381
+ signing_key:
351
382
  specification_version: 4
352
383
  summary: A collection of Ruby methods to deal with statutory and other holidays.
353
384
  test_files:
@@ -374,6 +405,7 @@ test_files:
374
405
  - test/defs/test_defs_de.rb
375
406
  - test/defs/test_defs_dk.rb
376
407
  - test/defs/test_defs_ecb_target.rb
408
+ - test/defs/test_defs_ee.rb
377
409
  - test/defs/test_defs_el.rb
378
410
  - test/defs/test_defs_es.rb
379
411
  - test/defs/test_defs_europe.rb
@@ -383,6 +415,7 @@ test_files:
383
415
  - test/defs/test_defs_fi.rb
384
416
  - test/defs/test_defs_fr.rb
385
417
  - test/defs/test_defs_gb.rb
418
+ - test/defs/test_defs_ge.rb
386
419
  - test/defs/test_defs_hk.rb
387
420
  - test/defs/test_defs_hr.rb
388
421
  - test/defs/test_defs_hu.rb
@@ -395,6 +428,8 @@ test_files:
395
428
  - test/defs/test_defs_lt.rb
396
429
  - test/defs/test_defs_lu.rb
397
430
  - test/defs/test_defs_ma.rb
431
+ - test/defs/test_defs_mt_en.rb
432
+ - test/defs/test_defs_mt_mt.rb
398
433
  - test/defs/test_defs_mx.rb
399
434
  - test/defs/test_defs_my.rb
400
435
  - test/defs/test_defs_nerc.rb
@@ -408,12 +443,16 @@ test_files:
408
443
  - test/defs/test_defs_pl.rb
409
444
  - test/defs/test_defs_pt.rb
410
445
  - test/defs/test_defs_ro.rb
446
+ - test/defs/test_defs_rs_cyrl.rb
447
+ - test/defs/test_defs_rs_la.rb
448
+ - test/defs/test_defs_ru.rb
411
449
  - test/defs/test_defs_scandinavia.rb
412
450
  - test/defs/test_defs_se.rb
413
451
  - test/defs/test_defs_sg.rb
414
452
  - test/defs/test_defs_si.rb
415
453
  - test/defs/test_defs_sk.rb
416
454
  - test/defs/test_defs_tn.rb
455
+ - test/defs/test_defs_tr.rb
417
456
  - test/defs/test_defs_united_nations.rb
418
457
  - test/defs/test_defs_ups.rb
419
458
  - test/defs/test_defs_us.rb