-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
JRuby doesn't coerce namespaces out of strings #715
Comments
@yokolet @flavorjones Any word on this? Bounty up for grabs. |
Work is busy this week week for me and @jvshahid. Someone will get to it when we have some time. |
Hello, I pushed the fix just now. The rev. is 2d0cdea . As far as I tested, the two tests above passed. |
Can we get an RC? |
Yes. Sometime this morning.
|
Blocked on releasing today for uninteresting reasons. Will get something out ASAP. Thanks for your patience. |
Might that RC make its way out today? |
Sorry. More detail on the uninteresting reasons: I'm actually having difficulty building the windows gems all of a sudden. Something on my system changed, and I need to invest some time to figure out what. Apologies, and thanks for your patience. Hopefully today! |
This is precisely why gemspecs are normally included in repos. And yes, I know all about the nokogiri policy. I guess I'll just fork. |
The gemspecs know how to build windows binaries? Did that get included in bundler? |
Not that I know of, but I don't personally care a jot about windows ;) |
Well that makes it OK then! <3 <3 <3
|
That's my point. Actual releases imply some kind of contract, a la semver, with regards to the code actually functioning. A git checkout does not. People understand this when they tag to a git repo in their Gemfile. That said, I fully understand that the nokogiri team's opinion on this matter will never change, but it's also not fun to sit silently and watch it cause problems. |
Unfortunately this is still broken. require 'nokogiri'
Foo = Class.new Nokogiri::XML::Node
shared_examples_for "#<<" do
let(:doc) { Nokogiri::XML::Document.new }
subject { described_class.new 'foo', doc }
it "should maintain element namespaces" do
subject << '<foobar xmlns="barfoo"/>'
child = subject.children.first
child.name.should be == 'foobar'
child.namespace.href.should be == 'barfoo'
child.attributes.should be_empty
end
it "should maintain element namespaces in URN form" do
subject << '<foobar xmlns="urn:xmpp:foospec:barfoo"/>'
child = subject.children.first
child.name.should be == 'foobar'
child.namespace.href.should be == 'urn:xmpp:foospec:barfoo'
child.attributes.should be_empty
end
end
describe Nokogiri::XML::Node do
it_should_behave_like '#<<'
end
describe Foo do
it_should_behave_like '#<<'
end
I notice that in fixes for these reports, there is no test coverage being added to avoid future regressions. Why is this? |
thanks for following up and making sure that the bug is fixed. i added the failing tests to the test suite and will work on a fix shortly. |
Thanks all :) |
@flavorjones Given that nobody has expressed an interest in the 1.5.6.rc1 release on windows, and that a release for *nix is important to several people, can we please assume that those on windows can make do with 1.5.5 and just get the release out? Frankly, those windows users can wait for rc2. |
Yup. |
1.5.6.rc1 has been pushed. |
1.5.6.rc1 has been pushed only for JRuby and non-windows MRI. |
Affected ruby versions
Affected nokogiri versions
Test case
Result
The text was updated successfully, but these errors were encountered: