lita-onewheel-beer-base 1.0.0 → 1.1.0
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 +0 -18
- 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: 7e47d3c981e3b6b091ebeca225694ddd2e2ab707
|
4
|
+
data.tar.gz: 2f505eadbb3fab8eb726f342a52b58c5152ae7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164a967b7a39a1bad366e30496a2307faf45ffb8180c34cb2f91de8c2ca307c7e92301ac5ae0a02dd9c366667b8adeef5bccf132bd34707074c837951dd93024
|
7
|
+
data.tar.gz: eeabce756724a54bf68e405a93476555162b78b1bc17f97145ad79cb4d47cf9ec57f27b303c18db71c28c3430e34c91fee663c1a60f3a2e8f2a91b0377b3fe2f
|
@@ -142,24 +142,6 @@ module Lita
|
|
142
142
|
send_response(high_tap, beers[high_tap], response)
|
143
143
|
end
|
144
144
|
|
145
|
-
def send_response(tap, datum, response)
|
146
|
-
reply = "tap #{tap}) #{get_tap_type_text(datum[:type])}"
|
147
|
-
reply += "#{datum[:brewery]} "
|
148
|
-
reply += "#{datum[:name]} "
|
149
|
-
reply += "- #{datum[:desc]}, "
|
150
|
-
# reply += "Served in a #{datum[1]['glass']} glass. "
|
151
|
-
reply += "#{get_display_prices datum[:prices]}, "
|
152
|
-
reply += "#{datum[:remaining]}"
|
153
|
-
|
154
|
-
Lita.logger.info "send_response: Replying with #{reply}"
|
155
|
-
|
156
|
-
response.reply reply
|
157
|
-
end
|
158
|
-
|
159
|
-
def get_tap_type_text(type)
|
160
|
-
(type.empty?) ? '' : "(#{type}) "
|
161
|
-
end
|
162
|
-
|
163
145
|
def get_source
|
164
146
|
raise Exception
|
165
147
|
end
|