lita-onewheel-beer-tin-bucket 0.0.0 → 0.1.0

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: f7302863cda2714b4544394a8228b26d0a781bbf
4
- data.tar.gz: 11cb6751783febaf1b0368ca2d29b2cafc98604d
3
+ metadata.gz: 061120cae6549f02aee87d16bfe379e5cdc298ec
4
+ data.tar.gz: d6705c2c9fca42d07d6501429f963e48f349ee88
5
5
  SHA512:
6
- metadata.gz: 3f113895de84dda98685e5acd9089012e3eacebdc1191f2738eb03bfdd70003802475b93e8f16f2ccb449a60ce2c8d15ad360b8ebe2c60bb55ae86c362a14070
7
- data.tar.gz: 28a46fb3d66a9451a887b0fc4e9695615c12cc36d282a9f73f1439c66e77398a2e7ffc335eb39211d0f33783108358a76337e97ee680f1e863557c9458ca10f9
6
+ metadata.gz: 3363503a3d1db5e84eb20b681cda72546b2a2645ce5db19caf1920f629a2b2e33e13b30cf7f8a78f5df990f2e6e7e9e7634af11a1e9234003361dd8ac3b551f3
7
+ data.tar.gz: 3c04c02dfb36c06a56b8e405989742c989ef7eced69c4992d9c4a8357805a467b6998b4a0506963e23a7b1c7000a9b55d07fe8cff2aef6827bc8e95c4379a841
@@ -42,14 +42,13 @@ module Lita
42
42
  help: {'tapslow' => 'Show me the highest abv keg.'}
43
43
 
44
44
  def send_response(tap, datum, response)
45
- reply = "tinbucket tap #{tap}) #{get_tap_type_text(datum[:type])}"
45
+ reply = "Tin Bucket tap #{tap}) #{get_tap_type_text(datum[:type])}"
46
46
  # reply += "#{datum[:brewery]} "
47
47
  reply += "#{datum[:name]} "
48
48
  # reply += "- #{datum[:desc]}, "
49
49
  # reply += "Served in a #{datum[1]['glass']} glass. "
50
50
  # reply += "#{datum[:remaining]}"
51
- reply += "#{datum[:abv]}%, "
52
- reply += "$#{datum[:price].to_s.sub '.0', ''}"
51
+ reply += "#{datum[:abv]}%"
53
52
 
54
53
  Lita.logger.info "send_response: Replying with #{reply}"
55
54
 
@@ -85,7 +84,7 @@ module Lita
85
84
  beer_name = beer_node.css('.beverageName').children.to_s
86
85
  beer_type = beer_node.css('.beverageStyle').children.to_s
87
86
  beer_location = beer_node.css('.producerLocation').children.to_s
88
- abv = beer_node.css('.abv').children.to_s.sub /\d+\.*\d*\s*/, ''
87
+ abv = beer_node.css('.abv').children.to_s.sub /%\s*/, ''
89
88
  ibu = beer_node.css('.ibu').children.to_s
90
89
  full_text_search = "#{brewery} #{beer_name} #{beer_type} #{beer_location}" # #{beer_desc.to_s.gsub /\d+\.*\d*%*/, ''}
91
90
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-tin-bucket'
3
- spec.version = '0.0.0'
3
+ spec.version = '0.1.0'
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.}
@@ -28,7 +28,7 @@ describe Lita::Handlers::OnewheelBeerTinBucket, lita_handler: true do
28
28
 
29
29
  it 'displays details for tap 4' do
30
30
  send_command 'tinbucket 4'
31
- expect(replies.last).to eq('tinbucket tap 4) Blind Pig - IPA 6.1%, $6')
31
+ expect(replies.last).to eq('Tin Bucket tap 4) Sticky Hands Hop Experience 8.8%')
32
32
  end
33
33
 
34
34
  it 'doesn\'t explode on 1' do
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.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps