lita-onewheel-baileys 0.0.0 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47283a56ac3aa1dad63fbd6864334f01fb0bf626
|
4
|
+
data.tar.gz: d5194f05181cc9b54a320dbf9e475b6f30e08b63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e87e60bafe8b53858fa7f98974d86e2e0828c109854f8ccdcf8b7dd4643597b8a2ed66a7adb1d5416459999441ec72db06865f7088fbede7d7a16f3ab6928ee8
|
7
|
+
data.tar.gz: 9f0533b746fc7ae7deb5802c070c37465238bc4cfdd96a638a0cfff335536f9982f98b49a241c4b47529327a28e125172311844a8c94f25d7b436eecaf283d0f
|
@@ -32,7 +32,7 @@ module Lita
|
|
32
32
|
api = get_baileys
|
33
33
|
api['data'].each do |datum|
|
34
34
|
if datum[0] == response.matches[0][0]
|
35
|
-
response.reply "#{datum[1]['brewery'].strip} #{datum[1]['beer']} #{datum[1]['style'].strip}, #{datum[1]['fill'] * 100}% full. Served in a #{datum[1]['glass']} glass."
|
35
|
+
response.reply "#{datum[1]['brewery'].strip} #{datum[1]['beer']} #{datum[1]['style'].strip}, #{datum[1]['fill'] * 100}% full. Served in a #{datum[1]['glass']} glass. #{datum[1]['prices'][0]}/#{datum[1]['prices'][1]}"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -16,6 +16,6 @@ describe Lita::Handlers::OnewheelBaileys, lita_handler: true do
|
|
16
16
|
|
17
17
|
it 'displays details for tap 4' do
|
18
18
|
send_command 'taps 4'
|
19
|
-
expect(replies.last).to eq('Knee Deep Twisted Barre Dubbel, 73.65322580645163% full. Served in a Nonic glass.')
|
19
|
+
expect(replies.last).to eq('Knee Deep Twisted Barre Dubbel, 73.65322580645163% full. Served in a Nonic glass. $5.00/$3.00')
|
20
20
|
end
|
21
21
|
end
|