Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix accessing files via Java ClassLoader in JRuby #401

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Majlen
Copy link

@Majlen Majlen commented Nov 1, 2017

It should fix #47 and probably #326 . It fixes access to files embedded in Java applications.
It might be wise to make the changes in some other way, the fix is not very nice (it basically just checks some specific conditions in current code).

Fixes access to files accessed through Java ClassLoader in JRuby
Addressable::URI.convert_path(parsed_uri.path)
if not parsed_uri.scheme.nil?
parsed_uri
else
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional would read better as if parsed_uri.scheme

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, makes sense. I'll edit the commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validator can't find draft-03.json when in a Warbler/JRuby jar
2 participants