diff options
| author | Chris Hasiński <krzysztof.hasinski@gmail.com> | 2026-01-19 18:35:52 +0100 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2026-02-12 10:41:49 -0800 |
| commit | 485a6037916fa09b07429d41e8699586271eb91c (patch) | |
| tree | b08e4b3ac53739a7db628bcad90a4a675cb4dc4f /include/rubyio.h | |
| parent | f3bfffe8565b08b3426003aebbe328a0ecedad26 (diff) | |
Fix bundled gems warning for all subfeatures of hyphenated gems
PR #15822 fixed the warning for direct hyphenated gem requires like
`benchmark/ips` → `benchmark-ips`. However, hyphenated gems often
provide multiple files under their namespace.
For example, `benchmark-ips` provides:
- benchmark/ips.rb
- benchmark/timing.rb
- benchmark/compare.rb
When requiring `benchmark/timing`, the previous fix only checked for
`benchmark-timing` gem (doesn't exist), not `benchmark-ips` which
actually provides the file.
This fix checks if ANY gem matching `{prefix}-*` is in the bundle
specs, which covers all subfeatures provided by hyphenated gems.
Reported in https://github.com/ruby/ruby/pull/15822#issuecomment-123456
Diffstat (limited to 'include/rubyio.h')
0 files changed, 0 insertions, 0 deletions
