lita-onewheel-baileys 0.3.0 → 0.3.1
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: c4dff50a7353a1c36d6fbae689ec0b9be69a10a0
|
4
|
+
data.tar.gz: 0b20f71e20059c27c2c6b811fa1ff64c8cf4bfb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a28b5b411be0c8a1bea2e6441cd7f83f34c3b18464332a064d6356a9be64752d22de3e9456eba9316afcea6e671c41a43c83ee8110952cae35ff69046ff154b
|
7
|
+
data.tar.gz: 65624a442add1dd03e9d17f843cf9f8a273870cc2a496b8e827b01d2edf79be2280027920684641ddddf4d759cb312d1173d01087116a156bd4630135947f5a4
|
@@ -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
|
-
reply = "#{datum[1]['brewery'].strip} "
|
35
|
+
reply = "#{datum[1]['brewery'].to_s.strip} "
|
36
36
|
reply += "#{datum[1]['beer']} "
|
37
37
|
reply += "#{datum[1]['style'].strip}, "
|
38
38
|
reply += "#{(datum[1]['fill'] * 100).round(2)}% full. "
|
@@ -16,6 +16,11 @@ 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
|
+
end
|
21
|
+
|
22
|
+
it 'doesn\'t explode on 1' do
|
23
|
+
send_command 'taps 1'
|
24
|
+
expect(replies.last).to eq(' Tidebreak Apple Cider, 12.73% full. Served in a Nonic glass. $6.00/$3.00')
|
20
25
|
end
|
21
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-baileys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.5.1
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: See above.
|