mirror of
https://github.com/ms-ati/docile
synced 2023-03-27 23:21:52 -04:00
Fix newer Rubocop issues
* grep_v instead of reject for filtering out regular expression * MFA required in Gemspec
This commit is contained in:
parent
9c02ac349d
commit
20ee87f5f4
2 changed files with 2 additions and 1 deletions
|
@ -31,5 +31,6 @@ Gem::Specification.new do |s|
|
|||
"homepage_uri" => "https://ms-ati.github.io/docile/",
|
||||
"changelog_uri" => "https://github.com/ms-ati/docile/blob/main/HISTORY.md",
|
||||
"source_code_uri" => "https://github.com/ms-ati/docile",
|
||||
"rubygems_mfa_required" => "true",
|
||||
}
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ module Docile
|
|||
FILTER_PATTERN = %r{/lib/docile/}.freeze
|
||||
|
||||
def backtrace
|
||||
super.reject { |trace| trace =~ FILTER_PATTERN }
|
||||
super.grep_v(FILTER_PATTERN)
|
||||
end
|
||||
|
||||
if ::Exception.public_method_defined?(:backtrace_locations)
|
||||
|
|
Loading…
Reference in a new issue