lita-onewheel-beer-base 2.0.4 → 2.2.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
- SHA1:
3
- metadata.gz: 7ec86f858197e539d118edbdea723ebfdf062a2a
4
- data.tar.gz: c57353af66713af820159b5643fd5fb31b376c8e
2
+ SHA256:
3
+ metadata.gz: 69553bd709a9f31c809a00aecbb5c3880f182d412e7932a5f41cb265c62546a1
4
+ data.tar.gz: f5c27caf05e443c35c53e23ffda65f29f0a0d9d371dbd03bc24ad92db0bfb138
5
5
  SHA512:
6
- metadata.gz: 2735f278840935cb0847c667de1de2cb1dc6b13926a9e9ba67e8a37eafab4bd2f59ae6ba250a47d052c6f78d0590bba0d74ebd590be905b26a299ba7418883cb
7
- data.tar.gz: 2ed80b30a7ce6042cef698acc570a45cf09c5a50457745bb124c99792263ae4867ffc0b645450d9e51ce7220218a74ecadd9ce81f2fb9e9e334db561239a6d35
6
+ metadata.gz: 5cd0566895521364006b70ff5e6ba467c3d6dec23f0ea3783e22073aba53269533baedfe745cb24bef9245017b7c9e5509fad27caa8a18423f8b7dfd3c5d5367
7
+ data.tar.gz: bef8da4f5ec980a11f54a5101181df8ad31e9a8cb59bba763bed505b1a248d809e732ceb0319db5603fdc5d8051554033275557d74151b538bf6080b151dc22d
@@ -11,7 +11,7 @@ module Lita
11
11
  beers.each do |tap, datum|
12
12
  reply += "#{tap}) "
13
13
  reply += get_tap_type_text(datum[:type])
14
- reply += datum[:brewery].to_s + ' '
14
+ reply += (datum[:brewery].to_s.empty?)? '' : datum[:brewery].to_s + ' '
15
15
  reply += (datum[:name].to_s.empty?)? '' : datum[:name].to_s + ' '
16
16
  end
17
17
  reply = reply.strip.sub /,\s*$/, ''
@@ -31,10 +31,10 @@ module Lita
31
31
  query = response.matches[0][0].strip
32
32
  # Search directly by tap number OR full text match.
33
33
  # Let's make cask and nitro taps specific.
34
- Lita.logger.debug "Searching for #{query} within #{tap}"
34
+ Lita.logger.debug "Searching for #{query} within #{tap}, #{datum[:search]}"
35
35
  if query.match(/^\d+$/)
36
36
  # Short circuit if we're searching only by number.
37
- if tap == query
37
+ if tap.to_s == query.to_s
38
38
  Lita.logger.debug "#{query} matched #{tap} by number"
39
39
  send_response(tap, datum, response)
40
40
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-beer-base'
3
- spec.version = '2.0.4'
3
+ spec.version = '2.2.0'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita base class for beer searches.}
@@ -14,13 +14,13 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_runtime_dependency 'lita', '~> 4.7'
17
+ spec.add_runtime_dependency 'lita', '~> 4'
18
18
  spec.add_runtime_dependency 'sanitize', '~> 4.0'
19
- spec.add_runtime_dependency 'rest-client', '~> 1.8'
19
+ spec.add_runtime_dependency 'rest-client', '~> 2'
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.3'
21
+ spec.add_development_dependency 'bundler', '~> 2'
22
22
  # spec.add_development_dependency 'pry-byebug', '~> 3.1'
23
- spec.add_development_dependency 'rake', '~> 10.4'
23
+ spec.add_development_dependency 'rake', '~> 13'
24
24
  spec.add_development_dependency 'rack-test', '~> 0.6'
25
25
  spec.add_development_dependency 'rspec', '~> 3.0'
26
26
  spec.add_development_dependency 'simplecov', '~> 0.10'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-beer-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-15 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.7'
19
+ version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.7'
26
+ version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sanitize
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,42 +44,42 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.8'
47
+ version: '2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.8'
54
+ version: '2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.3'
61
+ version: '2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.3'
68
+ version: '2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.4'
75
+ version: '13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.4'
82
+ version: '13'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rack-test
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -174,8 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.5.1
177
+ rubygems_version: 3.1.2
179
178
  signing_key:
180
179
  specification_version: 4
181
180
  summary: See above.