зеркало из https://github.com/github/ruby.git
Added test script for bundled_gems.rb with zeitwerk
This commit is contained in:
Родитель
69579ed57a
Коммит
9db300219f
|
@ -24,6 +24,9 @@ ruby test_no_warn_dependency.rb
|
|||
echo "* Don't show warning with bootsnap"
|
||||
ruby test_no_warn_bootsnap.rb
|
||||
|
||||
echo "* Don't show warning with zeitwerk"
|
||||
ruby test_no_warn_zeitwerk.rb
|
||||
|
||||
echo "* Don't show warning with net/smtp when net-smtp on Gemfile"
|
||||
ruby test_no_warn_dash_gem.rb
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
require "bundler/inline"
|
||||
|
||||
gemfile do
|
||||
source "https://rubygems.org"
|
||||
gem "zeitwerk", require: false
|
||||
end
|
||||
|
||||
require "zeitwerk"
|
||||
loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
|
||||
loader.setup
|
||||
|
||||
require 'csv'
|
Загрузка…
Ссылка в новой задаче