lita-onewheel-beer-base 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/onewheel_beer_base.rb +3 -0
- data/lita-onewheel-beer-base.gemspec +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: c91410dff2fa0633412b60e6371dbd05093cc960
|
4
|
+
data.tar.gz: 177c83c84cc9bbf780db20a69c76487a5779d464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17196cf5e745dacc133a21e69dbdaf4bb99075c446046146924e8ec8e199dbb84283a7e1941c68f5a2cf77388f17c56fc3d4e41afebff984d9bb1ecb03a7f153
|
7
|
+
data.tar.gz: 36fc58d76d8337c5800b13eb7e43b24a408e457c63f6e02dec8a6051d6889fe03e20dc47ea880005781fc618127e48dbafc7e618ecc81bde7d88bd53484acdda
|
@@ -31,9 +31,12 @@ module Lita
|
|
31
31
|
query = response.matches[0][0].strip
|
32
32
|
# Search directly by tap number OR full text match.
|
33
33
|
# Let's make cask and nitro taps specific.
|
34
|
+
Lita.logger.debug "Searching for #{query} within #{tap}"
|
34
35
|
if query.match(/^\d+$/) and tap == query
|
36
|
+
Lita.logger.debug "#{query} matched #{tap} by number"
|
35
37
|
send_response(tap, datum, response)
|
36
38
|
elsif (datum[:search].to_s.match(/#{query}/i)) or (datum[:type].to_s.downcase.match(/#{query}/i)) # Cask and Nitro
|
39
|
+
Lita.logger.debug "#{query} matched #{datum[:search]} by text"
|
37
40
|
send_response(tap, datum, response)
|
38
41
|
end
|
39
42
|
end
|