holiday_co 0.1.0 → 1.0.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: 54948857733519963c3d42cdf2bf4e81d71ac72388f144650717d57adfeffc4f
4
- data.tar.gz: 7231619889a4d1f88d014be6eae490aaa417fef4bd092c79b10c21993c595ef1
3
+ metadata.gz: f2c2ba7bba510f383e1d701c3565d0271fbb14d001e3882f2f8cd6b657a10cce
4
+ data.tar.gz: 6274a0561a3ea7d0cc3d03635ad811a1c8ab1b2ffe6cd65097672970aa292ad7
5
5
  SHA512:
6
- metadata.gz: 84f6c942bc60bb0752b7ddfb8b5d8b421b1254b3cb4efbb34921798a4435bd21e65d624fae4498227500cf7977d1c10cda53b6b0a51b5b050c439da6cbe461cb
7
- data.tar.gz: d311a1ea85b85ad43b099c56b771a0926cfeadf5f59c2f1e957461d0fef6098b4051ed8bf3be9d0b362c1816b99f8aab9dd85fbf59e388356b92b5d3a7d07390
6
+ metadata.gz: 015fdbccaf79f11ece462eabfb5ccf5a6f65927a84c129aa07a1acab2d68a4d93b087443015dd287a18db1e3eb6cf93ae6d6372a6fd3e34c242b039382241d34
7
+ data.tar.gz: ac165e38cc13d236f5f42105fba24f87135010d742e75e2561f143679631cd6ad7b3e020af383c442c56c6dd2b93772bd09793f85ee2ecef78f22957df79ab1b
@@ -0,0 +1,39 @@
1
+ description: Lista de festivos Colombianos 2023
2
+ source: https://www.festivos.com.co/
3
+ holidays:
4
+ - name: Año Nuevo
5
+ date: '2023-01-01'
6
+ - name: Epifanía
7
+ date: '2023-01-09'
8
+ - name: Día de San José
9
+ date: '2023-03-20'
10
+ - name: Jueves Santo
11
+ date: '2023-04-06'
12
+ - name: Viernes Santo
13
+ date: '2023-04-07'
14
+ - name: Día del trabajo
15
+ date: '2023-05-01'
16
+ - name: Ascención de Jesús
17
+ date: '2023-05-22'
18
+ - name: Corpus Christi
19
+ date: '2023-06-12'
20
+ - name: Sagrado Corazón de Jesús
21
+ date: '2023-06-19'
22
+ - name: San Pedro y San Pablo
23
+ date: '2023-07-03'
24
+ - name: Día de la independencia
25
+ date: '2023-07-20'
26
+ - name: Batalla de Boyacá
27
+ date: '2023-08-07'
28
+ - name: Asunción de la Virgen
29
+ date: '2023-08-21'
30
+ - name: Día de la raza
31
+ date: '2023-10-16'
32
+ - name: Todos los Santos
33
+ date: '2023-11-06'
34
+ - name: Independencia de Cartagena
35
+ date: '2023-11-13'
36
+ - name: Inmaculada Concepción
37
+ date: '2023-12-08'
38
+ - name: Navidad
39
+ date: '2023-12-25'
@@ -0,0 +1,39 @@
1
+ description: Lista de festivos Colombianos 2024
2
+ source: https://www.festivos.com.co/
3
+ holidays:
4
+ - name: Año Nuevo
5
+ date: '2024-01-01'
6
+ - name: Epifanía
7
+ date: '2024-01-08'
8
+ - name: Día de San José
9
+ date: '2024-03-25'
10
+ - name: Jueves Santo
11
+ date: '2024-03-28'
12
+ - name: Viernes Santo
13
+ date: '2024-03-29'
14
+ - name: Día del trabajo
15
+ date: '2024-05-01'
16
+ - name: Ascención de Jesús
17
+ date: '2024-05-13'
18
+ - name: Corpus Christi
19
+ date: '2024-06-03'
20
+ - name: Sagrado Corazón de Jesús
21
+ date: '2024-06-10'
22
+ - name: San Pedro y San Pablo
23
+ date: '2024-07-01'
24
+ - name: Día de la independencia
25
+ date: '2024-07-20'
26
+ - name: Batalla de Boyacá
27
+ date: '2024-08-07'
28
+ - name: Asunción de la Virgen
29
+ date: '2024-08-19'
30
+ - name: Día de la raza
31
+ date: '2024-10-14'
32
+ - name: Todos los Santos
33
+ date: '2024-11-04'
34
+ - name: Independencia de Cartagena
35
+ date: '2024-11-11'
36
+ - name: Inmaculada Concepción
37
+ date: '2024-12-08'
38
+ - name: Navidad
39
+ date: '2024-12-25'
@@ -0,0 +1,43 @@
1
+ description: Lista de festivos Colombianos 2025
2
+ source: https://www.festivos.com.co/
3
+ holidays:
4
+ - name: Año Nuevo
5
+ date: '2024-01-01'
6
+ - name: Epifanía
7
+ date: '2024-01-08'
8
+ - name: Año Nuevo
9
+ date: '2025-01-01'
10
+ - name: Epifanía
11
+ date: '2025-01-06'
12
+ - name: Día de San José
13
+ date: '2025-03-24'
14
+ - name: Jueves Santo
15
+ date: '2025-04-17'
16
+ - name: Viernes Santo
17
+ date: '2025-04-18'
18
+ - name: Día del trabajo
19
+ date: '2025-05-01'
20
+ - name: Ascención de Jesús
21
+ date: '2025-06-02'
22
+ - name: Corpus Christi
23
+ date: '2025-06-23'
24
+ - name: Sagrado Corazón de Jesús
25
+ date: '2025-06-30'
26
+ - name: San Pedro y San Pablo
27
+ date: '2025-06-30'
28
+ - name: Día de la independencia
29
+ date: '2025-07-20'
30
+ - name: Batalla de Boyacá
31
+ date: '2025-08-07'
32
+ - name: Asunción de la Virgen
33
+ date: '2025-08-18'
34
+ - name: Día de la raza
35
+ date: '2025-10-13'
36
+ - name: Todos los Santos
37
+ date: '2025-11-03'
38
+ - name: Independencia de Cartagena
39
+ date: '2025-11-17'
40
+ - name: Inmaculada Concepción
41
+ date: '2025-12-08'
42
+ - name: Navidad
43
+ date: '2025-12-25'
data/data/years.yml CHANGED
@@ -2,3 +2,4 @@
2
2
 
3
3
  - 2023
4
4
  - 2024
5
+ - 2025
@@ -1,3 +1,3 @@
1
1
  module HolidayCo
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/holiday_co.rb CHANGED
@@ -11,6 +11,8 @@ module HolidayCo
11
11
  Day.new(date).holiday?
12
12
  end
13
13
 
14
+ alias_method :holiday?, :is_holiday?
15
+
14
16
  def holidays(year = current_year)
15
17
  Year.new(year).holidays
16
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holiday_co
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Coronado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-08 00:00:00.000000000 Z
11
+ date: 2023-09-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple gem to handle holidays in Colombia
14
14
  email:
@@ -18,6 +18,9 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - data/years.yml
21
+ - data/years/2023.yml
22
+ - data/years/2024.yml
23
+ - data/years/2025.yml
21
24
  - lib/holiday_co.rb
22
25
  - lib/holiday_co/models/day.rb
23
26
  - lib/holiday_co/models/year.rb