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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12f871eabb1a0a50b12655f79d6981b6c68899f9
4
- data.tar.gz: 393726319625775c72ab424bec8d7f5a33ed7670
3
+ metadata.gz: 1689f965b017371a4f99b74bf858e8222c6c1ab9
4
+ data.tar.gz: 3baedfd02407db8244d33b633feccd104305354b
5
5
  SHA512:
6
- metadata.gz: 482140aa6c45ed052608d6176b2b8500e72001172811b2d8b89a0fb404e7bcd57fdaa19496315e0cb90213bcb30d1014a0947d02238e00586caa7246b14c64c0
7
- data.tar.gz: b21f2e53f17813220336e7d7acf44edf756a52a085bc2671a7f52ae7af043031793300d589edf9bf405a160503d4ea7f0fbe35de65b2d433820866d46ebbfbab
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
- # beer_desc = get_beer_desc(beer_node)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-apex'
3
- spec.version = '0.2.2'
3
+ spec.version = '0.2.3'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Apex Bar's listings.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-beer-apex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps