Test failed for Pure Java.
Removed invalid file imports.
How did you get your nokogiri?
Both 'nokogiri/css/parser' and 'nokogiri/css/parser' are there and can be loaded correctly, even on RedBridge.
So, I think your nokogiri is somehow broken. Would you remove nokogiri gem and reinstall? Then, run rake again?
I didn't install nokogiri gem. I pulled down the latest source from nokogiri repo. and set the path for RedBridge. Please see my gist - https://gist.github.com/1095486. If you take a look at the repo. here - https://github.com/tenderlove/nokogiri/tree/master/lib/nokogiri/css, I don't see parser.rb and tokenizer.rb. Those two missing files gave me a lot of grief when trying to run a test file on RedBridge.
Please let me know if I am missing something.
Ah, I see. You need to compile before use it when Nokogiri is cloned out from git repo. The instructions is https://github.com/tenderlove/nokogiri/wiki/Pure-Java-Nokogiri-for-JRuby (the very bottom).
But, there was a problem on a platform without MinGW installed. I fixed the problem in rev. 4338f17, so please fetch the latest again and build Nokogiri. Then, your problem will be solved.
Would you try "rake clean" using CRuby (not JRuby), then "rake" . If Nokogiri's all tests pass on CRuby , you can build pure Java version. Make sure you are following the build instruction.
I managed to resolve the error and ran the program with RedBridge successfully. But, I am getting the following test failures. I assume they are expected?:
Finished tests in 14.882000s, 71.2942 tests/s, 159.3200 assertions/s.
1061 tests, 2371 assertions, 2 failures, 0 errors, 2 skips
Command failed with status (1): [/Users/sglee77/work/git/jruby/bin/jruby -w...]
Tasks: TOP => default => test
(See full trace by running task with --trace)
Good to hear.
See my comment on issue#496 ( https://github.com/tenderlove/nokogiri/issues/496 ). Currently, pure Java version has these two failures.
Merge branch 'master' of https://github.com/tenderlove/nokogiri
reverted css.rb to previous version.
Added test for issue #494
fix #502. fix #494. Added test for issue #494
I merge the test which passes on master.