XML::Node objects, when compacted, update their internal struct's reference to the Ruby object wrapper. Previously, with GC compaction enabled, a segmentation fault was possible after compaction was triggered. [#2578] (Thanks, @eightbitraptor!)
Different file systems may list directories in different order, and with this
change we ensure that client code eager loads consistently across platforms,
for example.
Before this release, subdirectories of root directories always represented
namespaces (unless ignored or collapsed). From now on, to be considered
namespaces they also have to contain at least one non-ignored Ruby file with
extension .rb, directly or recursively.
If you know beforehand a certain directory or directory pattern does not
represent a namespace, it is intentional and more efficient to tell Zeitwerk
to ignore it.
However, if you don't do so and have a directory tasks that only contains
Rake files, arguably that directory is not meant to represent a Ruby module.
Before, Zeitwerk would define a top-level Tasks module after it; now, it
does not.
This feature is also handy for projects that have directories with auxiliary
resources mixed in the project tree in a way that is too dynamic for an ignore
pattern to be practical. See #216.
In the unlikely case that an existing project has an empty directory for the
sole purpose of defining a totally empty module (no code, and no nested
classes or modules), such module has now to be defined in a file.
Directories are scanned again on reloads.
On setup, loaders created with Zeitwerk::Loader.for_gem issue warnings if
lib has extra, non-ignored Ruby files or directories.
This is motivated by existing gems with directories under lib that are not
meant to define Ruby modules, like directories for Rails generators, for
instance.
This warning can be silenced in the unlikely case that the extra stuff is
actually autoloadable and has to be managed by Zeitwerk.
Please, check the documentation for
further details.
This method returns an instance of a private subclass of Zeitwerk::Loader
now, but you cannot rely on the type, just on the interface.
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 (226 → 227) · Repo
Release Notes
227
Does any of this look wrong? Please let us know.
Sorry, we couldn't find anything useful about this release.
↗️ activesupport (indirect, 6.0.4.7 → 6.0.5.1) · Repo · Changelog
Release Notes
6.0.5.1 (from changelog)
6.0.5 (from changelog)
6.0.4.8 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 13 commits:
Preparing for 6.0.5.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
Preparing for 6.0.5 release
Merge pull request #45027 from rails/fix-tag-helper-regression
Merge branch '6-0-sec' into 6-0-stable
Preparing for 6.0.4.8 release
updating changelog for release
Fix and add protections for XSS in names.
Lock minitest for 6.0 CI
Bundle 6.0 with 0.14.3 version of que or lower
Merge pull request #44635 from imtayadeway/tjw/api-csp-i
Merge branch '6-0-sec' into 6-0-stable
↗️ commonmarker (indirect, 0.23.4 → 0.23.5) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 9 commits:
Bump to 0.23.5
lint
Merge pull request #180 from lumaxis/main
Update cmark-upstream to https://github.com/github/cmark-gfm/commit/ef1cfcb8a31de72bb951d9259bc4ac89e266975b
Merge pull request #179 from dorkrawk/dorkrawk/undefine-allocate-tdata
add rb_undef_alloc_func for Node
Merge pull request #174 from petergoldstein/feature/add_ruby_3_1_to_ci
Add Ruby 3.1 to the CI matrix
add changelog
↗️ html-pipeline (indirect, 2.14.1 → 2.14.2) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
:gem: bump to 2.14.2
Merge pull request #361 from glaszig/data-url
handle invalid data urls in absolute source filter
↗️ minitest (indirect, 5.15.0 → 5.16.2) · Repo · Changelog
Release Notes
5.16.2 (from changelog)
5.16.1 (from changelog)
5.16.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 35 commits:
prepped for release
CI: just show dots please
haha
- Added MT_KWARGS_HACK kludge for stub to deal with ruby 2.7 kwargs nastiness. (tsugimoto)
- Nuke ivars if exception fails to marshal twice (eg better_errors). (irphilli)
- In #expect, pop Hash class from args if $MT_KWARGS_HACK. (casperisfine)
prepped for release
- Clarified some doco wrt the block on #stub.
- Apparently adding real kwarg support to mocks/stubs broke some code. Fixed.
! Dropping ruby 2.2 - 2.5. 2.6 is DTM soon too.
prepped for release
Fixed a test that's broken if only 1 CPU (eg, my server... oops)
- Had to patch up mock and stub to deal with <=2.7 kwargs oddities
Finally flushed out the last edge cases (that I can find) for mocks wrt kwargs.
- Extended Mock#expect to record kwargs.
oops... this part of the exception is only on ruby 3.1+
- (Re)Fixed marshalling of exceptions, neutering them in 2 passes.
refactored method checks into a custom assertion. (tenderlove)
! Added Minitest::TestTask.
Renamed Minitest::SEED to Minitest.seed
+ Added --show-skips option to show skips at end of run but not require --verbose. (MSP-Greg)
- Fixed more problems with rdoc.
oops
+ Added Minitest::SEED, the random seed used by the run.
+ Removed minor optimization removing empty suites before run.
+ assert_match now returns the MatchData on success. (Nakilon)
Drop ruby 2.2-2.6 from CI now that rails 5.2 is EOL! YAY! Other simplifications as well.
Drop windows from the CI matrix and run windows-latest + ruby-latest. It's SO slow and not really worth the extra effort.
don't use bundler for either test task
setup-ruby prints the version
Bumped CI a fair amount
Added stubberry to readme. (alekseyl)
Fixed random test failure because of parallel execution. (mame)
Replaced http with https whenever such link exists. (apatniv)
Updated the test suite to handle ASCII-8BIT renaming. (casperisfine)
↗️ nokogiri (indirect, 1.13.6 → 1.13.7) · Repo · Changelog
Release Notes
1.13.7
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 11 commits:
version bump to v1.13.7
doc: update CHANGELOG
dep: lock rubocop and rubocop-shopify
Merge pull request #2588 from sparklemotion/fix-compaction-on-nodes_backport-to-v1.13.x
dep: lock rake-compiler-dock to 1.2.2
test: add memcheck suppressions
Only add compaction callback on Rubies that support it
Only check compaction on platforms that support it
Add compaction callback to nodes
Add a "node unwrap" macro and use it
Always set a mark function on the node wrapper
↗️ unf_ext (indirect, 0.0.8.1 → 0.0.8.2) · Repo · Changelog
Release Notes
0.0.8.2 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 5 commits:
Drop Ruby 2.6 from CI
Bump VERSION to 0.0.8.2
Bump VERSION to 0.0.8.2.beta
Add x64-mingw-ucrt as a native platform
Use rake-compiler-dock 1.2.1
↗️ zeitwerk (indirect, 2.5.4 → 2.6.0) · Repo · Changelog
Release Notes
2.6.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 43 commits:
Ready for 2.6.0
Edit
Edits the CHANGELOG
Pass over some docs
Undo concurrent autoload while reloading detection
Iterates the docs for implicit namespaces
Add test coverage and more for processing order
Merge pull request #219 from Shopify/consistent-load-order
Eager load constants in a consistent order
Add a comment about the return type of for_gem
Delete spurious annotation
Delete a couple of unusued variables in tests
Unlock the reloading mutex in an ensure clause
Add a couple more tests
Add a new Ruby compatibility test
Add Ruby 3.1 to the CI matrix
Make on_unload callbacks more robust in the event of failed autoloads
Remove date from CHANGELOG
Ready for 2.6.0
Centralize all ignored stuff in ls()
Ignore directories with no Ruby files
Document directories define namespaces regardless of their content
Warn on extra Ruby files or directories found in gems `lib` directories
Test and document UTF-8 support
Revises comment in test.
Use the reloading mutex itself as a flag
Explain rationale for not obvious implementation
CHANGELOG edits
Raises Zeitwerk::UnsynchronizedReload on concurrent reloads
Let CI test on windows-latest too
Improve concurrent autovivification in test
Disable err on warnings by now
Revert "Use the modern ... as catchall signature"
Use the modern ... as catchall signature
Let NoWarningsPolicy work with old signatures
Decorate Warning.warn as documented
Simplify abort on warn
Let the test suite abort on warnigns
Merge pull request #211 from teoljungberg/enable-warnings
Enable warnings when running tests
Fixes type signature annotation
"Outstanding Performance Award" Fukuoka Ruby Award 2022
Use the cget helper 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