sinbotra 0.1.3 → 0.1.4

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: 8eebf35f1a608b4c5320604d6a873654da211b56
4
- data.tar.gz: 4945112ff7c4d069e373528355ae179ddddd291f
3
+ metadata.gz: d053f88f63bd749aa7faa4d1bfb513a2d57188ef
4
+ data.tar.gz: c42a29d3691db1f683a998663c6282a4e7c59eda
5
5
  SHA512:
6
- metadata.gz: 4853e2106875213ba604ef9cca10f11cc345af32827d24df57f220387988d2baf58d52e932ef6214c67f3ec687219b295bf307bd6f72fb3fd52af122e4baecb3
7
- data.tar.gz: 5623b40aeae055ae26406b082232b0c88341aea9d9f55cda3db59e44e7167f2cbaecf81f8088d5d86347c18f78809e93c58348f864785d18e16ae680e4bd126b
6
+ metadata.gz: 03727a0553041013378a5bdee28beb935fb70c7abc60ffa35922992944e48e1a6b49745225691e90fe5ad075db4bea966e16e5d37ee72eef95d0f2d5ddd3d0b6
7
+ data.tar.gz: 5382782b2a931d1a1ee37a1bb769a40443c9442ec3f657a0d7c7afce8a2b5fa8be4f81fd2c3ee4283d03cf77764c0baeeb7a4ca1353fa6ce2411f7b3f658252b
@@ -104,8 +104,10 @@ module Sinbotra::Messenger
104
104
  msg = bot.current_message
105
105
  # look for postback
106
106
  postback = msg.postback
107
- found_pb = @postbacks.find { |pb| postback.match(pb.matcher) }
108
- return found_pb unless found_pb.nil?
107
+ if !postback.nil?
108
+ found_pb = @postbacks.find { |pb| postback.match(pb.matcher) }
109
+ return found_pb unless found_pb.nil?
110
+ end
109
111
  # if you couldn't find a postback, look for text
110
112
  txt = msg.text
111
113
  @listeners.find { |l| !l.default? && txt.match(l.matcher) }
@@ -1,3 +1,3 @@
1
1
  module Sinbotra
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinbotra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Cruz