lita-onewheel-beer-pints 0.0.0 → 0.0.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: 06000cfae97483e9264d3f393526fec245a48ab0
4
- data.tar.gz: f7f3c1a1ab7732f432b4e9478047d7fecf568a77
3
+ metadata.gz: 0b9e51bf4e0b345be77d4327318fb745b5e5639f
4
+ data.tar.gz: 5c5d761817c9e45faf647e07a0a3b416c4aa2ac6
5
5
  SHA512:
6
- metadata.gz: 67fe0e1dce43b5eaa645726d4335d619c8726e0e269cb0ee57a51f7f3126e29b4d422c32ec7c12333304b853314910ceb8f8f078b87b014454d6f242a3a02566
7
- data.tar.gz: 724135701b1032a3d4e48f6c082009f345832a4a00fb04f2e0110decaae3d555d5aab324bd78b9731465fd00eb2d5472b36b4025abceaed2f9a0ae56eb7367eb
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-pints'
3
- spec.version = '0.0.0'
3
+ spec.version = '0.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Pints Taproom listings.}
@@ -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 4' do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-beer-pints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps