Skip to content

Commit 15e9dc1

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Remove JRuby workaround
Original issue was fixed in JRuby 9.3.0.0, which seems old enough for us to remove the workaround. ruby/rubygems@d285148d39
1 parent a0b501e commit 15e9dc1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/bundler/source/path.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ def expanded_path
124124
end
125125

126126
def expand(somepath)
127-
if Bundler.current_ruby.jruby? # TODO: Unify when https://github.com/rubygems/bundler/issues/7598 fixed upstream and all supported jrubies include the fix
128-
somepath.expand_path(root_path).expand_path
129-
else
130-
somepath.expand_path(root_path)
131-
end
127+
somepath.expand_path(root_path)
132128
rescue ArgumentError => e
133129
Bundler.ui.debug(e)
134130
raise PathError, "There was an error while trying to use the path " \

0 commit comments

Comments
 (0)