Commit 7dc5f95
committed
Validate core library path format and simplify copy logic
Raise an exception when a load path does not match the expected core library directories via RUBY_LIBRARY_PATH_REGEX.
Remove the old match block and replace it with a direct iteration over `path.find`, copying each file into the correct relative subdirectory.
This improves error detection and streamlines the copy workflow.1 parent 279cd4f commit 7dc5f95
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
0 commit comments