Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
datory (2.2.1)
activesupport (>= 5.1, < 8.1)
i18n (~> 1.14)
servactory (>= 2.9.0)
servactory (>= 2.12)
terminal-table (>= 3.0)
zeitwerk (~> 2.6)

Expand Down Expand Up @@ -68,7 +68,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
rubocop (1.72.2)
rubocop (1.73.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand All @@ -79,15 +79,15 @@ GEM
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.38.0)
rubocop-ast (1.38.1)
parser (>= 3.3.1.0)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-performance (1.24.0)
lint_roller (~> 1.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rails (2.30.1)
rubocop-rails (2.30.3)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
Expand All @@ -104,14 +104,15 @@ GEM
rubocop-rspec (~> 3, >= 3.0.1)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
servactory (2.11.0)
servactory (2.12.0)
activesupport (>= 5.1, < 8.1)
base64 (~> 0.2)
bigdecimal (~> 3.0)
i18n (~> 1.14)
mutex_m (~> 0.2)
zeitwerk (~> 2.6)
servactory-rubocop (0.6.1)
base64 (>= 0.2)
bigdecimal (>= 3.1)
i18n (>= 1.14)
mutex_m (>= 0.3)
zeitwerk (>= 2.6)
servactory-rubocop (0.7.0)
rubocop (>= 1.73)
rubocop-factory_bot (>= 2.26)
rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30)
Expand All @@ -126,7 +127,7 @@ GEM
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.2)
uri (1.0.3)
zeitwerk (2.7.2)

PLATFORMS
Expand All @@ -148,7 +149,7 @@ DEPENDENCIES
rake (~> 13.0)
rbs (>= 3.1.3)
rspec (~> 3.12)
servactory-rubocop (>= 0.5)
servactory-rubocop (>= 0.7)

BUNDLED WITH
2.6.4
2.6.5
54 changes: 36 additions & 18 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ en:
cannot_be_overwritten: "[%{service_class_name}] The following methods cannot be overwritten: %{list_of_methods}"
inputs:
undefined:
getter: "[%{service_class_name}] Undefined attribute `%{input_name}`"
setter: "[%{service_class_name}] Undefined attribute `%{input_name}`"
for_fetch: "[%{service_class_name}] Undefined attribute `%{input_name}`"
for_assign: "[%{service_class_name}] Undefined attribute `%{input_name}`"
validations:
inclusion:
default_error: "[%{service_class_name}] Wrong value in `%{input_name}`, must be one of `%{input_inclusion}`"
must:
default_error: "[%{service_class_name}] Attribute `%{input_name}` must \"%{code}\""
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{input_name}` attribute: %{exception_message}"
Expand All @@ -26,30 +24,36 @@ en:
default: "[%{service_class_name}] Attribute `%{input_name}` does not match `%{format_name}` format"
wrong_pattern: "[%{service_class_name}] Attribute `%{input_name}` does not match `%{format_name}` format"
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for attribute `%{input_name}`"
inclusion:
default: "[%{service_class_name}] Wrong value in `%{input_name}`, must be one of `%{input_inclusion}`, got `%{value}`"
min:
default: "[%{service_class_name}] Attribute `%{input_name}` received value `%{value}`, which is less than `%{option_value}`"
max:
default: "[%{service_class_name}] Attribute `%{input_name}` received value `%{value}`, which is greater than `%{option_value}`"
multiple_of:
default: "[%{service_class_name}] Attribute `%{input_name}` has the value `%{value}`, which is not a multiple of `%{option_value}`"
blank: "[%{service_class_name}] Attribute `%{input_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
divided_by_0: "[%{service_class_name}] Attribute `%{input_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
schema:
wrong_type: "[%{service_class_name}] Wrong type of attribute `%{input_name}`, expected `%{expected_type}`, got `%{given_type}`"
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{input_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
wrong_element_value: "[%{service_class_name}] Wrong value in attribute hash `%{input_name}`, expected value of type `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
required:
default_error:
default: "[%{service_class_name}] Required attribute `%{input_name}` is missing"
type:
default_error:
default: "[%{service_class_name}] Wrong type of attribute `%{input_name}`, expected `%{expected_type}`, got `%{given_type}`"
for_hash:
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{input_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
tools:
find_unnecessary:
error: "[%{service_class_name}] Unexpected attributes: `%{unnecessary_attributes}`"
rules:
error: "[%{service_class_name}] Conflict in `%{input_name}` attribute options: `%{conflict_code}`"
internals:
undefined:
getter: "[%{service_class_name}] Undefined internal attribute `%{internal_name}`"
setter: "[%{service_class_name}] Undefined internal attribute `%{internal_name}`"
for_fetch: "[%{service_class_name}] Undefined internal attribute `%{internal_name}`"
for_assign: "[%{service_class_name}] Undefined internal attribute `%{internal_name}`"
validations:
inclusion:
default_error: "[%{service_class_name}] Wrong value in `%{internal_name}`, must be one of `%{internal_inclusion}`"
must:
default_error: "[%{service_class_name}] Internal attribute `%{internal_name}` must \"%{code}\""
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{internal_name}` internal attribute: %{exception_message}"
Expand All @@ -62,22 +66,28 @@ en:
default: "[%{service_class_name}] Internal attribute `%{internal_name}` does not match `%{format_name}` format"
wrong_pattern: "[%{service_class_name}] Internal attribute `%{internal_name}` does not match `%{format_name}` format"
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for internal attribute `%{internal_name}`"
inclusion:
default: "[%{service_class_name}] Wrong value in `%{internal_name}`, must be one of `%{internal_inclusion}`, got `%{value}`"
min:
default: "[%{service_class_name}] Internal attribute `%{internal_name}` received value `%{value}`, which is less than `%{option_value}`"
max:
default: "[%{service_class_name}] Internal attribute `%{internal_name}` received value `%{value}`, which is greater than `%{option_value}`"
multiple_of:
default: "[%{service_class_name}] Internal attribute `%{internal_name}` has the value `%{value}`, which is not a multiple of `%{option_value}`"
blank: "[%{service_class_name}] Internal attribute `%{internal_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
divided_by_0: "[%{service_class_name}] Internal attribute `%{internal_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
schema:
wrong_type: "[%{service_class_name}] Wrong type of internal attribute `%{internal_name}`, expected `%{expected_type}`, got `%{given_type}`"
wrong_element_type: "[%{service_class_name}] Wrong type in internal attribute hash `%{internal_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
wrong_element_value: "[%{service_class_name}] Wrong value in internal attribute hash `%{internal_name}`, expected value of type `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
type:
default_error:
default: "[%{service_class_name}] Wrong type of internal attribute `%{internal_name}`, expected `%{expected_type}`, got `%{given_type}`"
for_hash:
wrong_element_type: "[%{service_class_name}] Wrong type in internal attribute hash `%{internal_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
outputs:
undefined:
getter: "[%{service_class_name}] Undefined attribute `%{output_name}`"
setter: "[%{service_class_name}] Undefined attribute `%{output_name}`"
for_fetch: "[%{service_class_name}] Undefined attribute `%{output_name}`"
for_assign: "[%{service_class_name}] Undefined attribute `%{output_name}`"
validations:
inclusion:
default_error: "[%{service_class_name}] Wrong value in `%{output_name}`, must be one of `%{output_inclusion}`"
must:
default_error: "[%{service_class_name}] Attribute `%{output_name}` must \"%{code}\""
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{output_name}` attribute: %{exception_message}"
Expand All @@ -90,12 +100,20 @@ en:
default: "[%{service_class_name}] Attribute `%{output_name}` does not match `%{format_name}` format"
wrong_pattern: "[%{service_class_name}] Attribute `%{output_name}` does not match `%{format_name}` format"
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for attribute `%{output_name}`"
inclusion:
default: "[%{service_class_name}] Wrong value in `%{output_name}`, must be one of `%{output_inclusion}`, got `%{value}`"
min:
default: "[%{service_class_name}] Attribute `%{output_name}` received value `%{value}`, which is less than `%{option_value}`"
max:
default: "[%{service_class_name}] Attribute `%{output_name}` received value `%{value}`, which is greater than `%{option_value}`"
multiple_of:
default: "[%{service_class_name}] Attribute `%{output_name}` has the value `%{value}`, which is not a multiple of `%{option_value}`"
blank: "[%{service_class_name}] Attribute `%{output_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
divided_by_0: "[%{service_class_name}] Attribute `%{output_name}` has an invalid value `%{option_value}` in option `%{option_name}`"
schema:
wrong_type: "[%{service_class_name}] Wrong type of attribute `%{output_name}`, expected `%{expected_type}`, got `%{given_type}`"
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{output_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
wrong_element_value: "[%{service_class_name}] Wrong value in attribute hash `%{output_name}`, expected value of type `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
type:
default_error:
default: "[%{service_class_name}] Wrong type of attribute `%{output_name}`, expected `%{expected_type}`, got `%{given_type}`"
for_hash:
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{output_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
Loading