-
Notifications
You must be signed in to change notification settings - Fork 44
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
Adds keeping the order of elements #55
Conversation
deiga
commented
Sep 11, 2014
- fixes Is there a way to force order of elements in the built XML? #52 by adding an array to keep track of order
- Adds configuration for TravsiCI
- Fixes development compatibility with 1.8.7
ping @dam5s |
I search to make elements ordering. |
My Pull Request was never accepted, I think Ordering was the only thing I added, here's the changelog I didn't find any other way, when I was working at the problem. |
How do you use the new order attribute ? (I mean, can you give me a syntax exemple, I'm beginner in Ruby) [quote]Added compatibility with Ruby 1.8.7 What has been modified for Ruby 1.8.7 ? That's the version I use but dam5s's happymapper already works on 1.8.7 ? |
The gems tests didn't run on 1.8.7 or some such :P You can always check the commits :) |
How do you use the new order attribute ? (I mean, can you give me a syntax exemple, I'm beginner in Ruby) |
Theres no special syntax there, it just keeps the order of elements. As a Hash in ruby 1.8.7 sorts elements automatically, which broke the order I needed :) |
Do you mean that for Ruby >1.8.7, nokogiri-happymapper already does the correct ordering ? |
AFAIK Hashes in ruby 1.9 keep the order of elements according to the order they were added, so yeah, in ruby >= 1.9 the ordering should work intrinsicly |
Closing this since according to #55 (comment) this works in all currently supported Ruby versions. |