christian_calendar 0.1.5 → 0.1.6
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 +0 -0
- data/lib/christian_calendar.rb +8 -2
- 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: 71a00a7ed18b45caf96820a7aa249fa1d56cc880
|
4
|
+
data.tar.gz: f396804091f7698b73097670b00a236e37acc3f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a89ba05c9199bf234318e7be3daf95aca21234032d34058694b06a14203225464d2656f7a3194fee0ba6b1feea3e481cd088e0dca30fc9f859600c198a49bff
|
7
|
+
data.tar.gz: 81cf9d77ea91cbfd42bf55f233bd9f6a87373cfad3cf72232d3b31129e745eebf0df4f940729582a581c627e70f19a7a3aec2720362aade0bd3922bff858d70a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/christian_calendar.rb
CHANGED
@@ -58,7 +58,13 @@ class ChristianCalendar
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def to_s()
|
61
|
-
|
61
|
+
|
62
|
+
a = to_h.sort_by{|k, v| v.to_datetime}.map do |k,v|
|
63
|
+
label = k.to_s.sub(/s(?=_)/,"'s").gsub('_', ' ').split.map(&:capitalize).join(' ')
|
64
|
+
"%+16s: %s" % [label,v.strftime("%d-%b-%Y")]
|
65
|
+
end
|
66
|
+
|
67
|
+
a.join("\n")
|
62
68
|
end
|
63
69
|
|
64
70
|
def trinity_sunday()
|
@@ -109,4 +115,4 @@ if __FILE__ == $0 then
|
|
109
115
|
cc.advent_sunday
|
110
116
|
|
111
117
|
cc.to_h
|
112
|
-
end
|
118
|
+
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|