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/",
|
"homepage_uri" => "https://ms-ati.github.io/docile/",
|
||||||
"changelog_uri" => "https://github.com/ms-ati/docile/blob/main/HISTORY.md",
|
"changelog_uri" => "https://github.com/ms-ati/docile/blob/main/HISTORY.md",
|
||||||
"source_code_uri" => "https://github.com/ms-ati/docile",
|
"source_code_uri" => "https://github.com/ms-ati/docile",
|
||||||
|
"rubygems_mfa_required" => "true",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,7 @@ module Docile
|
||||||
FILTER_PATTERN = %r{/lib/docile/}.freeze
|
FILTER_PATTERN = %r{/lib/docile/}.freeze
|
||||||
|
|
||||||
def backtrace
|
def backtrace
|
||||||
super.reject { |trace| trace =~ FILTER_PATTERN }
|
super.grep_v(FILTER_PATTERN)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ::Exception.public_method_defined?(:backtrace_locations)
|
if ::Exception.public_method_defined?(:backtrace_locations)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue