christian_calendar 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/lib/christian_calendar.rb +9 -9
- metadata +18 -18
- 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: 899f78f97ff2817680ba1cad76e3580e68f40d4d
|
4
|
+
data.tar.gz: b458b8f77be91f8a0bd85b8aa3c0b9c4dff24726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f4ca83595d56fab70995678fa5d8a81cc69df30a9eb96409bbed87bd2cd9b5c55ea2c8741bc50215c4de604679d05ed3653d1f9dff419fce722761918e4a63f
|
7
|
+
data.tar.gz: e47b99b6f5e14c4b842114ab6db9f76ffdd8b5e5005bd838dbcf65dec78b37825ec0ec7e29a8f80bb998a27418a4718565438642b54419297e2169baa5bf9a5a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�@�=2�a�A�E:���������'��.���1���E<ҟ�Ee9zu�s!�),�R3Mvt�7���Se��NZM�|�Cy_&�Wm�R���a�"H�2��0$���`���T""J�0����w��1��+=-�p�}~K���k��?��!{e|�1����c�X#�[����)���cpJu�AX�iL
|
2
|
+
�8-�Űk���R�Gq��/�>�Ĝ0dO�G*Q}��7M��F����X*�ˢ�Y����Q����uU6
|
data/lib/christian_calendar.rb
CHANGED
@@ -22,7 +22,7 @@ class ChristianCalendar
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def st_davids_day(year=@year)
|
25
|
-
|
25
|
+
Date.new(year, 3, 1)
|
26
26
|
end
|
27
27
|
|
28
28
|
alias saint_davids_day st_davids_day
|
@@ -32,11 +32,11 @@ class ChristianCalendar
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def mothering_sunday()
|
35
|
-
Chronic.parse('sunday', now: ash_wednesday) + WEEK * 3
|
35
|
+
(Chronic.parse('sunday', now: ash_wednesday) + WEEK * 3).to_date
|
36
36
|
end
|
37
37
|
|
38
38
|
def st_patricks_day(year=@year)
|
39
|
-
|
39
|
+
Date.new(year, 3, 17)
|
40
40
|
end
|
41
41
|
|
42
42
|
alias saint_patricks_day st_patricks_day
|
@@ -57,11 +57,11 @@ class ChristianCalendar
|
|
57
57
|
|
58
58
|
def whit_sunday()
|
59
59
|
Chronic.parse('sunday', \
|
60
|
-
now: Chronic.parse('15 May', now: Time.local(@year,1,1)))
|
60
|
+
now: Chronic.parse('15 May', now: Time.local(@year,1,1))).to_date
|
61
61
|
end
|
62
62
|
|
63
63
|
def trinity_sunday()
|
64
|
-
Chronic.parse('sunday', now: pentecost)
|
64
|
+
Chronic.parse('sunday', now: pentecost).to_date
|
65
65
|
end
|
66
66
|
|
67
67
|
def ascension_day()
|
@@ -75,17 +75,17 @@ class ChristianCalendar
|
|
75
75
|
alias pentecost_sunday pentecost
|
76
76
|
|
77
77
|
def st_andrews_day(year=@year)
|
78
|
-
|
78
|
+
Date.new(year, 11, 30)
|
79
79
|
end
|
80
80
|
|
81
81
|
alias saint_andrews_day st_andrews_day
|
82
82
|
|
83
83
|
def advent_sunday()
|
84
|
-
Chronic.parse('sunday', now: christmas) - WEEK * 4
|
84
|
+
(Chronic.parse('sunday', now: christmas) - WEEK * 4).to_date
|
85
85
|
end
|
86
86
|
|
87
87
|
def christmas(year=@year)
|
88
|
-
|
88
|
+
Date.new(year, 12, 25)
|
89
89
|
end
|
90
90
|
|
91
91
|
def to_h
|
@@ -108,4 +108,4 @@ if __FILE__ == $0 then
|
|
108
108
|
cc.advent_sunday
|
109
109
|
|
110
110
|
cc.to_h
|
111
|
-
end
|
111
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: christian_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MDMxNjE1MTQxMVoXDTE1MDMxNjE1MTQxMVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAOHrtFmgx4QHiY6NRzYQuRV/SuccjCYAVBKBOdjqZwz8PVb/DFoHgOiGFLpv
|
19
|
+
k8N0wiDFjJxBqGv0lmlsj1QoHlk1z8ng48YS6HqUvBXsy0SbKtn3/UfeFlfjS7ZY
|
20
|
+
525M8n5azD0wQNSnfj9KjhJYUgqsU5PVx+lBRJ8yoembKFMURsjyeEoy1lG9d2g/
|
21
|
+
YfdTEflyTE6Dcxhm3X9sd7xxwglFvTfQAf9Et893uvy4VHFgJWLEbqPSBmEXIW6I
|
22
|
+
Zv/Q/Otbtf/ghjiP6ORNCaTBEbJ4SULtLokUlWxQZGEmnH2v45JV5pxmucuyCfHw
|
23
|
+
6fgI6USCeGbQQs2pWffNbaexjLkCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU3hOSbhhE0+6HVjXhYE+++i/Lpr8wJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAtxB6CP62
|
27
|
+
LIYk58mXS7sS00NcuEPWCqZKRq1rifB7VWnQ54EanojMMlUy2qpC4phadqI669OM
|
28
|
+
J37qVGz1VBptPN/BVruGqOxcVcsDH8V/KIKgiFBZuioopNP4fvLR4hVerGKiXcWs
|
29
|
+
a0OY/UkxE0xbPNpwNCzpU/XPRJpCzCpv5M8gEfdymOsBLL0CUup8R9dWuiPJl4Up
|
30
|
+
O1BjgJwams31N5MqyJohvxTxmNZYhnyd7RamtIfyy9NcTH6fJmZsWyc2wQaf/DmE
|
31
|
+
rm9fMSvcVB40vPgSwYqCa/LR8HFAybsuIwgrZrQEW93cg8gGKUoMdIo9ToNVi8ZK
|
32
|
+
rJf5xqgzgTLH0g==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-
|
34
|
+
date: 2014-03-16 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: easter
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.0.14
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Returns the date for Easter, Ash Wednesday, Good Friday, Trinity Sunday,
|
metadata.gz.sig
CHANGED
Binary file
|