Actions
Feature #19776
closedWarn bundled gems when it called from `require`
Description
We should warn when users try to load default gems that will be promoted bundled gems at next version. We will warn them only under the bundler environment without Gemfile.
- Ruby 3.3:
- Warn for adding bundled gems to be addressed Ruby 3.4 to Gemfile when user load its gem without
gem 'foo'
in their Gemfile.- Target libraries are TBD
- Also warn existing bundled gems was loaded without
gem 'foo'
of Gemfile. Ex. net-smtp, rexml etc.
- Warn for adding bundled gems to be addressed Ruby 3.4 to Gemfile when user load its gem without
- Ruby 3.4:
- Promote bundled gems.
- Raise LoadError same as current behavior with warnings of Ruby 3.3.
- Warn same as Ruby 3.3.
- Promote bundled gems.
I implemented PoC for this: https://github.com/ruby/ruby/pull/8096
Actions
Like2
Like0Like2Like0Like0Like0Like0Like0