holidays 4.2.0 → 4.3.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
  SHA1:
3
- metadata.gz: c74b677a9819268733c692afe11958c2cf1ccaed
4
- data.tar.gz: faedba7eb3f149f92de77ddb7ec567cc708a2485
3
+ metadata.gz: 89acbd996668a34248952b19f1b181e6d0f0b8e5
4
+ data.tar.gz: 0ccb01c70c539b78050b462e4192654e003aa5b3
5
5
  SHA512:
6
- metadata.gz: 7530fa6ee86e2c3fe1136eac771c0d307d89cdb4e870c7fc2f4de8d14af8a967055c1c75ee6299a3e0f6238f3c50ea832c6db715c854a1a09814e32bdd397276
7
- data.tar.gz: 9a608809435239e4ae5a7b7d6f97e3ae085afdd40eac49808b9947287f404442af265bd529508b3c1dfeae3b5f90c209fe967d78615de28906a327dd4222ee26
6
+ metadata.gz: 88dc423ea2d62826823e153a0580b5861060dd16e8ccd66a93406f2dcf311df8d98db1d30f2fa61a6d52c50eca64b4451c36fa4d9c461eb3a7670754c79cca20
7
+ data.tar.gz: 99a86fd72597e01aad65a2b9d7436200d63c854a221da07e0916e2b49fe58cf779d1ccb8bcb0ffd56fdc919933cbd7e1861812f6c5a8352a3f4519fa86adf14f
@@ -1,5 +1,9 @@
1
1
  # Ruby Holidays Gem CHANGELOG
2
2
 
3
+ ## 4.3.0
4
+
5
+ * Update Portuguese holidays to restore 4 holidays (https://github.com/ruippeixotog)
6
+
3
7
  ## 4.2.0
4
8
 
5
9
  * BUGFIX Issue-194: correctly calculate `next_holidays` if next holiday is far in the future
@@ -8,7 +8,7 @@
8
8
  # - http://www.worldtravelguide.net/country/227/public_holidays/Europe/Portugal.html
9
9
  # - http://en.wikipedia.org/wiki/Portugal_Day
10
10
  # - http://www.timeanddate.com/calendar/custom.html?year=2008&country=15
11
- # - http://en.wikipedia.org/wiki/Public_holidays_in_Portugal#Revoked_holidays_in_2012
11
+ # - http://en.wikipedia.org/wiki/Public_holidays_in_Portugal
12
12
  ---
13
13
  months:
14
14
  0:
@@ -24,6 +24,10 @@ months:
24
24
  - name: Páscoa
25
25
  regions: [pt]
26
26
  function: easter(year)
27
+ - name: Corpo de Deus
28
+ regions: [pt]
29
+ function: easter(year)
30
+ function_modifier: 60
27
31
  1:
28
32
  - name: Ano Novo
29
33
  regions: [pt]
@@ -44,7 +48,18 @@ months:
44
48
  - name: Assunção de Nossa Senhora
45
49
  regions: [pt]
46
50
  mday: 15
51
+ 10:
52
+ - name: Dia da República
53
+ regions: [pt]
54
+ mday: 5
55
+ 11:
56
+ - name: Dia de Todos-os-Santos
57
+ regions: [pt]
58
+ mday: 1
47
59
  12:
60
+ - name: Restauração da Independência
61
+ regions: [pt]
62
+ mday: 1
48
63
  - name: Imaculada Conceição
49
64
  regions: [pt]
50
65
  mday: 8
@@ -59,10 +74,15 @@ tests: |
59
74
  Date.civil(2008,2,5) => 'Carnaval',
60
75
  Date.civil(2008,3,21) => 'Sexta-feira Santa',
61
76
  Date.civil(2008,3,23) => 'Páscoa',
77
+ Date.civil(2016,3,27) => 'Páscoa',
62
78
  Date.civil(2008,4,25) => 'Dia da Liberdade',
63
79
  Date.civil(2008,5,1) => 'Dia do Trabalhador',
80
+ Date.civil(2016,5,26) => 'Corpo de Deus',
64
81
  Date.civil(2008,6,10) => 'Dia de Portugal',
65
82
  Date.civil(2008,8,15) => 'Assunção de Nossa Senhora',
83
+ Date.civil(2008,10,5) => 'Dia da República',
84
+ Date.civil(2008,11,1) => 'Dia de Todos-os-Santos',
85
+ Date.civil(2008,12,1) => 'Restauração da Independência',
66
86
  Date.civil(2008,12,8) => 'Imaculada Conceição',
67
87
  Date.civil(2008,12,25) => 'Natal'}.each do |date, name|
68
88
  assert_equal name, (Holidays.on(date, :pt, :informal)[0] || {})[:name]
@@ -1,4 +1,4 @@
1
- # Austrian holiday definitions for the Ruby Holiday gem.
1
+ # Romanian holiday definitions for the Ruby Holiday gem.
2
2
  #
3
3
  # Created: 2013-07-23 by Mihai Târnovan
4
4
  # Sources:
@@ -135,6 +135,7 @@ module Holidays
135
135
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :type => :informal, :name => "Carnaval", :regions => [:pt]},
136
136
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Sexta-feira Santa", :regions => [:pt]},
137
137
  {:function => "easter(year)", :function_arguments => [:year], :name => "Páscoa", :regions => [:pt]},
138
+ {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Corpo de Deus", :regions => [:pt]},
138
139
  {:function => "orthodox_easter(year)", :function_arguments => [:year], :name => "Paștele - duminică", :regions => [:ro]},
139
140
  {:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Paștele - luni", :regions => [:ro]},
140
141
  {:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Rusaliile - 50", :regions => [:ro]},
@@ -281,6 +282,7 @@ module Holidays
281
282
  {:mday => 23, :name => "1956-os forradalom és szabadságharc ünnepe", :regions => [:hu]},
282
283
  {:wday => 1, :week => -1, :name => "October Bank Holiday", :regions => [:ie]},
283
284
  {:mday => 14, :type => :informal, :name => "Dzień Nauczyciela (Dzień Edukacji Narodowej)", :regions => [:pl]},
285
+ {:mday => 5, :name => "Dia da República", :regions => [:pt]},
284
286
  {:mday => 31, :name => "dan reformacije", :regions => [:si]}],
285
287
  11 => [{:mday => 1, :name => "Allerheiligen", :regions => [:at]},
286
288
  {:mday => 1, :name => "Toussaint", :regions => [:be_fr]},
@@ -308,6 +310,7 @@ module Holidays
308
310
  {:mday => 2, :type => :informal, :name => "Dzień Zaduszny", :regions => [:pl]},
309
311
  {:mday => 11, :name => "Narodowe Święto Niepodległości", :regions => [:pl]},
310
312
  {:mday => 29, :type => :informal, :name => "Andrzejki", :regions => [:pl]},
313
+ {:mday => 1, :name => "Dia de Todos-os-Santos", :regions => [:pt]},
311
314
  {:mday => 30, :name => "Sfântul Apostol Andrei", :regions => [:ro]},
312
315
  {:mday => 1, :name => "Sviatok všetkých svätých", :regions => [:sk]},
313
316
  {:mday => 17, :name => "Deň boja za slobodu a demokraciu", :regions => [:sk]},
@@ -377,6 +380,7 @@ module Holidays
377
380
  {:mday => 25, :name => "pierwszy dzień Bożego Narodzenia", :regions => [:pl]},
378
381
  {:mday => 26, :name => "drugi dzień Bożego Narodzenia", :regions => [:pl]},
379
382
  {:mday => 31, :type => :informal, :name => "Sylwester", :regions => [:pl]},
383
+ {:mday => 1, :name => "Restauração da Independência", :regions => [:pt]},
380
384
  {:mday => 8, :name => "Imaculada Conceição", :regions => [:pt]},
381
385
  {:mday => 25, :name => "Natal", :regions => [:pt]},
382
386
  {:mday => 1, :name => "Ziua Națională", :regions => [:ro]},
@@ -20,13 +20,17 @@ module Holidays
20
20
  {
21
21
  0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :type => :informal, :name => "Carnaval", :regions => [:pt]},
22
22
  {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Sexta-feira Santa", :regions => [:pt]},
23
- {:function => "easter(year)", :function_arguments => [:year], :name => "Páscoa", :regions => [:pt]}],
23
+ {:function => "easter(year)", :function_arguments => [:year], :name => "Páscoa", :regions => [:pt]},
24
+ {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Corpo de Deus", :regions => [:pt]}],
24
25
  1 => [{:mday => 1, :name => "Ano Novo", :regions => [:pt]}],
25
26
  4 => [{:mday => 25, :name => "Dia da Liberdade", :regions => [:pt]}],
26
27
  5 => [{:mday => 1, :name => "Dia do Trabalhador", :regions => [:pt]}],
27
28
  6 => [{:mday => 10, :name => "Dia de Portugal", :regions => [:pt]}],
28
29
  8 => [{:mday => 15, :name => "Assunção de Nossa Senhora", :regions => [:pt]}],
29
- 12 => [{:mday => 8, :name => "Imaculada Conceição", :regions => [:pt]},
30
+ 10 => [{:mday => 5, :name => "Dia da República", :regions => [:pt]}],
31
+ 11 => [{:mday => 1, :name => "Dia de Todos-os-Santos", :regions => [:pt]}],
32
+ 12 => [{:mday => 1, :name => "Restauração da Independência", :regions => [:pt]},
33
+ {:mday => 8, :name => "Imaculada Conceição", :regions => [:pt]},
30
34
  {:mday => 25, :name => "Natal", :regions => [:pt]}]
31
35
  }
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module Holidays
2
- VERSION = '4.2.0'
2
+ VERSION = '4.3.0'
3
3
  end
@@ -692,10 +692,15 @@ end
692
692
  Date.civil(2008,2,5) => 'Carnaval',
693
693
  Date.civil(2008,3,21) => 'Sexta-feira Santa',
694
694
  Date.civil(2008,3,23) => 'Páscoa',
695
+ Date.civil(2016,3,27) => 'Páscoa',
695
696
  Date.civil(2008,4,25) => 'Dia da Liberdade',
696
697
  Date.civil(2008,5,1) => 'Dia do Trabalhador',
698
+ Date.civil(2016,5,26) => 'Corpo de Deus',
697
699
  Date.civil(2008,6,10) => 'Dia de Portugal',
698
700
  Date.civil(2008,8,15) => 'Assunção de Nossa Senhora',
701
+ Date.civil(2008,10,5) => 'Dia da República',
702
+ Date.civil(2008,11,1) => 'Dia de Todos-os-Santos',
703
+ Date.civil(2008,12,1) => 'Restauração da Independência',
699
704
  Date.civil(2008,12,8) => 'Imaculada Conceição',
700
705
  Date.civil(2008,12,25) => 'Natal'}.each do |date, name|
701
706
  assert_equal name, (Holidays.on(date, :pt, :informal)[0] || {})[:name]
@@ -14,10 +14,15 @@ class PtDefinitionTests < Test::Unit::TestCase # :nodoc:
14
14
  Date.civil(2008,2,5) => 'Carnaval',
15
15
  Date.civil(2008,3,21) => 'Sexta-feira Santa',
16
16
  Date.civil(2008,3,23) => 'Páscoa',
17
+ Date.civil(2016,3,27) => 'Páscoa',
17
18
  Date.civil(2008,4,25) => 'Dia da Liberdade',
18
19
  Date.civil(2008,5,1) => 'Dia do Trabalhador',
20
+ Date.civil(2016,5,26) => 'Corpo de Deus',
19
21
  Date.civil(2008,6,10) => 'Dia de Portugal',
20
22
  Date.civil(2008,8,15) => 'Assunção de Nossa Senhora',
23
+ Date.civil(2008,10,5) => 'Dia da República',
24
+ Date.civil(2008,11,1) => 'Dia de Todos-os-Santos',
25
+ Date.civil(2008,12,1) => 'Restauração da Independência',
21
26
  Date.civil(2008,12,8) => 'Imaculada Conceição',
22
27
  Date.civil(2008,12,25) => 'Natal'}.each do |date, name|
23
28
  assert_equal name, (Holidays.on(date, :pt, :informal)[0] || {})[:name]
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: 4.2.0
4
+ version: 4.3.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: 2016-06-06 00:00:00.000000000 Z
12
+ date: 2016-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler