lita-onewheel-baileys 1.3.0 → 1.3.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: 6b1cbf1630a83ce7882107b8f1b7ffb826e2b426
4
- data.tar.gz: a1826b91291307ddbc519c46fb9a08510e9cf220
3
+ metadata.gz: d407097e9ecdf3d2b4118d6e5fd99ce1b8448207
4
+ data.tar.gz: 1376744018d488ada43d7cad31f5d5fe4f949493
5
5
  SHA512:
6
- metadata.gz: 15d7def847c3274e30e81cb8601efda12b38d44b52d76ad55be719f4925e99ca0abc8022d39441a5547ba7d57db31f4fc5b25c357b9a619bd7e82c056bfc7b1a
7
- data.tar.gz: 93e83ea64af1514633bdd70e7ce61516ca478dd11f7311cf6f0752f32000eaa93cb90aafe38eff40cd8197dbd051c07924f8c56a0e96842636cba29aeecd8649
6
+ metadata.gz: 6b1d8f6f1b6e61b90062ba4bcf7bea6377e61b2c13d87f705823efc5c03b23add02891d648748f6ce424606653d47eb47fc95786d206409f3976d539035b235d
7
+ data.tar.gz: 82ac6cbe446cd87c28292e51d9d4a7a01c9c228e680b84a9bad69a82248d5cff42a1bae3b7d3a96c961d34ddc9cd6db810ed83317f6991fce3451d978410f474
@@ -17,7 +17,7 @@ module Lita
17
17
 
18
18
  def taps_list(response)
19
19
  beers = get_baileys
20
- reply = ''
20
+ reply = "Bailey's taps: "
21
21
  beers.each do |tap, datum|
22
22
  reply += "#{tap}) "
23
23
  reply += datum[:brewery] + ' '
@@ -33,7 +33,7 @@ module Lita
33
33
  beers.each do |tap, datum|
34
34
  query = response.matches[0][0]
35
35
  if tap == query or (query =~ /nitro/i and tap.match('Nitro')) or (query =~ /cask/i and tap.match('Cask'))
36
- reply = "#{tap}) "
36
+ reply = "Bailey's tap #{tap}) "
37
37
  reply += "#{datum[:brewery]} "
38
38
  reply += "#{datum[:beer]}"
39
39
  reply += "#{datum[:desc]}, "
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-baileys'
3
- spec.version = '1.3.0'
3
+ spec.version = '1.3.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Bailey's Taproom listings.}
@@ -11,26 +11,26 @@ describe Lita::Handlers::OnewheelBaileys, lita_handler: true do
11
11
 
12
12
  it 'shows the taps' do
13
13
  send_command 'taps'
14
- expect(replies.last).to eq("1) Cider Riot! Plastic Paddy 2) Fox Tail Rosenberry Cask 3) Machine House Crystal Maze 4) Wild Ride Solidarity 5) Mazama Gillian’s Red Nitro 6) Backwoods Winchester Brown 7) Fort George Vortex 8) Fat Head’s Zeus Juice 9) Hopworks Noggin’ Floggin’ 10) Anderson Valley Briney Melon Gose 11) Lagunitas Copper Fusion Ale 12) Double Mountain Fast Lane 13) Burnside Couch Lager 14) Bell’s Oatmeal Stout 15) Baerlic Wildcat 16) New Belgium La Folie 17) Culmination Urizen 18) Knee Deep Hop Surplus 19) Cascade Lakes Ziggy Stardust 20) Knee Deep Dark Horse 21) Coronado Orange Avenue Wit 22) GoodLife 29er 23) Amnesia Slow Train Porter 24) Oakshire Perfect Storm 25) Green Flash Passion Fruit Kicker")
14
+ expect(replies.last).to eq("Bailey's taps: 1) Cider Riot! Plastic Paddy 2) Fox Tail Rosenberry Cask 3) Machine House Crystal Maze 4) Wild Ride Solidarity 5) Mazama Gillian’s Red Nitro 6) Backwoods Winchester Brown 7) Fort George Vortex 8) Fat Head’s Zeus Juice 9) Hopworks Noggin’ Floggin’ 10) Anderson Valley Briney Melon Gose 11) Lagunitas Copper Fusion Ale 12) Double Mountain Fast Lane 13) Burnside Couch Lager 14) Bell’s Oatmeal Stout 15) Baerlic Wildcat 16) New Belgium La Folie 17) Culmination Urizen 18) Knee Deep Hop Surplus 19) Cascade Lakes Ziggy Stardust 20) Knee Deep Dark Horse 21) Coronado Orange Avenue Wit 22) GoodLife 29er 23) Amnesia Slow Train Porter 24) Oakshire Perfect Storm 25) Green Flash Passion Fruit Kicker")
15
15
  end
16
16
 
17
17
  it 'displays details for tap 4' do
18
18
  send_command 'taps 4'
19
- expect(replies.last).to eq('4) Wild Ride Abbey Dubbel – Barrel Aged (Pinot Noir) 8.2%, 4oz Pour – $4 | 12oz – $7, 26% remaining')
19
+ expect(replies.last).to eq('Bailey\'s tap 4) Wild Ride Abbey Dubbel – Barrel Aged (Pinot Noir) 8.2%, 4oz Pour – $4 | 12oz – $7, 26% remaining')
20
20
  end
21
21
 
22
22
  it 'doesn\'t explode on 1' do
23
23
  send_command 'taps 1'
24
- expect(replies.last).to eq('1) Cider Riot! Apple Cider w/ Irish tea 6.0%, 10oz – $4 | 20oz – $7 | 32oz Crowler $10, 48% remaining')
24
+ expect(replies.last).to eq('Bailey\'s tap 1) Cider Riot! Apple Cider w/ Irish tea 6.0%, 10oz – $4 | 20oz – $7 | 32oz Crowler $10, 48% remaining')
25
25
  end
26
26
 
27
27
  it 'gets nitro' do
28
28
  send_command 'taps nitro'
29
- expect(replies.last).to eq('Nitro 6) Backwoods Brown Ale 6.2%, 10oz – $3 | 20oz – $5, 98% remaining')
29
+ expect(replies.last).to eq('Bailey\'s tap Nitro 6) Backwoods Brown Ale 6.2%, 10oz – $3 | 20oz – $5, 98% remaining')
30
30
  end
31
31
 
32
32
  it 'gets cask' do
33
33
  send_command 'taps cask'
34
- expect(replies.last).to eq('Cask 3) Machine House ESB 4.0%, 10oz – $3 | 20oz – $5, 57% remaining')
34
+ expect(replies.last).to eq('Bailey\'s tap Cask 3) Machine House ESB 4.0%, 10oz – $3 | 20oz – $5, 57% remaining')
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-baileys
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps