holiday_co 0.1.1 → 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: d98a508fbb74fa5478382286350595616036e7c89ac406b6ab5af442fd4719a0
4
- data.tar.gz: e8f5c6848c01040bff12f2ef0df092f77bb58815eac2a35a623c5cb7934302c4
3
+ metadata.gz: f2c2ba7bba510f383e1d701c3565d0271fbb14d001e3882f2f8cd6b657a10cce
4
+ data.tar.gz: 6274a0561a3ea7d0cc3d03635ad811a1c8ab1b2ffe6cd65097672970aa292ad7
5
5
  SHA512:
6
- metadata.gz: 334c3aed3b5e54ede14ebb7bd1081ee3c03edc00bbc7dc8738ae4403652e4363f604b8888c0737e245252227e7d5d7f946863588d2d5fdcfcecd067d6cf1839d
7
- data.tar.gz: edd1f16e82010a21e233dc2af79730a487608f51540647fb15adfa1dce8332edc1228b49aee5957d89bc4692c73eddd5dd4f6a286cd3ddfb425b7cd8b1103a96
6
+ metadata.gz: 015fdbccaf79f11ece462eabfb5ccf5a6f65927a84c129aa07a1acab2d68a4d93b087443015dd287a18db1e3eb6cf93ae6d6372a6fd3e34c242b039382241d34
7
+ data.tar.gz: ac165e38cc13d236f5f42105fba24f87135010d742e75e2561f143679631cd6ad7b3e020af383c442c56c6dd2b93772bd09793f85ee2ecef78f22957df79ab1b
@@ -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.1"
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.1
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:
@@ -20,6 +20,7 @@ files:
20
20
  - data/years.yml
21
21
  - data/years/2023.yml
22
22
  - data/years/2024.yml
23
+ - data/years/2025.yml
23
24
  - lib/holiday_co.rb
24
25
  - lib/holiday_co/models/day.rb
25
26
  - lib/holiday_co/models/year.rb