lib/convenient_service/service/configs/standard/v1.rb in convenient_service-0.18.0 vs lib/convenient_service/service/configs/standard/v1.rb in convenient_service-0.19.0

- old
+ new

@@ -18,11 +18,11 @@ # That is why `class self::Result` is used. # - https://stackoverflow.com/a/51965126/12201472 # # rubocop:disable Lint/ConstantDefinitionInBlock included do - include Configs::Minimal + include Configs::Essential concerns do use ConvenientService::Plugins::Common::CachesConstructorArguments::Concern use ConvenientService::Plugins::Common::CanBeCopied::Concern use ConvenientService::Plugins::Service::CanRecalculateResult::Concern @@ -48,13 +48,11 @@ use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware use ConvenientService::Plugins::Common::CachesConstructorArguments::Middleware end middlewares :result do - insert_after \ - ConvenientService::Plugins::Common::NormalizesEnv::Middleware, - ConvenientService::Plugins::Service::CollectsServicesInException::Middleware + unshift ConvenientService::Plugins::Service::CollectsServicesInException::Middleware insert_before \ ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware, ConvenientService::Plugins::Common::HasCallbacks::Middleware @@ -96,10 +94,11 @@ class self::Result concerns do use ConvenientService::Plugins::Common::HasJSendResultDuckShortSyntax::Concern use ConvenientService::Plugins::Result::CanRecalculateResult::Concern + use ConvenientService::Plugins::Result::CanBeFromException::Concern use ConvenientService::Plugins::Result::CanBeOwnResult::Concern use ConvenientService::Plugins::Result::CanHaveParentResult::Concern use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Concern end @@ -160,22 +159,18 @@ concerns do insert_before 0, ConvenientService::Plugins::Service::CanHaveStubbedResults::Concern end middlewares :result do - insert_after \ - ConvenientService::Plugins::Common::NormalizesEnv::Middleware, - ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware + unshift ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware insert_before \ ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware, ConvenientService::Plugins::Service::CountsStubbedResultsInvocations::Middleware end middlewares :result, scope: :class do - insert_after \ - ConvenientService::Plugins::Common::NormalizesEnv::Middleware, - ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware + unshift ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware insert_before \ ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware, ConvenientService::Plugins::Service::CountsStubbedResultsInvocations::Middleware end