Skip to content
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

support added for postorder tree traversal merge algorithm #8

Closed
wants to merge 5 commits into from

Conversation

NicoLugil
Copy link

I added an option to solve #6
There is now a new option (tree_traversal) which can be set to
:breadthfirst --> this is the old behaviour
:postorder --> new option

In the new option the merging happens in the other direction, i.e. it starts at the most super class, in there it merges the derived, and so forth. Files at the same level, get merged from left to right.
It uses deep_merge! instead of deep_merge.

I used the rubytree class to get a very lean implementation. I think the 'classic' behavior can also be done via this method, but I did not dare changing the working code.

I also made a test directory with some test files that I used to test this setup. There is no automation though...

@magynhard
Copy link
Owner

As mentioned in Issue #6, i now accepted and merged the PR #9.

A new version will be released soon, after adding some more rspec tests and doc.

Thank you very much for your contribution.

@magynhard magynhard closed this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants