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

- old
+ new

@@ -31,10 +31,19 @@ use ConvenientService::Plugins::Common::HasCallbacks::Concern use ConvenientService::Plugins::Common::HasAroundCallbacks::Concern use ConvenientService::Plugins::Service::HasMermaidFlowchart::Concern + + delete ConvenientService::Plugins::Service::HasNegatedResult::Concern + delete ConvenientService::Plugins::Service::HasNegatedJSendResult::Concern + + replace \ + ConvenientService::Plugins::Service::CanHaveConnectedSteps::Concern, + ConvenientService::Plugins::Service::CanHaveSequentialSteps::Concern + + delete ConvenientService::Plugins::Service::CanHaveFallbacks::Concern end middlewares :initialize do use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware use ConvenientService::Plugins::Common::CachesConstructorArguments::Middleware @@ -59,10 +68,14 @@ # use ConvenientService::Plugins::Service::RaisesOnDoubleResult::Middleware insert_before \ ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware, ConvenientService::Plugins::Service::SetsParentToForeignResult::Middleware + + replace \ + ConvenientService::Plugins::Service::CanHaveConnectedSteps::Middleware, + ConvenientService::Plugins::Service::CanHaveSequentialSteps::Middleware end middlewares :step do use ConvenientService::Plugins::Common::HasCallbacks::Middleware use ConvenientService::Plugins::Common::HasAroundCallbacks::Middleware @@ -83,49 +96,54 @@ class self::Result concerns do use ConvenientService::Plugins::Common::HasJSendResultDuckShortSyntax::Concern use ConvenientService::Plugins::Result::CanRecalculateResult::Concern - use ConvenientService::Plugins::Result::CanHaveStep::Concern use ConvenientService::Plugins::Result::CanBeOwnResult::Concern use ConvenientService::Plugins::Result::CanHaveParentResult::Concern use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Concern end - middlewares :success? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware + middlewares :data do + use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware end - middlewares :failure? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware + middlewares :message do + use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware end - middlewares :error? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware + middlewares :code do + use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware end - middlewares :not_success? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware - end + class self::Status + concerns do + use ConvenientService::Plugins::Status::CanBeChecked::Concern + end - middlewares :not_failure? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware - end + middlewares :success? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end - middlewares :not_error? do - use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Middleware - end + middlewares :failure? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end - middlewares :data do - use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware - end + middlewares :error? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end - middlewares :message do - use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware - end + middlewares :not_success? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end - middlewares :code do - use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware + middlewares :not_failure? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end + + middlewares :not_error? do + use ConvenientService::Plugins::Status::CanBeChecked::Middleware + end end end class self::Step concerns do