lita-onewheel-beer-tin-bucket 0.1.0 → 0.1.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: 061120cae6549f02aee87d16bfe379e5cdc298ec
4
- data.tar.gz: d6705c2c9fca42d07d6501429f963e48f349ee88
3
+ metadata.gz: d8c21aaebb04c2ce98bb59e5e3b4fd4fb992a060
4
+ data.tar.gz: e9aa2efa0e27dd4beca07c3ab2b5faaea248fda4
5
5
  SHA512:
6
- metadata.gz: 3363503a3d1db5e84eb20b681cda72546b2a2645ce5db19caf1920f629a2b2e33e13b30cf7f8a78f5df990f2e6e7e9e7634af11a1e9234003361dd8ac3b551f3
7
- data.tar.gz: 3c04c02dfb36c06a56b8e405989742c989ef7eced69c4992d9c4a8357805a467b6998b4a0506963e23a7b1c7000a9b55d07fe8cff2aef6827bc8e95c4379a841
6
+ metadata.gz: 52944e5b0aac34809c5915383b39dd39592111141e05d55d37cda90a4a209bf239539f73487c4662f885da7dc62c762859764b80900ad991bd486cfb4205e65e
7
+ data.tar.gz: a77a824883422fb782f169267e11c49c7b8f25ee9aee5909b323b650fb370e3b71a6e53a6f1076fd7060720db91fda7ebb24bc714afba4bf164845750805465f
@@ -21,11 +21,6 @@ module Lita
21
21
  command: true,
22
22
  help: {'taps >4%' => 'Display beers over 4% ABV.'}
23
23
 
24
- route /^tinbucket ([<>=\$\w.\s]+)$/i,
25
- :taps_by_price,
26
- command: true,
27
- help: {'taps <$5' => 'Display beers under $5.'}
28
-
29
24
  route /^tinbucket (roulette|random|rand|ran|ra|r)$/i,
30
25
  :taps_by_random,
31
26
  command: true,
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-tin-bucket'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Tin Bucket's listings.}
@@ -5,10 +5,6 @@ describe Lita::Handlers::OnewheelBeerTinBucket, lita_handler: true do
5
5
  it { is_expected.to route_command('tinbucket 4') }
6
6
  it { is_expected.to route_command('tinbucket nitro') }
7
7
  it { is_expected.to route_command('tinbucket CASK') }
8
- it { is_expected.to route_command('tinbucket <$4') }
9
- it { is_expected.to route_command('tinbucket < $4') }
10
- it { is_expected.to route_command('tinbucket <=$4') }
11
- it { is_expected.to route_command('tinbucket <= $4') }
12
8
  it { is_expected.to route_command('tinbucket >4%') }
13
9
  it { is_expected.to route_command('tinbucket > 4%') }
14
10
  it { is_expected.to route_command('tinbucket >=4%') }
@@ -34,17 +30,12 @@ describe Lita::Handlers::OnewheelBeerTinBucket, lita_handler: true do
34
30
  it 'doesn\'t explode on 1' do
35
31
  send_command 'tinbucket 1'
36
32
  expect(replies.count).to eq(1)
37
- expect(replies.last).to eq('tinbucket tap 1) Aktien Helles Lager 5.3%, $5')
38
- end
39
-
40
- it 'gets nitro' do
41
- send_command 'tinbucket nitro'
42
- expect(replies.last).to eq('tinbucket tap 30) Nitro- Stout 4.1%, $4')
33
+ expect(replies.last).to eq('Tin Bucket tap 1) Gloria! 5.0%')
43
34
  end
44
35
 
45
36
  it 'searches for ipa' do
46
37
  send_command 'tinbucket ipa'
47
- expect(replies.last).to eq('tinbucket tap 50) WFO - IPA 7.5%, $5')
38
+ expect(replies.last).to eq('Tin Bucket tap 5) Alpha IPA 6.5%')
48
39
  end
49
40
 
50
41
  # it 'searches for brown' do
@@ -54,102 +45,58 @@ describe Lita::Handlers::OnewheelBeerTinBucket, lita_handler: true do
54
45
 
55
46
  it 'searches for abv >9%' do
56
47
  send_command 'tinbucket >9%'
57
- expect(replies.count).to eq(8)
58
- expect(replies[0]).to eq('tinbucket tap 2) Armored Fist - Big,Black&Hoppy 10.0%, $5')
59
- expect(replies[1]).to eq('tinbucket tap 3) Barrel Aged Old Thunderpussy 10.8%, $5')
60
- expect(replies.last).to eq('tinbucket tap 46) Sump - Imp Coffee Stout 10.5%, $5')
48
+ expect(replies.count).to eq(7)
49
+ expect(replies[1]).to eq("Tin Bucket tap 7) Peche 'n Brett 10.0%")
61
50
  end
62
51
 
63
52
  it 'searches for abv > 9%' do
64
53
  send_command 'tinbucket > 9%'
65
- expect(replies.count).to eq(8)
66
- expect(replies[0]).to eq('tinbucket tap 2) Armored Fist - Big,Black&Hoppy 10.0%, $5')
67
- expect(replies[1]).to eq('tinbucket tap 3) Barrel Aged Old Thunderpussy 10.8%, $5')
68
- expect(replies.last).to eq('tinbucket tap 46) Sump - Imp Coffee Stout 10.5%, $5')
54
+ expect(replies.count).to eq(7)
55
+ expect(replies[1]).to eq("Tin Bucket tap 7) Peche 'n Brett 10.0%")
69
56
  end
70
57
 
71
58
  it 'searches for abv >= 9%' do
72
59
  send_command 'tinbucket >= 9%'
73
- expect(replies.count).to eq(10)
74
- expect(replies[0]).to eq('tinbucket tap 2) Armored Fist - Big,Black&Hoppy 10.0%, $5')
75
- expect(replies.last).to eq('tinbucket tap 46) Sump - Imp Coffee Stout 10.5%, $5')
60
+ expect(replies.count).to eq(8)
61
+ expect(replies.last).to eq('Tin Bucket tap 16) Hawaiian Speedway Stout 12.0%')
76
62
  end
77
63
 
78
64
  it 'searches for abv <4.1%' do
79
65
  send_command 'tinbucket <4.1%'
80
- expect(replies.count).to eq(2)
81
- expect(replies[0]).to eq('tinbucket tap 15) Grapefruit Radler 2.5%, $5')
82
- expect(replies.last).to eq('tinbucket tap 38) Prairie-Vous Francais - Saison   Just Tapped 3.9%, $5')
66
+ expect(replies.count).to eq(1)
67
+ expect(replies.last).to eq('Tin Bucket tap 19) Ales Vous Francais 4.0%')
83
68
  end
84
69
 
85
70
  it 'searches for abv <= 4%' do
86
71
  send_command 'tinbucket <= 4%'
87
- expect(replies.count).to eq(2)
88
- expect(replies[0]).to eq('tinbucket tap 15) Grapefruit Radler 2.5%, $5')
89
- expect(replies.last).to eq('tinbucket tap 38) Prairie-Vous Francais - Saison   Just Tapped 3.9%, $5')
90
- end
91
-
92
- it 'searches for prices >$5' do
93
- send_command 'tinbucket >$5'
94
- expect(replies.count).to eq(11)
95
- expect(replies[0]).to eq('tinbucket tap 4) Blind Pig - IPA 6.1%, $6')
96
- expect(replies[1]).to eq('tinbucket tap 21) Kristallweissbier 5.4%, $6')
97
- end
98
-
99
- it 'searches for prices >=$6' do
100
- send_command 'tinbucket >=$6'
101
- expect(replies.count).to eq(11)
102
- expect(replies[0]).to eq('tinbucket tap 4) Blind Pig - IPA 6.1%, $6')
103
- end
104
-
105
- it 'searches for prices > $6' do
106
- send_command 'tinbucket > $6'
107
- expect(replies.count).to eq(3)
108
- expect(replies[0]).to eq('tinbucket tap 29) Nitro- Shake - Choco Porter 5.9%, $8')
109
- end
110
-
111
- it 'searches for prices <$4.1' do
112
- send_command 'tinbucket <$4.1'
113
- expect(replies.count).to eq(4)
114
- expect(replies[0]).to eq('tinbucket tap 8) Cheap, cold 4.7%, $3')
115
- end
116
-
117
- it 'searches for prices < $4.01' do
118
- send_command 'tinbucket < $4.01'
119
- expect(replies.count).to eq(4)
120
- expect(replies[0]).to eq('tinbucket tap 8) Cheap, cold 4.7%, $3')
121
- end
122
-
123
- it 'searches for prices <= $4.00' do
124
- send_command 'tinbucket <= $4.00'
125
- expect(replies.count).to eq(4)
126
- expect(replies[0]).to eq('tinbucket tap 8) Cheap, cold 4.7%, $3')
72
+ expect(replies.count).to eq(1)
73
+ expect(replies.last).to eq('Tin Bucket tap 19) Ales Vous Francais 4.0%')
127
74
  end
128
75
 
129
76
  it 'runs a random beer through' do
130
77
  send_command 'tinbucket roulette'
131
78
  expect(replies.count).to eq(1)
132
- expect(replies.last).to include('tinbucket tap')
79
+ expect(replies.last).to include('Tin Bucket tap')
133
80
  end
134
81
 
135
82
  it 'runs a random beer through' do
136
83
  send_command 'tinbucket random'
137
84
  expect(replies.count).to eq(1)
138
- expect(replies.last).to include('tinbucket tap')
85
+ expect(replies.last).to include('Tin Bucket tap')
139
86
  end
140
87
 
141
88
  it 'searches with a space' do
142
- send_command 'tinbucket cider riot'
143
- expect(replies.last).to eq('tinbucket tap 10) Cider- NeverGiveAnInch -Rosé 6.9%, $5')
89
+ send_command 'tinbucket GLORIA'
90
+ expect(replies.last).to eq('Tin Bucket tap 1) Gloria! 5.0%')
144
91
  end
145
92
 
146
93
  it 'displays low abv' do
147
94
  send_command 'tinbucketabvhigh'
148
- expect(replies.last).to eq('tinbucket tap 31) Notorious - IIIPA 11.5%, $5')
95
+ expect(replies.last).to eq('Tin Bucket tap 11) BOMB! 14.0%')
149
96
  end
150
97
 
151
98
  it 'displays high abv' do
152
99
  send_command 'tinbucketabvlow'
153
- expect(replies.last).to eq('tinbucket tap 15) Grapefruit Radler 2.5%, $5')
100
+ expect(replies.last).to eq('Tin Bucket tap 19) Ales Vous Francais 4.0%')
154
101
  end
155
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-beer-tin-bucket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps