lita-onewheel-beer-pints 0.0.1 → 0.0.2

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: 0b9e51bf4e0b345be77d4327318fb745b5e5639f
4
- data.tar.gz: 5c5d761817c9e45faf647e07a0a3b416c4aa2ac6
3
+ metadata.gz: 26f39e62cf8c33b59382e2e7f6edcb8970a03d8f
4
+ data.tar.gz: fef4e83e47ac527b8864c6702a44a3e97190ec9a
5
5
  SHA512:
6
- metadata.gz: 1a93c2aaa4ac9cd55b534aa8b52096855cd2e5df6a032f1d251364a58f1a8640e349df491c8e42e03726f8a02cebbae1ef9974b1145c431ae4648ffe19e8faca
7
- data.tar.gz: df174a3fb4a38abf7012e4b67832df4c303304bc1a7a62bb2ea29e15a6e2c92a32c27b809759fb0246ba690845baa0203bd59e36f15419279b71c5094dc997a9
6
+ metadata.gz: 192501fda4fcb1ea58fd561388db6e83f760ffdc92a59715e54ef054b888d0efa7d6335463a7e6155f245b8b7654fe16d1cb53db6b9cafd28a7607db9c71929a
7
+ data.tar.gz: 9d7c9c68f360a5c837f9769363b619f17ec1f5a75ce97ce49deea4f862b3b2dad21bd7071eac9da42700175fe63c60b194862507f191d355f9eeb308caa68f9d
@@ -46,7 +46,7 @@ module Lita
46
46
  beers.each do |tap, datum|
47
47
  reply += "#{tap}) "
48
48
  reply += datum[:name] + ' '
49
- # reply += datum[:abv].to_s + '% ABV '
49
+ reply += datum[:abv].to_s + '% '
50
50
  # reply += datum[:ibu].to_s + ' IBU '
51
51
  end
52
52
  reply = reply.strip.sub /,\s*$/, ''
@@ -57,7 +57,7 @@ module Lita
57
57
 
58
58
  def send_response(tap, datum, response)
59
59
  reply = "Pints's tap #{tap}) "
60
- reply += "#{datum[:name]} "
60
+ reply += "#{datum[:name]} - "
61
61
  reply += datum[:abv].to_s + '% ABV '
62
62
  reply += datum[:ibu].to_s + ' IBU '
63
63
  reply += "- #{datum[:desc]}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-pints'
3
- spec.version = '0.0.1'
3
+ spec.version = '0.0.2'
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.}
@@ -17,17 +17,17 @@ describe Lita::Handlers::OnewheelBeerPints, lita_handler: true do
17
17
 
18
18
  it 'shows the taps' do
19
19
  send_command 'pints'
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………")
20
+ expect(replies.last).to include("Pints taps: 1) Brick House Blonde 5.0% 2) Seismic IPA 6.2% 3) Rip Saw Red 6.5% 4) Steel Bridge Stout")
21
21
  end
22
22
 
23
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
28
  it 'displays details for tap 7' do
29
29
  send_command 'pints 7'
30
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")
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
32
  end
33
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps