Ruby does not have gem-level visibility, so sometimes you need things to be
public for them to be accessible internally. But they do not belong to the
public interface of the gem.
A method that is undocumented and marked as @private in the source code is
clearly private API, regardless of its formal Ruby visibility.
This release starts a series of gradual patches in which private interface is
enforced with stricter formal visibility.
2.6.3 (31 October 2022)
v2.6.2 introduced a regression in the logic that checks whether two loaders
want to manage the same root directories. It has been fixed.
2.6.2 (31 October 2022)
Zeitwerk::Loader#load_file allows you to load an individual Ruby file. Check
its documentation
for details.
Zeitwerk::Loader#eager_load_dir allows you to eager load a directory,
recursively. Check its
documentation for
details.
Zeitwerk::Loader#eager_load_namespace allows you to eager a namespace,
recursively. Namespaces are global, this method loads only what the receiver
manages from that namespace, if anything. Check its
documentation for
details.
Zeitwerk::Loader.eager_load_namespace broadcasts eager_load_namespace to
all registered loaders. Check its
documentation
for details.
Documents shadowed files.
They always existed, but were not covered by the documentation.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will merge this PR once CI passes on it, as requested by @Floppy.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps zeitwerk from 2.6.1 to 2.6.4.
Changelog
Sourced from zeitwerk's changelog.
Commits
434ad01
Ready for 2.6.4ccadc0f
Use each_key to iterate over hash keysaf1d6ac
Make private root_dirs internal and rename to rootseb020fd
Mark private config-related methods individuallyca6ced2
Reorder public config interfaceb7b6f55
Make private on_unload_callbacks Ruby private4d77a77
Make private on_load_callbacks Ruby private4f438f1
Make private on_setup_callbacks Ruby private2322c35
Make private eager_load_exclusions Ruby private0bc567c
Make private collapse_dirs Ruby privateDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will merge this PR once CI passes on it, as requested by @Floppy.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)