holidays 8.0.0 → 8.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0b6025ff59f3285d0943918ce173cec21de75b47aafd27ac52e0e2602cee6d9
4
- data.tar.gz: f660e8cafd95f04f42fb920bd6091f7e460f0470fec7d09f36a558b212d70939
3
+ metadata.gz: a7e747f791773eb094fe0cb7f9ac60f9feb5b7c8c0e1886b1691331a75729131
4
+ data.tar.gz: 1e2e0069dae2040d7802d785aa3026119d6711e110804d287f178534701a83c6
5
5
  SHA512:
6
- metadata.gz: f5e0c4438e411dc9a2eca35e165f11b6175e1c20aa59ee03d268a5ee7ec3b62d4b8d07b9356224f72aab2bbc7a2d89e9961f612d773aad679c575e25f501c29f
7
- data.tar.gz: c5fd2f22e7bde4e778c5729b4efd51359bb6dfa31b0f07041d76f51df911965bdfd7f5ee0ff763bb53204ca076419d3060ca2f9413f115d11088f4f82d7e7a09
6
+ metadata.gz: '0984e8c934fafbf9668f21185ca483afb79fb187854df55ced9a8095321cf5e4e7260d6ea63ef854ce32649babef9664765447d71a275f24a973d792113e4f51'
7
+ data.tar.gz: 2336400211e78b5b28521efa522e96bff495fb5e7d93d3f05c2bd92868d637edc6f90dae3ae135737f31c2f62a8e322a06af6eda61a1c4009b91adea55a3bb01
@@ -1,5 +1,10 @@
1
1
  # Ruby Holidays Gem CHANGELOG
2
2
 
3
+ ## 8.1.0
4
+
5
+ * Update submodule definitions, so that the newest holidays from the definition
6
+ gem are represent here.
7
+
3
8
  ## 8.0.0
4
9
 
5
10
  * Remove support for ruby 2.2 and ruby 2.3.
@@ -53,7 +53,7 @@ module Holidays
53
53
  {:wday => 1, :week => 1, :name => "Terry Fox Day", :regions => [:ca_mb]},
54
54
  {:wday => 1, :week => 3, :name => "Discovery Day", :regions => [:ca_yt]}],
55
55
  9 => [{:wday => 1, :week => 1, :name => "Labour Day", :regions => [:ca]}],
56
- 10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca_ab, :ca_bc, :ca_mb, :ca_nt, :ca_nu, :ca_on, :ca_sk, :ca_yt]},
56
+ 10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca_ab, :ca_bc, :ca_mb, :ca_nt, :ca_nu, :ca_on, :ca_qc, :ca_sk, :ca_yt]},
57
57
  {:mday => 31, :type => :informal, :name => "Halloween", :regions => [:us, :ca]}],
58
58
  11 => [{:mday => 11, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "Remembrance Day", :regions => [:ca_ab, :ca_sk, :ca_bc, :ca_pe, :ca_nl, :ca_nt, :ca_nu, :ca_nb, :ca_yt]}],
59
59
  12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:ca]},
@@ -25,7 +25,8 @@ module Holidays
25
25
  1 => [{:mday => 1, :name => "Neujahrstag", :regions => [:de]},
26
26
  {:mday => 6, :name => "Heilige Drei Könige", :regions => [:de_bw, :de_by, :de_st]}],
27
27
  3 => [{:mday => 8, :year_ranges => { :from => 2019 },:name => "Internationaler Frauentag", :regions => [:de_be]}],
28
- 5 => [{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]}],
28
+ 5 => [{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]},
29
+ {:mday => 8, :year_ranges => { :limited => [2020] },:name => "Tag der Befreiung", :regions => [:de_be]}],
29
30
  8 => [{:mday => 15, :name => "Mariä Himmelfahrt", :regions => [:de_by_cath, :de_by_augsburg, :de_sl]},
30
31
  {:mday => 8, :name => "Friedensfest", :regions => [:de_by_augsburg]}],
31
32
  10 => [{:mday => 3, :name => "Tag der Deutschen Einheit", :regions => [:de]},
@@ -175,7 +175,7 @@ module Holidays
175
175
  {:mday => 1, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:gb]},
176
176
  {:mday => 2, :observed => "to_weekday_if_boxing_weekend(date)", :observed_arguments => [:date], :name => "2nd January", :regions => [:gb_sct]},
177
177
  {:mday => 1, :name => "Nova godina", :regions => [:hr]},
178
- {:mday => 6, :name => "Sveta tri kralja", :regions => [:hr]},
178
+ {:mday => 6, :name => "Bogojavljenje ili Sveta tri kralja", :regions => [:hr]},
179
179
  {:mday => 1, :name => "Újév", :regions => [:hu]},
180
180
  {:mday => 1, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ie]},
181
181
  {:mday => 1, :name => "Nýársdagur", :regions => [:is]},
@@ -214,6 +214,7 @@ module Holidays
214
214
  {:mday => 1, :type => :informal, :name => "Arbejdernes kampdag", :regions => [:dk]},
215
215
  {:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]},
216
216
  {:mday => 1, :name => "Tag der Arbeit", :regions => [:de]},
217
+ {:mday => 8, :year_ranges => { :limited => [2020] },:name => "Tag der Befreiung", :regions => [:de_be]},
217
218
  {:mday => 1, :name => "Πρωτομαγιά", :regions => [:el]},
218
219
  {:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día del Trabajador", :regions => [:es]},
219
220
  {:mday => 2, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Fiesta de la Comunidad", :regions => [:es_m]},
@@ -226,7 +227,8 @@ module Holidays
226
227
  {:wday => 1, :week => 1, :year_ranges => { :from => 2021 },:name => "May Day", :regions => [:gb]},
227
228
  {:mday => 9, :name => "Liberation Day", :regions => [:je, :gb_jsy, :gg, :gb_gsy]},
228
229
  {:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:gb]},
229
- {:mday => 1, :name => "Međunarodni praznik rada", :regions => [:hr]},
230
+ {:mday => 1, :name => "Praznik rada", :regions => [:hr]},
231
+ {:mday => 30, :year_ranges => { :from => 2020 },:name => "Dan državnosti", :regions => [:hr]},
230
232
  {:mday => 1, :name => "A munka ünnepe", :regions => [:hu]},
231
233
  {:wday => 1, :week => 1, :name => "May Day", :regions => [:ie]},
232
234
  {:mday => 1, :name => "Verkalýðsdagurinn", :regions => [:is]},
@@ -272,7 +274,7 @@ module Holidays
272
274
  {:mday => 15, :name => "Assomption", :regions => [:fr]},
273
275
  {:wday => 1, :week => 1, :name => "Bank Holiday", :regions => [:gb_sct]},
274
276
  {:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy]},
275
- {:mday => 5, :name => "Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja", :regions => [:hr]},
277
+ {:mday => 5, :name => "Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja", :regions => [:hr]},
276
278
  {:mday => 15, :name => "Velika Gospa", :regions => [:hr]},
277
279
  {:mday => 20, :name => "Az államalapítás ünnepe", :regions => [:hu]},
278
280
  {:wday => 1, :week => 1, :name => "August Bank Holiday", :regions => [:ie]},
@@ -297,7 +299,7 @@ module Holidays
297
299
  {:mday => 28, :name => "Επέτειος του Όχι", :regions => [:el]},
298
300
  {:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
299
301
  {:mday => 12, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Hispanidad", :regions => [:es]},
300
- {:mday => 8, :name => "Dan neovisnosti", :regions => [:hr]},
302
+ {:mday => 8, :year_ranges => { :until => 2020 },:name => "Dan neovisnosti", :regions => [:hr]},
301
303
  {:mday => 23, :name => "1956-os forradalom és szabadságharc ünnepe", :regions => [:hu]},
302
304
  {:wday => 1, :week => -1, :name => "October Bank Holiday", :regions => [:ie]},
303
305
  {:mday => 14, :type => :informal, :name => "Dzień Nauczyciela (Dzień Edukacji Narodowej)", :regions => [:pl]},
@@ -320,7 +322,8 @@ module Holidays
320
322
  {:mday => 5, :type => :informal, :name => "Guy Fawkes Day", :regions => [:gb]},
321
323
  {:mday => 30, :year_ranges => { :until => 2006 },:observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :type => :informal, :name => "St. Andrew's Day", :regions => [:gb_sct]},
322
324
  {:mday => 30, :year_ranges => { :from => 2007 },:observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "St. Andrew's Day", :regions => [:gb_sct]},
323
- {:mday => 1, :name => "Dan svih svetih", :regions => [:hr]},
325
+ {:mday => 1, :name => "Svi sveti", :regions => [:hr]},
326
+ {:mday => 18, :year_ranges => { :from => 2020 },:name => "Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje", :regions => [:hr]},
324
327
  {:mday => 1, :name => "Mindenszentek", :regions => [:hu]},
325
328
  {:mday => 16, :name => "Dagur íslenskrar tungu", :regions => [:is]},
326
329
  {:mday => 1, :name => "Ognissanti", :regions => [:it]},
@@ -478,7 +481,7 @@ module Holidays
478
481
  {:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de La Rioja", :regions => [:es_lo]},
479
482
  {:mday => 24, :name => "San Juan", :regions => [:es_ct, :es_vc]},
480
483
  {:mday => 22, :name => "Dan antifašističke borbe", :regions => [:hr]},
481
- {:mday => 25, :name => "Dan državnosti", :regions => [:hr]},
484
+ {:mday => 25, :year_ranges => { :until => 2020 },:name => "Dan državnosti", :regions => [:hr]},
482
485
  {:wday => 1, :week => 1, :name => "June Bank Holiday", :regions => [:ie]},
483
486
  {:mday => 3, :type => :informal, :name => "Sjómannadagurinn", :regions => [:is]},
484
487
  {:mday => 17, :name => "Lýðveldisdagurinn", :regions => [:is]},
@@ -16,14 +16,16 @@ module Holidays
16
16
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Uskrsni ponedjeljak", :regions => [:hr]},
17
17
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Tijelovo", :regions => [:hr]}],
18
18
  1 => [{:mday => 1, :name => "Nova godina", :regions => [:hr]},
19
- {:mday => 6, :name => "Sveta tri kralja", :regions => [:hr]}],
20
- 5 => [{:mday => 1, :name => "Međunarodni praznik rada", :regions => [:hr]}],
19
+ {:mday => 6, :name => "Bogojavljenje ili Sveta tri kralja", :regions => [:hr]}],
20
+ 5 => [{:mday => 1, :name => "Praznik rada", :regions => [:hr]},
21
+ {:mday => 30, :year_ranges => { :from => 2020 },:name => "Dan državnosti", :regions => [:hr]}],
21
22
  6 => [{:mday => 22, :name => "Dan antifašističke borbe", :regions => [:hr]},
22
- {:mday => 25, :name => "Dan državnosti", :regions => [:hr]}],
23
- 8 => [{:mday => 5, :name => "Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja", :regions => [:hr]},
23
+ {:mday => 25, :year_ranges => { :until => 2020 },:name => "Dan državnosti", :regions => [:hr]}],
24
+ 8 => [{:mday => 5, :name => "Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja", :regions => [:hr]},
24
25
  {:mday => 15, :name => "Velika Gospa", :regions => [:hr]}],
25
- 10 => [{:mday => 8, :name => "Dan neovisnosti", :regions => [:hr]}],
26
- 11 => [{:mday => 1, :name => "Dan svih svetih", :regions => [:hr]}],
26
+ 10 => [{:mday => 8, :year_ranges => { :until => 2020 },:name => "Dan neovisnosti", :regions => [:hr]}],
27
+ 11 => [{:mday => 1, :name => "Svi sveti", :regions => [:hr]},
28
+ {:mday => 18, :year_ranges => { :from => 2020 },:name => "Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje", :regions => [:hr]}],
27
29
  12 => [{:mday => 25, :name => "Božić", :regions => [:hr]},
28
30
  {:mday => 26, :name => "Sveti Stjepan", :regions => [:hr]}]
29
31
  }
@@ -103,7 +103,7 @@ module Holidays
103
103
  {:wday => 1, :week => 1, :name => "Labor Day", :regions => [:us]},
104
104
  {:function => "rosh_hashanah(year)", :function_arguments => [:year], :name => "Rosh Hashanah", :regions => [:us_tx]},
105
105
  {:function => "yom_kippur(year)", :function_arguments => [:year], :name => "Yom Kippur", :regions => [:us_tx]}],
106
- 10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca_ab, :ca_bc, :ca_mb, :ca_nt, :ca_nu, :ca_on, :ca_sk, :ca_yt]},
106
+ 10 => [{:wday => 1, :week => 2, :name => "Thanksgiving", :regions => [:ca_ab, :ca_bc, :ca_mb, :ca_nt, :ca_nu, :ca_on, :ca_qc, :ca_sk, :ca_yt]},
107
107
  {:mday => 12, :type => :informal, :name => "Día de la Raza", :regions => [:mx]},
108
108
  {:wday => 1, :week => 2, :name => "Columbus Day", :regions => [:us_al, :us_az, :us_co, :us_ct, :us_dc, :us_ga, :us_id, :us_il, :us_in, :us_ma, :us_md, :us_me, :us_mo, :us_mt, :us_ne, :us_nj, :us_nm, :us_ny, :us_oh, :us_pa, :us_ri, :us_ut, :us_va, :us_wv]},
109
109
  {:wday => 1, :week => 2, :type => :informal, :name => "Columbus Day", :regions => [:us_ak, :us_ar, :us_ca, :us_de, :us_fl, :us_hi, :us_mi, :us_mn, :us_nd, :us_nv, :us_or, :us_sd, :us_tx, :us_vt, :us_wa, :us_wi, :us_wy]},
@@ -1,3 +1,3 @@
1
1
  module Holidays
2
- VERSION = '8.0.0'
2
+ VERSION = '8.1.0'
3
3
  end
@@ -79,5 +79,7 @@ class DeDefinitionTests < Test::Unit::TestCase # :nodoc:
79
79
 
80
80
  assert_equal "Internationaler Frauentag", (Holidays.on(Date.civil(2019, 3, 8), [:de_be])[0] || {})[:name]
81
81
 
82
+ assert_equal "Tag der Befreiung", (Holidays.on(Date.civil(2020, 5, 8), [:de_be])[0] || {})[:name]
83
+
82
84
  end
83
85
  end
@@ -261,6 +261,8 @@ class EuropeDefinitionTests < Test::Unit::TestCase # :nodoc:
261
261
 
262
262
  assert_equal "Internationaler Frauentag", (Holidays.on(Date.civil(2019, 3, 8), [:de_be])[0] || {})[:name]
263
263
 
264
+ assert_equal "Tag der Befreiung", (Holidays.on(Date.civil(2020, 5, 8), [:de_be])[0] || {})[:name]
265
+
264
266
  assert_equal "Πρωτοχρονιά", (Holidays.on(Date.civil(2011, 1, 1), [:el], [:informal])[0] || {})[:name]
265
267
 
266
268
  assert_equal "Θεοφάνεια", (Holidays.on(Date.civil(2011, 1, 6), [:el], [:informal])[0] || {})[:name]
@@ -555,21 +557,21 @@ class EuropeDefinitionTests < Test::Unit::TestCase # :nodoc:
555
557
 
556
558
  assert_equal "Nova godina", (Holidays.on(Date.civil(2012, 1, 1), [:hr], [:informal])[0] || {})[:name]
557
559
 
558
- assert_equal "Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
560
+ assert_equal "Bogojavljenje ili Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
559
561
 
560
- assert_equal "Međunarodni praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
562
+ assert_equal "Praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
561
563
 
562
564
  assert_equal "Dan antifašističke borbe", (Holidays.on(Date.civil(2012, 6, 22), [:hr], [:informal])[0] || {})[:name]
563
565
 
564
- assert_equal "Dan državnosti", (Holidays.on(Date.civil(2012, 6, 25), [:hr], [:informal])[0] || {})[:name]
566
+ assert_equal "Dan državnosti", (Holidays.on(Date.civil(2020, 5, 30), [:hr], [:informal])[0] || {})[:name]
565
567
 
566
- assert_equal "Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
568
+ assert_equal "Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
567
569
 
568
570
  assert_equal "Velika Gospa", (Holidays.on(Date.civil(2012, 8, 15), [:hr], [:informal])[0] || {})[:name]
569
571
 
570
- assert_equal "Dan neovisnosti", (Holidays.on(Date.civil(2012, 10, 8), [:hr], [:informal])[0] || {})[:name]
572
+ assert_equal "Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje", (Holidays.on(Date.civil(2020, 11, 18), [:hr], [:informal])[0] || {})[:name]
571
573
 
572
- assert_equal "Dan svih svetih", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
574
+ assert_equal "Svi sveti", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
573
575
 
574
576
  assert_equal "Božić", (Holidays.on(Date.civil(2012, 12, 25), [:hr], [:informal])[0] || {})[:name]
575
577
 
@@ -9,21 +9,21 @@ class HrDefinitionTests < Test::Unit::TestCase # :nodoc:
9
9
  def test_hr
10
10
  assert_equal "Nova godina", (Holidays.on(Date.civil(2012, 1, 1), [:hr], [:informal])[0] || {})[:name]
11
11
 
12
- assert_equal "Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
12
+ assert_equal "Bogojavljenje ili Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
13
13
 
14
- assert_equal "Međunarodni praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
14
+ assert_equal "Praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
15
15
 
16
16
  assert_equal "Dan antifašističke borbe", (Holidays.on(Date.civil(2012, 6, 22), [:hr], [:informal])[0] || {})[:name]
17
17
 
18
- assert_equal "Dan državnosti", (Holidays.on(Date.civil(2012, 6, 25), [:hr], [:informal])[0] || {})[:name]
18
+ assert_equal "Dan državnosti", (Holidays.on(Date.civil(2020, 5, 30), [:hr], [:informal])[0] || {})[:name]
19
19
 
20
- assert_equal "Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
20
+ assert_equal "Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
21
21
 
22
22
  assert_equal "Velika Gospa", (Holidays.on(Date.civil(2012, 8, 15), [:hr], [:informal])[0] || {})[:name]
23
23
 
24
- assert_equal "Dan neovisnosti", (Holidays.on(Date.civil(2012, 10, 8), [:hr], [:informal])[0] || {})[:name]
24
+ assert_equal "Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje", (Holidays.on(Date.civil(2020, 11, 18), [:hr], [:informal])[0] || {})[:name]
25
25
 
26
- assert_equal "Dan svih svetih", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
26
+ assert_equal "Svi sveti", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
27
27
 
28
28
  assert_equal "Božić", (Holidays.on(Date.civil(2012, 12, 25), [:hr], [:informal])[0] || {})[:name]
29
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-25 00:00:00.000000000 Z
12
+ date: 2020-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler