Merge pull request #6797 from Homebrew/dependabot/bundler/Library/Homebrew/zeitwerk-2.2.2

build: bump zeitwerk from 2.2.1 to 2.2.2 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2019-12-02 12:47:39 +00:00 committed by GitHub
commit 51ea444460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ GEM
unf_ext (0.0.7.6)
unicode-display_width (1.6.0)
webrobots (0.1.2)
zeitwerk (2.2.1)
zeitwerk (2.2.2)
PLATFORMS
ruby

View File

@ -8,7 +8,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.7.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.13.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/thread_safe-0.3.6/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-1.2.5/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.2.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.2.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.0.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.0/lib"
$:.unshift "#{path}/"

View File

@ -494,7 +494,7 @@ module Zeitwerk
rescue ::NameError => error
path_type = ruby?(abspath) ? "file" : "directory"
raise NameError, <<~MESSAGE
raise NameError.new(<<~MESSAGE, error.name)
#{error.message} inferred by #{inflector.class} from #{path_type}
#{abspath}
@ -558,7 +558,7 @@ module Zeitwerk
end
# @param dir [String] directory that would have autovivified a module
# @param file [String] the file where the namespace is explictly defined
# @param file [String] the file where the namespace is explicitly defined
# @param parent [Module]
# @param cname [Symbol]
# @return [void]

View File

@ -14,7 +14,7 @@ module Zeitwerk::Loader::Callbacks
if logger && cdef?(*cref)
log("constant #{cpath(*cref)} loaded from file #{file}")
elsif !cdef?(*cref)
raise Zeitwerk::NameError, "expected file #{file} to define constant #{cpath(*cref)}, but didn't"
raise Zeitwerk::NameError.new("expected file #{file} to define constant #{cpath(*cref)}, but didn't", cref.last)
end
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Zeitwerk
VERSION = "2.2.1"
VERSION = "2.2.2"
end