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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71a2d5afc484a772d7cc8489cb6f75ede5193a38
4
- data.tar.gz: 4ea757a7af3bf8d4d1422a4cc2ebbec1d8154f92
3
+ metadata.gz: 1796e167820f53de1063666e36e69d95cd0fad59
4
+ data.tar.gz: 1bb311d1f79e81d08c03352799ac86cd9f79cf36
5
5
  SHA512:
6
- metadata.gz: 34b70f0d98c26c08e6f468ed91f5881a46c9013d3a946a15817f3ce00f9119804f6e5952ef0d02c2a12a4a270aa0eec8187fa4be279ec2c05f0a69501f0f16e5
7
- data.tar.gz: 3758633475805fbe47d2f157cd0af904880b40b47c77c6b6feb683c6033ddd45ae57b5c21d285a32d257c42fa1d688dcc5034c4b7484d73bc25d0c0e8a1d0abb
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 "☆今日の六曜\☆\n\n"
24
- message.reply " ===="
25
- message.reply " #{rokuyo}"
26
- message.reply " ===="
27
- message.reply description(rokuyo).gsub(/^/, " ")
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)
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Rokuyo
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-rokuyo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tily