ruboty-rokuyo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/handlers/rokuyo.rb +5 -5
- data/lib/ruboty/rokuyo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1796e167820f53de1063666e36e69d95cd0fad59
|
4
|
+
data.tar.gz: 1bb311d1f79e81d08c03352799ac86cd9f79cf36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15220cf4be8f24612a3f4a30418d5e96d618e4d15b8e6947104755c0d28139ed9a808b48f55b2e067a871f76c5c0be21a715cbbb847d8da86f73acd75e9a773d
|
7
|
+
data.tar.gz: cf6f2cbaf0ce3b3e62084df780a598419de28104333dc5736b2c6cf90e515275e2504cc3d68647a2f728d87fa4dc013cfcad71ab6c571ba5b617d1711c4fe999
|
@@ -20,11 +20,11 @@ module Ruboty
|
|
20
20
|
def rokuyo(message)
|
21
21
|
time = message[:date] ? Time.parse(message[:date]) : Time.now
|
22
22
|
rokuyo = Qreki.calc(time.year, time.month, time.day).rokuyou
|
23
|
-
message.reply
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
message.reply [
|
24
|
+
"☆#{time.strftime('%Y/%m/%d')}の六曜\☆\n\n",
|
25
|
+
" ====\n #{rokuyo}\n ====\n",
|
26
|
+
description(rokuyo).gsub(/^/, " ")
|
27
|
+
].join
|
28
28
|
end
|
29
29
|
|
30
30
|
def description(name)
|