Skip to content

FIXES #235 Fix for relative require from within a gem on the classpath.#643

Merged
headius merged 1 commit intojruby:masterfrom
akiellor:relative-require-in-rubygem
Apr 16, 2013
Merged

FIXES #235 Fix for relative require from within a gem on the classpath.#643
headius merged 1 commit intojruby:masterfrom
akiellor:relative-require-in-rubygem

Conversation

@akiellor
Copy link
Contributor

FIXES #235

The test for this bug is an acceptance test, I feel like testing this particular behaviour would be better as a unit test for the LoadService (or NormalSearcher), but the visibility on the internals of the LoadService make this difficult to unit test.

Should we be doing work to factor the LoadService for unit testability?

@headius
Copy link
Member

headius commented Apr 16, 2013

I'd love to be able to do better testing of JRuby internals, and refactoring could certainly help. We do have a JUnit-based test for LoadService you might look at editing.

I'll review your change.

@headius
Copy link
Member

headius commented Apr 16, 2013

The change looks pretty clean. I hate the fact that JVM mixes "jar:" and "jar:file:" URLs unpredictably, but this seems like a reasonable fix. Merging.

headius added a commit that referenced this pull request Apr 16, 2013
FIXES #235 Fix for relative require from within a gem on the classpath.
@headius headius merged commit 1f6d3dc into jruby:master Apr 16, 2013
@akiellor akiellor deleted the relative-require-in-rubygem branch April 16, 2013 19:42
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.

Requiring of relatively referenced jar'ed scripts fails

2 participants