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

Add workaround for Nokogiri modifying input on JRuby #416

Merged
merged 4 commits into from Apr 13, 2014

Conversation

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Apr 12, 2014

Nokogiri on JRuby modifies the encoding of the incoming content, which results in a “cannot modify frozen variable” error when used together with nanoc.

This PR moves the parsing in a separate #parse method, which catches frozen errors and retries with a duplicate of the input.

Please note: There are a bunch of failing/erroring tests on JRuby at the moment. Fixing these is not the purpose of this PR, but I will get to those tests soon.

@ddfreyne
Copy link
Member Author

@ddfreyne ddfreyne commented Apr 13, 2014

Loading

@bobthecow
Copy link
Member

@bobthecow bobthecow commented Apr 13, 2014

👍

Loading

ddfreyne added a commit that referenced this issue Apr 13, 2014
Add workaround for Nokogiri modifying input on JRuby
@ddfreyne ddfreyne merged commit 15c85e0 into release-3.6.x Apr 13, 2014
1 check passed
Loading
@ddfreyne ddfreyne deleted the bug/nokogiri-on-jruby-frozen-content branch Apr 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants