actor
actor copied to clipboard
Composable Ruby service objects
please check following example. ```rb # i assign result.institutions = ??? in this service. result = RetrieveInstitutions.result(params) if result.success? @institutions = result.institutions1 # But i never defined this method in...
Hey @sunny !!!! Thanks for the great work \o/ @annesottise and I were wondering what were you thinking about adding aliases to `inputs` and `ouputs`, such as: ```rb input :description,...
Hey @sunny !! Thanks for the amazing work :D I have an idea, regarding `inputs` and `outputs`. What do you think about accepting a new notation when expecting an array...
This PR adds support for custom classes for use in `raise`. This is necessary, for example, when you want to use the Actor gem to implement services, forms, or something...
[This article](https://blog.pawelpokrywka.com/p/gem-with-zeitwerk-as-development-only-dependency) by @pepawel gives an interesting way to remove the Zeitwerk dependency in production and replace it with a script that builds a loader. It sounds like an interesting...
I'm trying to fake a service actor result in a Rails request spec. The test I would like to write looks like this: ```rb context 'when search fails (e.g. because...
First of all, thanks for the great work! 💯 In interactor with the [interactor-contracts](https://github.com/michaelherold/interactor-contracts) gem, it's possible to validate a hash like this: ``` expects do required(:user).filled(type?: User) required(:params).schema do...
Hey :) I wonder if there is a way to execute some callback code before / after / around the call method of an actor. My use case is the...
Hello. After updating to version 3.8.0, a large number of project services in RSpec began to crash with this comment: ``` DEPRECATED: Invoking undefined methods on `ServiceActor::Result` will lead to...
We got tones of tests crashing with 3.8.0 update. It's be great to have some release notes for the new version with a summary of what has changes, some deprecations...