Skip to content

Commit

Permalink
Bump jaro_winkler dependency to remove deprecation
Browse files Browse the repository at this point in the history
Require 'jaro_winkler', '~> 1.6', in order to use
`JaroWinkler.similarity` instead of `JaroWinkler.distance` to fix a
deprecation message while running specs.
  • Loading branch information
tagliala committed Dec 8, 2024
1 parent 524c94e commit c4c8efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/solargraph/pin/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def do_query
# @return [Float]
def fuzzy_string_match str1, str2
return (1.0 + (str2.length.to_f / str1.length.to_f)) if str1.downcase.include?(str2.downcase)
JaroWinkler.distance(str1, str2, ignore_case: true)
JaroWinkler.similarity(str1, str2, ignore_case: true)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion solargraph.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'bundler', '~> 2.0'
s.add_runtime_dependency 'diff-lcs', '~> 1.4'
s.add_runtime_dependency 'e2mmap'
s.add_runtime_dependency 'jaro_winkler', '~> 1.5'
s.add_runtime_dependency 'jaro_winkler', '~> 1.6'
s.add_runtime_dependency 'kramdown', '~> 2.3'
s.add_runtime_dependency 'kramdown-parser-gfm', '~> 1.1'
s.add_runtime_dependency 'parser', '~> 3.0'
Expand Down

0 comments on commit c4c8efc

Please sign in to comment.