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

Mutable drops should fallback to their own methods when a mutation isn't present #6350

Merged
merged 3 commits into from Sep 21, 2017

Conversation

benbalter
Copy link
Contributor

A follow up to #6338 and discovered via jekyll/github-metadata#112, the current logic for Jekyll::Drops::Drop#key? for mutable drops is to look for a mutated key, but then not to look for a native method or fallback data. Instead, Drops should look for a key in the mutated data, in native methods, AND in fallback data.

This PR updates the logic of Drop#key? and includes tests to ensure the method does what we expect it to going forward.

@parkr
Copy link
Member

parkr commented Sep 21, 2017

@benbalter Should this be backported and released as v3.5.3?

@parkr
Copy link
Member

parkr commented Sep 21, 2017

@jekyllbot: merge +bug

@jekyllbot jekyllbot merged commit a5fd0c0 into master Sep 21, 2017
@jekyllbot jekyllbot deleted the mutable-drop-methods branch September 21, 2017 19:57
jekyllbot added a commit that referenced this pull request Sep 21, 2017
@jekyll jekyll locked and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants