lita-onewheel-beer-base 1.1.0 → 1.2.0

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: 7e47d3c981e3b6b091ebeca225694ddd2e2ab707
4
- data.tar.gz: 2f505eadbb3fab8eb726f342a52b58c5152ae7af
3
+ metadata.gz: 9847502c14cb5cb6f6f25abe0e3e2c90e7140ac5
4
+ data.tar.gz: 550cab914512e6af90652306efe33453f8b96334
5
5
  SHA512:
6
- metadata.gz: 164a967b7a39a1bad366e30496a2307faf45ffb8180c34cb2f91de8c2ca307c7e92301ac5ae0a02dd9c366667b8adeef5bccf132bd34707074c837951dd93024
7
- data.tar.gz: eeabce756724a54bf68e405a93476555162b78b1bc17f97145ad79cb4d47cf9ec57f27b303c18db71c28c3430e34c91fee663c1a60f3a2e8f2a91b0377b3fe2f
6
+ metadata.gz: 56701dfeb8c88dbc924f2db3470eec94a45f29e4f79bb233942b288c1f34227c591e2774e3dc7a44422fb0f44861ba1f0ad03e43d234cdf6b50412b62e317e4c
7
+ data.tar.gz: b68c2eb933ef7a004d74baeb4f56074d0907144924d9fe87ce7f8957f83ab9245d3126fb83eaca7590a91e231e6bedd6cff227da8887f59669315b083973dac7
@@ -9,7 +9,7 @@ module Lita
9
9
  def taps_list(response)
10
10
  # wakka wakka
11
11
  beers = self.get_source
12
- reply = "Bailey's taps: "
12
+ reply = "taps: "
13
13
  beers.each do |tap, datum|
14
14
  reply += "#{tap}) "
15
15
  reply += get_tap_type_text(datum[:type])
@@ -22,6 +22,10 @@ module Lita
22
22
  response.reply reply
23
23
  end
24
24
 
25
+ def get_tap_type_text(type)
26
+ (type.empty?) ? '' : "(#{type}) "
27
+ end
28
+
25
29
  def taps_deets(response)
26
30
  Lita.logger.debug "taps_deets started"
27
31
  beers = get_source
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-base'
3
- spec.version = '1.1.0'
3
+ spec.version = '1.2.0'
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: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps