christian_calendar 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -2
- data/lib/christian_calendar.rb +6 -9
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcc04592d62e2cde1f6995990655757af934c049
|
4
|
+
data.tar.gz: eda61d2ebe26f0054afb39f0596c17be70f625ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d8c7cfca2d6fb064ca341f59d18deb2aec4d322368d385153592c106fec6fe3bc796cb38bccf4b99d0dfab964699356b7a1359619c7c8259b3b27aeaf4d380f
|
7
|
+
data.tar.gz: ebe6001c05b8a6a5d1da5f85156b7f529e351d3488ff591fe2bf1e526ecdeada54ce69077f0b900d1ee604afd3436caf57a8a7d98377b919e58669a3fb38f30c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
=�H�Qr5;���}n���CV"t�(<lp�'���m��3b��ZL�e�J�%�i�8Ս5�^��]��}fU��`7�&4{s�$�R'N�@ڃ��`c������N��^!̊��
|
2
|
+
Y�t����Ay�k������ش��DO�����Ѳ���^�H4�O*�N�m������d��CqD���eY�c�%���{:[�:�`-�U�w��M�~��`G :I�%H7�&� =��䶬AM
|
data/lib/christian_calendar.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
#file: christian_calendar.rb
|
3
|
+
# file: christian_calendar.rb
|
4
4
|
|
5
5
|
require 'easter'
|
6
6
|
require 'chronic'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
DAY = HOUR * 24
|
11
|
-
WEEK = DAY * 7
|
12
|
-
MONTH = DAY * 30
|
8
|
+
|
9
|
+
WEEK = 7
|
13
10
|
|
14
11
|
class ChristianCalendar
|
15
12
|
|
@@ -18,7 +15,7 @@ class ChristianCalendar
|
|
18
15
|
end
|
19
16
|
|
20
17
|
def epiphany()
|
21
|
-
christmas(@year - 1) +
|
18
|
+
christmas(@year - 1) + 12
|
22
19
|
end
|
23
20
|
|
24
21
|
def st_davids_day(year=@year)
|
@@ -32,7 +29,7 @@ class ChristianCalendar
|
|
32
29
|
end
|
33
30
|
|
34
31
|
def mothering_sunday()
|
35
|
-
|
32
|
+
Chronic.parse('sunday', now: ash_wednesday).to_date + WEEK * 3
|
36
33
|
end
|
37
34
|
|
38
35
|
def st_patricks_day(year=@year)
|
@@ -81,7 +78,7 @@ class ChristianCalendar
|
|
81
78
|
alias saint_andrews_day st_andrews_day
|
82
79
|
|
83
80
|
def advent_sunday()
|
84
|
-
|
81
|
+
Chronic.parse('sunday', now: christmas).to_date - WEEK * 4
|
85
82
|
end
|
86
83
|
|
87
84
|
def christmas(year=@year)
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|