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
Replace Hpricot with Nokogiri, since Hpricot is officially dead. shoes/s... #190
Conversation
|
I squashed my commits and I'd say this can go in now. Like I said before there are no unit tests for this yet, but I'd like to address that while factoring out some aspects of the manual generation in their own files/classes, since the current lib/shoes/help and lib/shoes/manual are not that easily testable. |
|
This says it can't be automatically merged though. Can you rebase off of current master? |
|
Thanks + Cheers, |
Besides lib/shoes/help.rb I also updated samples/expert-funnies and the Japanese manual since they both referred to using Hpricot, however they both depend on 'download' which seems to be (currently) unimplemented.
|
Rebased! |
:'( |
|
That's an arbitrary number. Will be less when we pull out packaging artifacts. Guess that should happen soon :/ |
|
Yeah probably, I'll increase the limit for now and then merge this :-) |
|
Okay people, am I doing something wrong here? For me, both on current master and on this PR I get the following error when running the manual No time to investigate further... -sorry :o |
|
I can just say that I'm not getting that error on OS X / JRuby 1.7.1. |
|
@arnebrasseur Thanks for the great work! We could migrate from Hpricot to Nokogiri. :) |
|
My pleasure! I hope to make some more time for Shoes in the near future. On 28 January 2013 14:15, ashbb notifications@github.com wrote:
|
|
Why not migrate to MultiXML so you're not coupled to any particular XML library? |
|
We're on JRuby, so we want Hpricot's baller implementation in Java. |
|
Fair enough. But just to be clear, MultiXML allows you to continue using Nokogiri’s implementation under the hood. It just means you don't need to change all your interfaces if you ever want to switch again in the future (say, if there's an even better implementation, or if you move off JRuby, or if the maintainers of Nokogiri suddenly vanish). |
|
Totes. Since we bundle everything up as a download, we want to keep things as slim as possible, and only introduce extra deps when we have to. Good to know for the future though |
|
I think that would actually be a very good idea since we want to support multiple backends, potentially an MRI/Qt one so if the change isn't too big it would be cool :-) |
|
Important detail here : we're mostly using Nokogiri for generating From the description of MultiXML : "A generic swappable back-end for |
|
Thanks for that input didn't look at it that closely! |
|
@arnebrasseur currently no, but there are methods that parse XML in the shoes API, IIRC. The stuff that fetches websites parses the sites too. |
Replace Hpricot with Nokogiri, since Hpricot is officially dead. #176
Besides lib/shoes/help.rb I also updated samples/expert-funnies and the Japanese
manual since they both referred to using Hpricot, however they both depend on 'download'
which seems to be (currently) unimplemented.