diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-19 11:31:17 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 07:35:48 +0900 |
commit | b8984370daaff4809b04330a6d7098f171568f79 (patch) | |
tree | d2921895c0d293ed7d5492d40767ac25aebe937a /lib/rubygems | |
parent | 37abd2c390bb93fe1a306465bb5de35feb70a82a (diff) | |
download | ruby-b8984370daaff4809b04330a6d7098f171568f79.tar.gz |
[rubygems/rubygems] Fix jruby issue
https://github.com/rubygems/rubygems/commit/fc3f722164
Diffstat (limited to 'lib/rubygems')
-rwxr-xr-x | lib/rubygems/core_ext/kernel_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb index 4759f26090..5656524f33 100755 --- a/lib/rubygems/core_ext/kernel_require.rb +++ b/lib/rubygems/core_ext/kernel_require.rb @@ -40,8 +40,8 @@ module Kernel rp = nil $LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp| Gem.suffixes.each do |s| - full_path = File.join(lp, "#{path}#{s}") - if File.file?(File.expand_path(full_path)) + full_path = File.expand_path(File.join(lp, "#{path}#{s}")) + if File.file?(full_path) rp = full_path break end |