ruboty-world_clock 0.0.1 → 0.0.2

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: efec1a1c40084ecf60486e13e0231005075087a7
4
- data.tar.gz: f8662c80db082c1fbc718f388ecb3f00f8f981d6
3
+ metadata.gz: 33bd7bfb85ae5d6f53bd477e9532d70a0bd00794
4
+ data.tar.gz: 4373f498c9e731b69dd9731351cfcaf598a00d9c
5
5
  SHA512:
6
- metadata.gz: 4280cb7717fcec00652a03962d001b6c2aba6cff6147a68c983b9a13bdd6ae5811f6f06f966bb3b8b4d1c5d7eab312f8b04cb70fb2a28ac674c8ba18ffd6aa23
7
- data.tar.gz: 063b1424f1445e7b0ac1393badfb7a4136a11dbe559e53ecfd809c4803a9604b99371468d081e948a855869ff9e6d0540c046c35efb26d2dc1ff49eb90b192a0
6
+ metadata.gz: 5bea655762aba930271d51d1d0fc5f2a77ecc0bbb2f57b3d07fa91f6a04341850050a90b8bcaa32955f158fe6b12dac329e4e62a89608c2342c2792232a6a63d
7
+ data.tar.gz: 2568150d338b86c6cf054233ea70f540cd193223aca58f17152959ccd3b25251c758bfbcc2a63cf7da2c4864572e62fb012ea53da198082242dcb6d2f45a82a1
@@ -2,7 +2,9 @@ module Ruboty
2
2
  module Actions
3
3
  class WorldClock < Base
4
4
  def call
5
- message.reply(Time.now.in_time_zone(timezone).strftime('%m/%d %H:%M:%S'))
5
+ if timezone.present?
6
+ message.reply(Time.now.in_time_zone(timezone).strftime('%m/%d %H:%M:%S'))
7
+ end
6
8
  end
7
9
 
8
10
  private
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module WorldClock
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Iguchi