lib/convenient_service/configs/standard.rb in convenient_service-0.1.0 vs lib/convenient_service/configs/standard.rb in convenient_service-0.2.0

- old
+ new

@@ -18,21 +18,24 @@ include Core concerns do use Plugins::Common::HasInternals::Concern use Plugins::Common::HasConstructor::Concern + use Plugins::Common::HasConstructorWithoutInitialize::Concern use Plugins::Common::CachesConstructorParams::Concern use Plugins::Common::CanBeCopied::Concern use Plugins::Service::HasResult::Concern use Plugins::Service::HasResultShortSyntax::Concern use Plugins::Service::HasResultSteps::Concern use Plugins::Service::CanRecalculateResult::Concern + use Plugins::Service::HasResultStatusCheckShortSyntax::Concern use Plugins::Common::HasCallbacks::Concern use Plugins::Common::HasAroundCallbacks::Concern + use Plugins::Service::HasInspect::Concern ## # NOTE: Optional plugins. # TODO: Specs. # # use Plugins::Common::HasConfig::Concern @@ -95,15 +98,26 @@ class self::Result include Core concerns do use Plugins::Common::HasInternals::Concern + use Plugins::Common::HasConstructor::Concern + use Plugins::Result::HasJsendStatusAndAttributes::Concern + use Plugins::Result::HasResultShortSyntax::Concern use Plugins::Result::CanRecalculateResult::Concern + + use Plugins::Result::HasInspect::Concern end + middlewares :initialize do + use Plugins::Common::NormalizesEnv::Middleware + + use Plugins::Result::HasJsendStatusAndAttributes::Middleware + end + middlewares :success? do use Plugins::Common::NormalizesEnv::Middleware use Plugins::Result::MarksResultStatusAsChecked::Middleware end @@ -168,9 +182,11 @@ class self::Step include Core concerns do use Plugins::Common::HasInternals::Concern + + use Plugins::Step::HasInspect::Concern end middlewares :result do use Plugins::Common::NormalizesEnv::Middleware