depend on Zeitwerk 1.4.0

This commit is contained in:
Xavier Noria 2019-03-19 10:03:56 +01:00
parent 4a797074e4
commit 3d0850bfb8
3 changed files with 8 additions and 4 deletions

View File

@ -70,7 +70,7 @@ PATH
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 1.3, >= 1.3.4)
zeitwerk (~> 1.4)
rails (6.0.0.beta3)
actioncable (= 6.0.0.beta3)
actionmailbox (= 6.0.0.beta3)
@ -517,7 +517,7 @@ GEM
websocket-extensions (0.1.3)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (1.3.4)
zeitwerk (1.4.0)
PLATFORMS
java

View File

@ -34,5 +34,5 @@ Gem::Specification.new do |s|
s.add_dependency "tzinfo", "~> 1.1"
s.add_dependency "minitest", "~> 5.1"
s.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.2"
s.add_dependency "zeitwerk", "~> 1.3", ">= 1.3.4"
s.add_dependency "zeitwerk", "~> 1.4"
end

View File

@ -21,7 +21,11 @@ module ActiveSupport
end
def autoloaded_constants
(Rails.autoloaders.main.loaded + Rails.autoloaders.once.loaded).to_a
cpaths = []
Rails.autoloaders.each do |autoloader|
cpaths.concat(autoloader.loaded_cpaths.to_a)
end
cpaths
end
def autoloaded?(object)