ruboty-world_clock 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62c5d67a03cbc15023daed1f14c2ff327a173478
4
- data.tar.gz: 64b5757795b6fb06321c95012fc6d19fed85b3b8
3
+ metadata.gz: bf5e104da4aaa4e70539ecd1a4e51a2ec932dc8c
4
+ data.tar.gz: fd194879274f2ff25bb5559f7322954bbefa1d33
5
5
  SHA512:
6
- metadata.gz: 853d69d1044fbbd931313d7d3d6087c6e4695ba52aea30bbc9ac9a7af4d95473e6a865a615f865dd7042d5aed6158bc3fa513fcf19b8737b5e5738bd860136af
7
- data.tar.gz: a5f5eb9c743d145eaa7d7fd96642586c3da00e73ae743ff327269c4f3989f57f0febe309d25797271febf82c7e7fb3b791f4e57631c13a6bbe438be5aa194fee
6
+ metadata.gz: 61e0b33cd37dac9c8398c9aebc1a76623fa68f2b546dd237d590d888e97fefcae6f625229c019a37ae8817f83a3e4146b4a25ca4186690be9aa516157a5662f5
7
+ data.tar.gz: 5fa9825f037d9383880a733d27f25d2ca9dab00f0ec4d186bc45d46971b4f9b395f3e7ac0f19c18027c61a486f8fbbb47d356be6961979e5195b4e4c6353f280
@@ -2,13 +2,11 @@ module Ruboty
2
2
  module Actions
3
3
  class WorldClockList < Base
4
4
  def call
5
- message.reply(
6
- <<-EOM
7
- ```
8
- #{timezones.join("\n")}
9
- ```
10
- EOM
11
- )
5
+ if timezones.present?
6
+ message.reply("```\n#{timezones.join("\n")}\n```")
7
+ else
8
+ message.reply('Not found timezones.')
9
+ end
12
10
  end
13
11
 
14
12
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module WorldClock
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-world_clock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Iguchi