Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If there were gems in the "unresolved" list, then the files in that gem would be preferred over files that included in -I. For example, if you had a depdedncy tree that looks like this: ```dot digraph g { a -> b [label="version: = 1"]; b -> c [label="version: > 0"]; } ``` and the installed gems were like this: a = 1, b = 1, c = 1, c = 2, When the user requires 'a', then 'b' will be immediately activated because there is only one decision to make. However, 'c' will be added to the `unresloved_deps` list. Having anything in that list will cause Rubygems [to skip checking if Ruby's `require` can handle the file](https://github.com/rubygems/rubygems/blob/07f1a83fe095e2b9b09e2f6b9661aed326b2de6a/lib/rubygems/core_ext/kernel_require.rb#L52-55) If the user provides any paths to `-I` that contain files that are also in an activated gem (like `b` in this case), then Rubygems will prefer the file from the gem rather than the file provided by -I. This commit fixes it so that -I will win over gems. e2935c8 introduced the incorrect behavior.
- Loading branch information
OHAI