lita-onewheel-beer-pints 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b9e51bf4e0b345be77d4327318fb745b5e5639f
|
4
|
+
data.tar.gz: 5c5d761817c9e45faf647e07a0a3b416c4aa2ac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a93c2aaa4ac9cd55b534aa8b52096855cd2e5df6a032f1d251364a58f1a8640e349df491c8e42e03726f8a02cebbae1ef9974b1145c431ae4648ffe19e8faca
|
7
|
+
data.tar.gz: df174a3fb4a38abf7012e4b67832df4c303304bc1a7a62bb2ea29e15a6e2c92a32c27b809759fb0246ba690845baa0203bd59e36f15419279b71c5094dc997a9
|
@@ -60,7 +60,7 @@ module Lita
|
|
60
60
|
reply += "#{datum[:name]} "
|
61
61
|
reply += datum[:abv].to_s + '% ABV '
|
62
62
|
reply += datum[:ibu].to_s + ' IBU '
|
63
|
-
reply += "- #{datum[:desc]}
|
63
|
+
reply += "- #{datum[:desc]}"
|
64
64
|
|
65
65
|
Lita.logger.info "send_response: Replying with #{reply}"
|
66
66
|
|
@@ -78,8 +78,6 @@ module Lita
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# This is the worker bee- decoding the html into our "standard" document.
|
81
|
-
# Future implementations could simply override this implementation-specific
|
82
|
-
# code to help this grow more widely.
|
83
81
|
def parse_response(response)
|
84
82
|
Lita.logger.debug 'parse_response started.'
|
85
83
|
gimme_what_you_got = {}
|
@@ -95,6 +93,7 @@ module Lita
|
|
95
93
|
# gimme_what_you_got
|
96
94
|
if got_beer
|
97
95
|
beer_desc = beer_node.children.to_s
|
96
|
+
|
98
97
|
got_beer = false
|
99
98
|
full_text_search = "#{beer_name} #{beer_desc.to_s.gsub /\d+\.*\d*%*/, ''}"
|
100
99
|
|
@@ -20,9 +20,14 @@ describe Lita::Handlers::OnewheelBeerPints, lita_handler: true do
|
|
20
20
|
expect(replies.last).to eq("Pints taps: 1) Brick House Blonde 2) Seismic IPA 3) Rip Saw Red 4) Steel Bridge Stout 5) You’re A Peach, Hon’………5.9% ABV – 18 IBU 6) Belgian Breakfast Beer 7) Chocolate Blood Orange Candi Biere 8) Pints Single Hop Pale Series………5.4% ABV – 45 IBU 9) Konvention Kölsch………")
|
21
21
|
end
|
22
22
|
|
23
|
-
it 'displays details for tap
|
23
|
+
it 'displays details for tap brick' do
|
24
24
|
send_command 'pints brick'
|
25
|
-
expect(replies.last).to eq("Pints's tap 1) Brick House Blonde 5.0% ABV 18 IBU - She’s blonde and refreshing! She’s mighty mighty! Brewed with perfect proportions of Northwest hops and malts for a beer that makes an old man wish for younger days. This session ale lets it all hang out with easy drinkability and a light malt finish. …what a winning hand
|
25
|
+
expect(replies.last).to eq("Pints's tap 1) Brick House Blonde 5.0% ABV 18 IBU - She’s blonde and refreshing! She’s mighty mighty! Brewed with perfect proportions of Northwest hops and malts for a beer that makes an old man wish for younger days. This session ale lets it all hang out with easy drinkability and a light malt finish. …what a winning hand!")
|
26
26
|
end
|
27
27
|
|
28
|
+
it 'displays details for tap 7' do
|
29
|
+
send_command 'pints 7'
|
30
|
+
puts replies.last
|
31
|
+
expect(replies.last).to include("Pints's tap 7) Chocolate Blood Orange Candi Biere 5.9% ABV 24 IBU - This brew is inspired by the")
|
32
|
+
end
|
28
33
|
end
|