lita-onewheel-beer-pints 0.0.3 → 0.0.4

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: 5c656fe478b1a4e65a3c06b7f60f27f694d61686
4
- data.tar.gz: f149bf77657ea81b5b6bf874730daf5eccd67689
3
+ metadata.gz: 5206324c6f4e59e9e09541d4365487cb886dd481
4
+ data.tar.gz: d22a0c1f3f9f43737f74683796f239af66db7d84
5
5
  SHA512:
6
- metadata.gz: 0e5df3b4d2ebd480e8316e72388f83547899305e4aa7239de64490d3d7fd34e2ee20995e9b98768f5d8d7ccf1b5ee0b9c4b4595c2316545a29e60c0cddc30eac
7
- data.tar.gz: 4bcb23893c1adf59effe52aae7c11386e1a5d80bc5a09ea31c805aebd0f2af23c53be1c8657fc995b29387c7f7a9e49855d051d25c4fd54f9d8928d20b4eb469
6
+ metadata.gz: a5ce31f7a90b463ac126099f3f50233070697490f6e62b4ebbf6501c4322dd2ed36b83ce1ca15119c1b790165623b67db01fec10e8fb9c6d4cf314c37ab7092c
7
+ data.tar.gz: eeb71119271a74a47bd082912511fab6fd25e3b69489225e96e637f20bc70f25e5668c496724895759725687ea11f0026e3b9f9e677977519703a049a6955e83
@@ -121,7 +121,8 @@ module Lita
121
121
  data = beer_node.css('strong')
122
122
  beer_name = data.children.first.to_s
123
123
  beer_name.strip!
124
- beer_name.sub! /\s+…+.* ABV.*IBU/, ''
124
+ beer_name.sub! /\s*……….*ABV.*IBU/, ''
125
+ beer_name.sub! /………/, ''
125
126
  beer_abv = data.children.last.to_s[/\d+\.\d+% ABV/]
126
127
  beer_abv.sub! /% ABV/, ''
127
128
  beer_ibu = data.children.last.to_s[/\d+ IBU/]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-pints'
3
- spec.version = '0.0.3'
3
+ spec.version = '0.0.4'
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.}
@@ -27,7 +27,12 @@ describe Lita::Handlers::OnewheelBeerPints, lita_handler: true do
27
27
 
28
28
  it 'displays details for tap 7' do
29
29
  send_command 'pints 7'
30
- puts replies.last
31
30
  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
31
  end
32
+
33
+ it 'displays details for tap 5' do
34
+ send_command 'pints 5'
35
+ puts replies.last
36
+ expect(replies.last).to include("Pints's tap 5) You’re A Peach, Hon’ - 5.9% ABV 18 IBU - Matt, our human brewing machine, ")
37
+ end
33
38
  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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps