Merge pull request #14267 from Homebrew/dependabot/bundler/Library/Homebrew/did_you_mean-1.6.3

build(deps): bump did_you_mean from 1.6.2 to 1.6.3 in /Library/Homebrew
This commit is contained in:
Nanda H Krishna 2022-12-19 14:48:54 -05:00 committed by GitHub
commit 0e56c86c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 12 additions and 5 deletions

View File

@ -19,7 +19,7 @@ GEM
highline (~> 2.0.0)
concurrent-ruby (1.1.10)
connection_pool (2.3.0)
did_you_mean (1.6.2)
did_you_mean (1.6.3)
diff-lcs (1.5.0)
docile (1.4.0)
domain_name (0.5.20190701)

View File

@ -43,7 +43,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/highline-2.0.3/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/commander-4.6.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/connection_pool-2.3.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/did_you_mean-1.6.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/did_you_mean-1.6.3/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/diff-lcs-1.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/docile-1.4.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/unf_ext-0.0.8.2")

View File

@ -1,3 +0,0 @@
module DidYouMean
VERSION = "1.6.2".freeze
end

View File

@ -59,6 +59,13 @@ module DidYouMean
method_names = receiver.methods + receiver.singleton_methods
method_names += receiver.private_methods if @private_call
method_names.uniq!
# Assume that people trying to use a writer are not interested in a reader
# and vice versa
if method_name.match?(/=\Z/)
method_names.select! { |name| name.match?(/=\Z/) }
else
method_names.reject! { |name| name.match?(/=\Z/) }
end
method_names
else
[]

View File

@ -0,0 +1,3 @@
module DidYouMean
VERSION = "1.6.3".freeze
end