Closed yjukaku closed 7 years ago
It looks like the CI build is failing because of a dependency issue that is also in master, btw 🙊
@laserlemon @jonstokes I see that you had a lengthy discussion about a similar proposal, befor eit was spinned off into troupe. Any thoughts on this PR?
Any news or opinions on this? I would love this light handed approach, it keeps the gem as un-opinionated and simple as it currently is, which is a plus in my book.
In any case, the Travis issue can be traced back to codeclimate-test-reporter
and the solution is described in their readme:
gem "simplecov", "~> 0.11.2"
Closing in favor of #123.
This adds a very, very simple contract DSL on top of Interactors. I know that #112 and #82 both exist, however I believe that neither of them have gained traction/have been merged because they are either too complex, try to do too much, or break backwards compatibility.
This PR simply adds the class method
context_requires
, which can be used like so:Since this is a developer tool (not for users to see), this raises a new exception,
Interactor::RequirementsNotMet
if eg.email
isnil
or not specified when the interactor is called with one of the following messages:or with type requirements:
Credit to @Mingan for the code that this is based on.
Addresses #92 , #109