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

include enumerable #62

Merged
merged 2 commits into from
Aug 19, 2018
Merged

include enumerable #62

merged 2 commits into from
Aug 19, 2018

Conversation

notEthan
Copy link
Owner

@notEthan notEthan commented Aug 7, 2018

extending SIB at #initialize with Enumerable causes problems. SIB will always include Enumerable but raise NoMethodError from #each.

this kind of ends up giving a false positive for respond_to? with enumerable methods (#reject, #each, etc) that SchemaInstanceBase instances used to not respond to.

e.g. Scorpio.class_for_schema(type: 'object').new(nil).respond_to?(:each)
notEthan added a commit that referenced this pull request Aug 19, 2018
…ammer', 'origin/sib_tests', 'origin/instance_mutable' and 'origin/mt_report' into release

#62
#63
#64
#65
#66
@notEthan notEthan merged commit 4919560 into master Aug 19, 2018
@notEthan notEthan deleted the include_enumerable branch August 20, 2018 04:26
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.

1 participant