Now that pathname is back to being pure Ruby, we need to re-integrate some JRuby changes.
JRuby needs pathname's path munging to support URI roots when used in an embedded JVM application. The code below might be all that needs to be added, but I have yet to audit our native code for URI-awareness.
https://github.com/jruby/jruby/blob/eb3751f2d52c17e8e8b8127d9c466839f8726a9a/core/src/main/ruby/jruby/kernel/pathname.rb#L32-L46
This code just adds our expected URI roots to the SEPARATOR_LIST and SEPARATOR_PAT expressions so they will be considered path roots.
I'm not sure if there's interest in having pathname support URI paths, but it would be fine for this to be JRuby-only as well.
cc @eregon since he did the re-rubyfication of this library.
Now that pathname is back to being pure Ruby, we need to re-integrate some JRuby changes.
JRuby needs pathname's path munging to support URI roots when used in an embedded JVM application. The code below might be all that needs to be added, but I have yet to audit our native code for URI-awareness.
https://github.com/jruby/jruby/blob/eb3751f2d52c17e8e8b8127d9c466839f8726a9a/core/src/main/ruby/jruby/kernel/pathname.rb#L32-L46
This code just adds our expected URI roots to the
SEPARATOR_LISTandSEPARATOR_PATexpressions so they will be considered path roots.I'm not sure if there's interest in having pathname support URI paths, but it would be fine for this to be JRuby-only as well.
cc @eregon since he did the re-rubyfication of this library.