lita-onewheel-beer-apex 0.2.2 → 0.2.3
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_apex.rb +3 -4
- data/lita-onewheel-beer-apex.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: 1689f965b017371a4f99b74bf858e8222c6c1ab9
|
4
|
+
data.tar.gz: 3baedfd02407db8244d33b633feccd104305354b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bbf3a7f6377c4eb84b7b05992abf3ad1103e065c387c7ba4123594e64162a10ec8a093264f6541bc671925b9e635f65c4755409d873f53af50ed0974f561e75
|
7
|
+
data.tar.gz: 050780d699497224ad6d188bb0d3da5f895302e1cd7c610f136cb3ce85f46064ed567db97b69e2a3a1fde151bbfcacf2a68b64211fd167a7b6ff048b4a53a63d
|
@@ -79,16 +79,16 @@ module Lita
|
|
79
79
|
|
80
80
|
brewery = beer_node.css('td')[2].children.to_s
|
81
81
|
beer_name = beer_node.css('td')[0].children.text.to_s
|
82
|
+
|
82
83
|
beer_type = beer_name.match(/\s*-\s*\w+$/).to_s
|
83
84
|
beer_type.sub! /\s+-\s+/, ''
|
84
|
-
|
85
|
+
|
85
86
|
abv = beer_node.css('td')[4].children.to_s
|
86
87
|
full_text_search = "#{brewery} #{beer_name.to_s.gsub /(\d+|')/, ''}" # #{beer_desc.to_s.gsub /\d+\.*\d*%*/, ''}
|
88
|
+
|
87
89
|
price_node = beer_node.css('td')[1].children.to_s
|
88
90
|
price = (price_node.sub /\$/, '').to_f
|
89
91
|
|
90
|
-
Lita.logger.debug "Price #{price}"
|
91
|
-
|
92
92
|
gimme_what_you_got[tap_name] = {
|
93
93
|
# type: tap_type,
|
94
94
|
# remaining: remaining,
|
@@ -100,7 +100,6 @@ module Lita
|
|
100
100
|
search: full_text_search
|
101
101
|
}
|
102
102
|
end
|
103
|
-
# puts gimme_what_you_got.inspect
|
104
103
|
|
105
104
|
gimme_what_you_got
|
106
105
|
end
|