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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba27f059e2386c8f073e36d1dd964cfa044d2290
4
- data.tar.gz: 0ae882e0f099c96eee1df5c97e278a5f3c1b9f7e
3
+ metadata.gz: c91410dff2fa0633412b60e6371dbd05093cc960
4
+ data.tar.gz: 177c83c84cc9bbf780db20a69c76487a5779d464
5
5
  SHA512:
6
- metadata.gz: 05f2f636fb6b37c9b648cde8a00f6d6e3b959f747a9105a3887c847a17e0bab75a36a6e9cde0cdd2083821d2bdd75009fadc04540fe01206bc489e887190b668
7
- data.tar.gz: 7d83e20a0a193febd2b865e49dc79064c31ad0cdf57bed59400572562942bd0d687ffd251de1ae9e1a3dab20142bb8a88b4d48b7ef17186c2e711a06bf7c8071
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-base'
3
- spec.version = '2.0.2'
3
+ spec.version = '2.0.3'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita base class for beer searches.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-beer-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps