path: root/lib/rubygems/commands/query_command.rb
diff options
authorDavid Rodríguez <>2020-02-04 17:26:28 +0100
committerHiroshi SHIBATA <>2020-02-06 21:57:18 +0900
commitd767da428c28b7b9fec56b383bb32f6f76c6ad26 (patch)
treecda6be9ff3ab6133d325a5aec64021225e01ec27 /lib/rubygems/commands/query_command.rb
parentc6b5881eae28fa1a76514b2de00ef0155c348170 (diff)
[rubygems/rubygems] Fix require issue with file extension priority
If `require "a"` is run when two folders have been specified in the -I option including a "a.rb" file and a "" file respectively, the ruby spec says that the ".rb" file should always be preferred. However, the logic we added in to make the -I option always beat default gems does not respect this spec, creating a difference from the original ruby-core's require. [the ruby spec says]:
Diffstat (limited to 'lib/rubygems/commands/query_command.rb')
0 files changed, 0 insertions, 0 deletions