lita-onewheel-beer-upperlip 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3b0bed48e79fea5592c02baee5a0f9471160b51
|
4
|
+
data.tar.gz: 6dfb3921da074d2246cf78d3b46a8cc0a4860f4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdecb57775c65699310ef526c4bf6ecb01714dadeb0eb40ec5dcfe1f9a1d3170c9c73dd3f83be23754bdb35435404b1d2c906eb352aa4c42c715f1d1f4e33816
|
7
|
+
data.tar.gz: 283828e1c850134fd6baa9fd3130a310ea293e1a38116b71ca9ec7ff3c72135d450538fe8ad38d5bf83f2cecc89c1bf594695b13cabfb3828376908c75aa25de
|
@@ -7,7 +7,7 @@ module Lita
|
|
7
7
|
module Handlers
|
8
8
|
class OnewheelBeerUpperlip < OnewheelBeerBase
|
9
9
|
route /^upperlip$/i,
|
10
|
-
:
|
10
|
+
:taps_list,
|
11
11
|
command: true,
|
12
12
|
help: {'upperlip' => 'Display the current taps.'}
|
13
13
|
|
@@ -17,31 +17,31 @@ module Lita
|
|
17
17
|
help: {'upperlip 4' => 'Display the tap 4 deets.'}
|
18
18
|
|
19
19
|
route /^upperlip ([<>=\w.\s]+)%$/i,
|
20
|
-
:
|
20
|
+
:taps_by_abv,
|
21
21
|
command: true,
|
22
22
|
help: {'upperlip >4%' => 'Display beers over 4% ABV.'}
|
23
23
|
|
24
24
|
route /^upperlip (roulette|random)$/i,
|
25
|
-
:
|
25
|
+
:taps_by_random,
|
26
26
|
command: true,
|
27
27
|
help: {'upperlip roulette' => 'Can\'t decide? Let me do it for you!'}
|
28
28
|
|
29
29
|
route /^upperliplow$/i,
|
30
|
-
:
|
30
|
+
:taps_by_remaining,
|
31
31
|
command: true,
|
32
32
|
help: {'upperliplow' => 'Show me the kegs at <10% remaining, or the lowest one available.'}
|
33
33
|
|
34
34
|
route /^upperlipabvlow$/i,
|
35
|
-
:
|
35
|
+
:taps_low_abv,
|
36
36
|
command: true,
|
37
37
|
help: {'upperlipabvlow' => 'Show me the lowest abv keg.'}
|
38
38
|
|
39
39
|
route /^upperlipabvhigh$/i,
|
40
|
-
:
|
40
|
+
:taps_high_abv,
|
41
41
|
command: true,
|
42
42
|
help: {'upperlipabvhigh' => 'Show me the highest abv keg.'}
|
43
43
|
|
44
|
-
def
|
44
|
+
def taps_list(response)
|
45
45
|
# wakka wakka
|
46
46
|
beers = self.get_source
|
47
47
|
reply = "Bailey's Upperlip tap: "
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-beer-upperlip'
|
3
|
-
spec.version = '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 Bailey's Upperlip Taproom listings.}
|