Fixes a bug in which a certain valid combination of overlapping trees managed by different loaders and ignored directories was mistakenly reported as having conflicting directories.
Detects external namespaces defined with Module#autoload. If your project reopens a 3rd party namespace, Zeitwerk already detected it and did not consider the namespace to be managed by the loader (automatically descends, ignored for reloads, etc.). However, the loader did not do that if the namespace had only an autoload in the 3rd party code yet to be executed. Now it does.
Callbacks
Implements Zeitwerk::Loader#on_setup, which allows you to configure blocks of code to be executed on setup and on each reload. When the callback is fired, the loader is ready, you can refer to project constants in the block.
The block of the existing Zeitwerk::Loader#on_load receives also the value stored in the constant, and the absolute path to its corresponding file or directory:
The method Zeitwerk::Loader#eager_load accepts a force flag:
loader.eager_load(force: true)
If passed, eager load exclusions configured with do_not_eager_load are not honoured (but ignored files and directories are).
This may be handy for test suites that eager load in order to ensure all files define the expected constant.
Eliminates internal use of File.realpath. One visible consequence is that in logs root dirs are shown as configured if they contain symlinks.
When an autoloaded file does not define the expected constant, Ruby clears state differently starting with Ruby 3.1. Unloading has been revised to be compatible with both behaviours.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ github-pages (221 → 222) · Repo
Sorry, we couldn't find anything useful about this release.
↗️ em-websocket (indirect, 0.5.2 → 0.5.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 6 commits:
v0.5.3
Merge pull request #156 from fagiani/patch-1
Merge pull request #159 from JamesVorder/master
Allow newer versions of http_parser until v1.0.0
Allow newer versions of http_parser
Add healthcheck endpoint
↗️ http_parser.rb (indirect, 0.6.0 → 0.8.0) · Repo
Commits
See the full diff on Github. The new version differs by 53 commits:
v0.8.0
Merge pull request #73 from tmm1/fix-jruby-support
Revert "CI: Add JRuby"
spec: Use appropriate encoding to check request_url & status
Make sure to inject rake task dependencies
CI: Add JRuby
Disable test for status on JRuby
Revert "Add status support to JRuby"
Merge pull request #74 from tagomoris/make-ractor-safe
it does not need extreme performance
check the number of arguments for the safe
rename the unappropriate name
update specs about Ractor/kwarg
add kwarg to avoid specifying (nil, type)
avoid referring class instance variable if possible
mark all threads are ractor-safe
Merge pull request #63 from jcoglan/check-header-value-type
v0.7.0
Add bundler/gem_tasks
Merge pull request #71 from ashie/migrate-ci
CI: Migrate from Travis CI to GitHub Actions
Check value passed to set_header_value_type
Merge pull request #59 from saper/https-submodules
Use HTTPS to download submodules
Fix path with spaces
Merge pull request #54 from fantasticfears/dependency
Merge branch 'master' into dependency
Merge pull request #57 from ykzts/http-parser-v2.8.1
Update http-parser to version 2.8.1
test modern rubies
Update dependency
Merge pull request #42 from robertjpayne/master
Merge pull request #48 from cosmo0920/follow-rspec-option-changes
Follow rspec option name change and use long option
Removed unfinished parse_url support
Updated spec for status support
Updated line folder spec as per joyent/http_parser
Provide better safety around on_status and on_url
Added statuses to spec responses
Ensure HTTP parser uses later version
Add status support to JRuby
Added support for HTTP status reason
Merge pull request #41 from robertjpayne/master
Better handling on upgraded connections
Updated / added test cases for aborting the parser
Update rspec development dependency to >= 3
Ignore Gemfile.lock
Merge pull request #34 from tmaier/patch-1
Link to https URIs in README
Update URIs in gemspec
Merge pull request #33 from rkh/travis
update readme
set up Travis CI
↗️ racc (indirect, 1.5.2 → 1.6.0) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 47 commits:
Bump up racc version to 1.6.0
Merge pull request #171 from ruby/gemspec-homepage-url
gemspec: Link to https in homepage [ci skip]
Merge pull request #169 from olleolleolle/dir-everywhere
Merge pull request #170 from ruby/ci-use-latest-jruby
CI: Use JRuby 9.2.19.0
Prefer __dir__ over File.dirname(__FILE__)
Merge pull request #168 from ruby/split-test-helper
Ignored loading CoreAssertions in test case
Rename helper to case
Bump up the latest version of CoreAssertions
Merge pull request #166 from ruby/restructure
Removed pre-setup from gemspec
Removed needless files from gemspec
Move document from library directory
Removed generate code from parser.rb. It's already migrated by rake task
Add missing check for rb_block_call()
Merge pull request #161 from brunoarueira/feat/shrink-gem-size
Shrink gem size
Merge pull request #164 from ruby/drop-ruby-2-4
Remove Object monkey patch
Removed needless condition for old versions of RubyGems.
Drop to support Ruby 2.4
Merge pull request #163 from ruby/refine-doc-dir
Followed up #162
Merge pull request #162 from ruby/doc
Import wiki file to doc
Integrate rhtml files to doc directory
Rename rdoc to doc
Merge pull request #157 from akimd/master
Merge pull request #160 from casperisfine/integer-list-literal
CI: use jruby-9.2.17.0
Stop compressing integer lists
Enclose the code that was accidentally a link in "tt"
Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFE
doc: spellos
Merge pull request #154 from olleolleolle/drop-rubyforge-mention
README: Drop RubyForge link
Merge pull request #153 from akimd/master
typo: s/grammer/grammar/g
Merge pull request #151 from olleolleolle/patch-2
CI: Refer to 3.0 as "3.0" in YAML
Added Ruby 3.0 and JRuby 9.2.16.0
Don't need to install bundler manually
Don't use checkout@master
Merge pull request #148 from enebo/remove_deprecations
Remove deprecations.
↗️ zeitwerk (indirect, 2.4.2 → 2.5.1) · Repo · Changelog
Release Notes
2.5.1 (from changelog)
2.5.0 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands