From 8985b1c78c3a30a8d1e68ca92f3282fe775fac11 Mon Sep 17 00:00:00 2001 From: Romain Georges Date: Thu, 2 May 2024 13:14:37 +0200 Subject: [PATCH] Update in finisher status --- config/locales/en.yml | 3 ++- config/locales/fr.yml | 3 ++- lib/carioca/services/finisher.rb | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 9112dac..faab1ed 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -25,7 +25,7 @@ en: messages: not_root: "This operation need to be run as root (use sudo or rvmsudo)" options_incompatibility: "Options incompatibility" - service_dependence_missing: "Appifier Service dependence missing" + missing_service_dependency: "Missing Service dependency" config_required: "Specific configuration required" setup_error: "Setup terminated unsuccessfully" setup_success: "Setup terminated successfully" @@ -43,6 +43,7 @@ en: bad_request: "Bad request" created: "Content Successfully created" accepted: "Request accepted" + not_implemented: "Not yet implemented" bad_usage: "Case must be a return or an exit" setup: error: "Setup operation failed" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index f044e18..ddc7007 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -25,7 +25,7 @@ fr: messages: not_root: "L'opération doit être lancée en root (utiliser sudo ou rvmsudo)" options_incompatibility: "Options incompatibles" - service_dependence_missing: "Service Carioca, dépendence manquante" + missing_service_dependency: "Service Carioca, dépendence manquante" config_required: "Configuration spécifique requise" setup_error: "Setup terminé avec succès" setup_success: "Setup terminé en échec" @@ -43,6 +43,7 @@ fr: bad_request: "Requête incorrecte" created: "Contenu créé avec succès" accepted: "Requête acceptée" + not_implemented: "Pas encore implémenté" bad_usage: "return_case et exit_case sont incompatibles" setup: error: "Opération en echec durant le setup" diff --git a/lib/carioca/services/finisher.rb b/lib/carioca/services/finisher.rb index 06e0683..daa3c04 100644 --- a/lib/carioca/services/finisher.rb +++ b/lib/carioca/services/finisher.rb @@ -28,7 +28,7 @@ class Finisher # global not_root: { code: 40, key: 'finisher.messages.not_root' }, options_incompatibility: { code: 410, key: 'finisher.messages.options_incompatibility' }, - service_dependence_missing: { code: 430, key: 'finisher.messages.service_dependence_missing' }, + missing_service_dependency: { code: 430, key: 'finisher.messages.missing_service_dependency' }, config_required: { code: 420, key: 'finisher.messages.config_required' }, setup_error: { code: 520, key: 'finisher.messages.setup_error' }, setup_success: { code: 0, key: 'finisher.messages.setup_success' }, @@ -49,7 +49,8 @@ class Finisher accepted: { code: 202, key: 'finisher.messages.accepted' }, bad_request: { code: 400, key: 'finisher.messages.bad_request' }, status_ko: { code: 500, key: 'finisher.messages.status_ko' }, - no_content: { code: 204, key: 'finisher.messages.no_content' } + no_content: { code: 204, key: 'finisher.messages.no_content' }, + not_implemented: { code: 210, key: 'finisher.messages.not_implemented' }, }.freeze def initialize