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 jruby error on Pathname#relative_path_from #117

Merged
merged 1 commit into from
May 21, 2013

Conversation

luikore
Copy link
Contributor

@luikore luikore commented May 21, 2013

My fault on #115

Go back to the regexp substitution and force both path and directory encodings before substitution.

The regexp is a bit different (need more specs?):

  • ^ match line begin, should be \A for string begin
  • #{File::SEPARATOR}? may get path "/ab" recognized as "b" under directory "/a"

… binary encoding before substitute. because Pathname#relative_path_from behaves different in JRuby
@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling 51fd9fe on luikore:master into 74d5315 on guard:master.

thibaudgg added a commit that referenced this pull request May 21, 2013
Fix jruby error on Pathname#relative_path_from
@thibaudgg thibaudgg merged commit dd9b912 into guard:master May 21, 2013
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.

3 participants