Bugfix for issue 699 - scoped mutual methods#774
Conversation
|
If you need I will add some info to readme as well. |
|
I've added examples to readme. |
|
great work cracking the nut :) After a couple of passes it looks solid to me. I'd just change SeveralParamsBase to MultipleParamsBase. Feel a little funny about two base classes, but I can't think of another way really |
|
Hi Oliver! |
There was a problem hiding this comment.
Nitpick: maybe "Enabled mutually_exclusive, ..." or "Extended ..." or "Allowed ...". It's really either a fix or a new feature.
|
This is perfect, read the code, great job. Can you squash and I'll merge? Thanks. |
|
@dblock Great catch regarding |
d833864 to
732d81e
Compare
There was a problem hiding this comment.
Actually here it is not possible. But I can change .length < 1 to .empty?
What do you think?
There was a problem hiding this comment.
Oh gush, I misunderstood you )) you wanted the same think as me, just another method for this. )) Am I right?
|
Rebase too. |
…in group change mutually_exclusive to work in scope change exactly_one_of to work in scope change at_least_one_of to work in scope all of those methods changed to work for Hash and Array all of those methods changed to work for requires and optional scope add and change specs
732d81e to
f2d586e
Compare
|
Check it one more time please. I think this is what you wanted. 😉 |
|
@dblock do you need any other changes? |
|
This is great, merging. |
…ethods Bugfix for issue 699 - scoped mutual methods
|
@dblock I wonder if it is possible to shortly release new gem version with this and other changes/features? |
|
Yes. I'll do it soonish. |
Hi guys.
I think I figured out how to solve #699 .
Here are changes I've made:
mutually_exclusiveto work in scopeexactly_one_ofto work in scopeat_least_one_ofto work in scopeHashandArrayrequiresandoptionalscopeThank you for the grape!
Pavel