Commit c30d74b
authored
Ensure version from bundled_gems is used in tool/rdoc-srcdir (ruby#16712)
Use version from bundled_gems in tool/rdoc-srcdir
Previously, `tool/rdoc-srcdir` used `Dir.glob(...).first` to find
bundled gems like rdoc and tsort. This picks the first match
alphabetically, which can select a stale older version when multiple
versions coexist in `.bundle/gems/` (e.g. `rdoc-7.1.0` over
`rdoc-7.2.0`).
Fix by reading the declared version from `gems/bundled_gems` and
constructing the exact path, ensuring the correct version is always
loaded regardless of leftover directories.1 parent 4245f8e commit c30d74b
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | | - | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
| |||
0 commit comments