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

Exclusion fix #28

Merged
merged 3 commits into from
Jul 10, 2017
Merged

Exclusion fix #28

merged 3 commits into from
Jul 10, 2017

Conversation

sonnym
Copy link
Contributor

@sonnym sonnym commented Jul 8, 2017

I noticed a typo in the branch name on the other pull request, so here is an improved one!

This fixes persistent issues with excluding files. In essence, the coercion from string keys to symbol keys in output_html violated idempotency; i.e. the first attempt to get the exclude setting would work via a string, but then failed in subsequent attempts, since a symbol would be required. This pull request just uses string keys throughout.

I also greatly simplified how exclusion checking works by making use of Kernel#Array, Array#any?, and Hash#dig.

sonnym added 3 commits July 8, 2017 14:10
coercing all the keys to symbols affects attempting to access the
exclusion property; the first time it will work as a string, but after
the coercion, it must be accessed as a symbol

as such, it is just simpler to use string keys throughout
This was referenced Jul 8, 2017
@digitalsparky digitalsparky merged commit cab431a into digitalsparky:master Jul 10, 2017
@digitalsparky
Copy link
Owner

Thanks for your contribution :).

@sonnym
Copy link
Contributor Author

sonnym commented Jul 10, 2017

My pleasure! Thank you for this convenient plugin!

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