-
Notifications
You must be signed in to change notification settings - Fork 11
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
Index into array resulting from Hash#map #7
Conversation
Not sure why this is suddenly failing but the elements passed to this `map` block are not hashes, they are arrays. This is the simplest fix.
CRuby and JRuby both produce arrays at this point, so I'm not sure how the old code ever worked:
|
Thanks for the fix! The xml changed, on the passing build (I'm happy I chose to always output the XML there):
and on the failing build:
i.e. multiple jruby-dev-builder/find-jruby-head-url.rb Lines 45 to 46 in e6de7fd
|
BTW IIRC we cannot just use |
Ahh, so when there's two snapshots in the snapshot repo, there will be multiple children, in which case MicroParserXML will put them in a hash. Perhaps it's MicroParserXML that should be changed to consistently return hashes? I'm not sure if that's your code or someone else's, but returning different types depending on how many child elements there are seems like a bad idea. |
Yes, that's my code and indeed it's not great for that case (although convenient for other cases). |
* Installing nokogiri used to be slow, but no longer a problem nowadays. * It's more correct, see #7
Done: c018acd |
Not sure why this is suddenly failing but the elements passed to this
map
block are not hashes, they are arrays. This is the simplest fix.