light-service
light-service copied to clipboard
Series of Actions with an emphasis on simplicity.
Given #226 and the bleeding announced in https://github.com/adomokos/light-service/issues/153#issuecomment-528679739 the goal of this PR is to relax the dependency this gem has on ActiveSupport. **Why not removing it completely?** It turns...
This was not mentioned in the README and I was unsure if not having it documented there was an issue. In `lib/light-service/organizer/reduce_case.rb#validate_arguments` ```ruby def validate_arguments(**args) raise( ArgumentError, "Expected keyword arguments:...
I want to switch to light-service from interactor, because it missing some useful feature, e.g. limit the pass in args to specified name, type, but i found light-service, and active_interaction,...
We can use this PR or use #205 for it. This one passes all unit tests but had to comment out a guard for calling a macro twice. Still 👀...
Hi I'm a big fan of LightService and been using this incredible gem for years, though upon creating a complex `Organizer` with multiple actions(combination of orchestrator methods such as `reduce_if`,...
Build failures often indicate a fault with the software being built such as compilation or test failures. However, there is a subset of build failures (called *environmental* or *non-verification failures*)...
Hello! Today I stumbled upon some strange issue. It seems that hooks (in my case `after_actions`) are invoked only on the first `.call`. Here is, how my method `call` looks...
We use LightService as intended: to do pretty complex processes. Many of the actions may fail, and we would like to return more information to the thing that executed the...
Tested on 0.9 and 0.11 with ruby 2.4.4. Let's say we have: ``` class A extend LightService::Organizer def self.call(id) with(id: id).around_each(LogDuration).reduce(steps) end def self.steps [ A, reduce_if(->(ctx) { !ctx.failure? },...
This is the recommended naming pattern. I chose `light-service` based on a blog post I read at the time when I started LightService, but I think now that the name...