lita-onewheel-baileys 0.2.0 → 0.3.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: e07118ddd82938ef9309d664ebb3301ef702b18f
|
4
|
+
data.tar.gz: 7d26ffc14b3cee543341246aa84dc9cd64dd1830
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de09a1966f7b6e91a4ec940feeec8ee3bca04ac23e328ad9548923e68303b94dda747d16f543a20d87b964c23c0ba708c7f8bccd0ae85cdb03efe49cffa1fce5
|
7
|
+
data.tar.gz: 4ba1939aab8372096acc5cd09a559ac0b403e8629a53c492eb709eb3e6c1dcac5eede8c14d0513fa9e5bce00bd37402b8fbeb648668f52289f4772538bb35008
|
@@ -32,7 +32,13 @@ module Lita
|
|
32
32
|
api = get_baileys
|
33
33
|
api['data'].each do |datum|
|
34
34
|
if datum[0] == response.matches[0][0]
|
35
|
-
|
35
|
+
reply = "#{datum[1]['brewery'].strip} "
|
36
|
+
reply += "#{datum[1]['beer']} "
|
37
|
+
reply += "#{datum[1]['style'].strip}, "
|
38
|
+
reply += "#{(datum[1]['fill'] * 100).round(2)}% full. "
|
39
|
+
reply += "Served in a #{datum[1]['glass']} glass. "
|
40
|
+
reply += "#{datum[1]['prices'][0]}/#{datum[1]['prices'][1]}"
|
41
|
+
response.reply reply
|
36
42
|
end
|
37
43
|
end
|
38
44
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-baileys'
|
3
|
-
spec.version = '0.
|
3
|
+
spec.version = '0.3.0'
|
4
4
|
spec.authors = ['Andrew Kreps']
|
5
5
|
spec.email = ['andrew.kreps@gmail.com']
|
6
6
|
spec.description = %q{Lita interface to Bailey's Taproom listings.}
|
7
7
|
spec.summary = %q{See above.}
|
8
8
|
spec.homepage = 'https://github.com/onewheelskyward/lita-onewheel-baileys'
|
9
9
|
spec.license = 'MIT'
|
10
|
-
spec.metadata = { 'lita_plugin_type' => 'handler'}
|
10
|
+
spec.metadata = { 'lita_plugin_type' => 'handler' }
|
11
11
|
|
12
12
|
spec.files = `git ls-files`.split($/)
|
13
13
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -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(
|
19
|
+
expect(replies.last).to eq("Knee Deep Twisted Barre Dubbel, 73.65% full. Served in a Nonic glass. $5.00/$3.00")
|
20
20
|
end
|
21
21
|
end
|