datory 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/en.yml +30 -30
- data/config/locales/ru.yml +30 -30
- data/lib/datory/attributes/serialization/model.rb +1 -1
- data/lib/datory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36630916daf08959a4fb671fd17df520a7df8a97cf0b2a24aef6c743b5ae65d4
|
4
|
+
data.tar.gz: 4de1a8f4d2682e146a5b251f4a2a649fc01084bf22075ae496324e51b936b5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c1bdf842f1954fa8ae8e70fc1565257a29631354e712ae8b775fcec4e0cae6e98704b82db6b9ff580f4a538a562f48d2cef8d461b3368c4b74ba3a88c393332
|
7
|
+
data.tar.gz: b19676cb4a11e65fa203c8d793d278e24c3bcb03078156f5bb0effbb04e3a992efb618bfd67dc43d6b1ef2b90b76a764bcd300919cbe237f7eb887f3b4f12a84
|
data/config/locales/en.yml
CHANGED
@@ -9,40 +9,40 @@ en:
|
|
9
9
|
cannot_be_overwritten: "[%{service_class_name}] The following methods cannot be overwritten: %{list_of_methods}"
|
10
10
|
inputs:
|
11
11
|
undefined:
|
12
|
-
getter: "[%{service_class_name}] Undefined
|
13
|
-
setter: "[%{service_class_name}] Undefined
|
12
|
+
getter: "[%{service_class_name}] Undefined attribute `%{input_name}`"
|
13
|
+
setter: "[%{service_class_name}] Undefined attribute `%{input_name}`"
|
14
14
|
validations:
|
15
15
|
inclusion:
|
16
16
|
default_error: "[%{service_class_name}] Wrong value in `%{input_name}`, must be one of `%{input_inclusion}`"
|
17
17
|
must:
|
18
|
-
default_error: "[%{service_class_name}]
|
19
|
-
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{input_name}`
|
18
|
+
default_error: "[%{service_class_name}] Attribute `%{input_name}` must \"%{code}\""
|
19
|
+
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{input_name}` attribute: %{exception_message}"
|
20
20
|
dynamic_options:
|
21
21
|
consists_of:
|
22
|
-
required: "[%{service_class_name}] Required element in
|
23
|
-
wrong_type: "[%{service_class_name}] Wrong
|
24
|
-
wrong_element_type: "[%{service_class_name}] Wrong element type in
|
22
|
+
required: "[%{service_class_name}] Required element in attribute collection `%{input_name}` is missing"
|
23
|
+
wrong_type: "[%{service_class_name}] Wrong attribute collection type `%{input_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
24
|
+
wrong_element_type: "[%{service_class_name}] Wrong element type in attribute collection `%{input_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
25
25
|
format:
|
26
|
-
default: "[%{service_class_name}]
|
27
|
-
wrong_pattern: "[%{service_class_name}]
|
28
|
-
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for
|
26
|
+
default: "[%{service_class_name}] Attribute `%{input_name}` does not match `%{format_name}` format"
|
27
|
+
wrong_pattern: "[%{service_class_name}] Attribute `%{input_name}` does not match `%{format_name}` format"
|
28
|
+
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for attribute `%{input_name}`"
|
29
29
|
min:
|
30
|
-
default: "[%{service_class_name}]
|
30
|
+
default: "[%{service_class_name}] Attribute `%{input_name}` received value `%{value}`, which is less than `%{option_value}`"
|
31
31
|
max:
|
32
|
-
default: "[%{service_class_name}]
|
32
|
+
default: "[%{service_class_name}] Attribute `%{input_name}` received value `%{value}`, which is greater than `%{option_value}`"
|
33
33
|
required:
|
34
34
|
default_error:
|
35
|
-
default: "[%{service_class_name}] Required
|
35
|
+
default: "[%{service_class_name}] Required attribute `%{input_name}` is missing"
|
36
36
|
type:
|
37
37
|
default_error:
|
38
|
-
default: "[%{service_class_name}] Wrong type of
|
38
|
+
default: "[%{service_class_name}] Wrong type of attribute `%{input_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
39
39
|
for_hash:
|
40
|
-
wrong_element_type: "[%{service_class_name}] Wrong type in
|
40
|
+
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{input_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
|
41
41
|
tools:
|
42
42
|
find_unnecessary:
|
43
43
|
error: "[%{service_class_name}] Unexpected attributes: `%{unnecessary_attributes}`"
|
44
44
|
rules:
|
45
|
-
error: "[%{service_class_name}] Conflict in `%{input_name}`
|
45
|
+
error: "[%{service_class_name}] Conflict in `%{input_name}` attribute options: `%{conflict_code}`"
|
46
46
|
internals:
|
47
47
|
undefined:
|
48
48
|
getter: "[%{service_class_name}] Undefined internal attribute `%{internal_name}`"
|
@@ -73,29 +73,29 @@ en:
|
|
73
73
|
wrong_element_type: "[%{service_class_name}] Wrong type in internal attribute hash `%{internal_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
|
74
74
|
outputs:
|
75
75
|
undefined:
|
76
|
-
getter: "[%{service_class_name}] Undefined
|
77
|
-
setter: "[%{service_class_name}] Undefined
|
76
|
+
getter: "[%{service_class_name}] Undefined attribute `%{output_name}`"
|
77
|
+
setter: "[%{service_class_name}] Undefined attribute `%{output_name}`"
|
78
78
|
validations:
|
79
79
|
inclusion:
|
80
80
|
default_error: "[%{service_class_name}] Wrong value in `%{output_name}`, must be one of `%{output_inclusion}`"
|
81
81
|
must:
|
82
|
-
default_error: "[%{service_class_name}]
|
83
|
-
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{output_name}`
|
82
|
+
default_error: "[%{service_class_name}] Attribute `%{output_name}` must \"%{code}\""
|
83
|
+
syntax_error: "[%{service_class_name}] Syntax error inside `%{code}` of `%{output_name}` attribute: %{exception_message}"
|
84
84
|
dynamic_options:
|
85
85
|
consists_of:
|
86
|
-
required: "[%{service_class_name}] Required element in
|
87
|
-
wrong_type: "[%{service_class_name}] Wrong
|
88
|
-
wrong_element_type: "[%{service_class_name}] Wrong element type in
|
86
|
+
required: "[%{service_class_name}] Required element in attribute collection `%{output_name}` is missing"
|
87
|
+
wrong_type: "[%{service_class_name}] Wrong attribute collection type `%{output_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
88
|
+
wrong_element_type: "[%{service_class_name}] Wrong element type in attribute collection `%{output_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
89
89
|
format:
|
90
|
-
default: "[%{service_class_name}]
|
91
|
-
wrong_pattern: "[%{service_class_name}]
|
92
|
-
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for
|
90
|
+
default: "[%{service_class_name}] Attribute `%{output_name}` does not match `%{format_name}` format"
|
91
|
+
wrong_pattern: "[%{service_class_name}] Attribute `%{output_name}` does not match `%{format_name}` format"
|
92
|
+
unknown: "[%{service_class_name}] Unknown `%{format_name}` format specified for attribute `%{output_name}`"
|
93
93
|
min:
|
94
|
-
default: "[%{service_class_name}]
|
94
|
+
default: "[%{service_class_name}] Attribute `%{output_name}` received value `%{value}`, which is less than `%{option_value}`"
|
95
95
|
max:
|
96
|
-
default: "[%{service_class_name}]
|
96
|
+
default: "[%{service_class_name}] Attribute `%{output_name}` received value `%{value}`, which is greater than `%{option_value}`"
|
97
97
|
type:
|
98
98
|
default_error:
|
99
|
-
default: "[%{service_class_name}] Wrong type of
|
99
|
+
default: "[%{service_class_name}] Wrong type of attribute `%{output_name}`, expected `%{expected_type}`, got `%{given_type}`"
|
100
100
|
for_hash:
|
101
|
-
wrong_element_type: "[%{service_class_name}] Wrong type in
|
101
|
+
wrong_element_type: "[%{service_class_name}] Wrong type in attribute hash `%{output_name}`, expected `%{expected_type}` for `%{key_name}`, got `%{given_type}`"
|
data/config/locales/ru.yml
CHANGED
@@ -9,40 +9,40 @@ ru:
|
|
9
9
|
cannot_be_overwritten: "[%{service_class_name}] Нельзя перезаписать следующие методы: %{list_of_methods}"
|
10
10
|
inputs:
|
11
11
|
undefined:
|
12
|
-
getter: "[%{service_class_name}] Неизвестный
|
13
|
-
setter: "[%{service_class_name}] Неизвестный
|
12
|
+
getter: "[%{service_class_name}] Неизвестный атрибут `%{input_name}`"
|
13
|
+
setter: "[%{service_class_name}] Неизвестный атрибут `%{input_name}`"
|
14
14
|
validations:
|
15
15
|
inclusion:
|
16
16
|
default_error: "[%{service_class_name}] Неправильное значение в `%{input_name}`, должно быть одним из `%{input_inclusion}`"
|
17
17
|
must:
|
18
|
-
default_error: "[%{service_class_name}] Атрибут
|
19
|
-
syntax_error: "[%{service_class_name}] Синтаксическая ошибка внутри `%{code}` атрибута
|
18
|
+
default_error: "[%{service_class_name}] Атрибут `%{input_name}` должен \"%{code}\""
|
19
|
+
syntax_error: "[%{service_class_name}] Синтаксическая ошибка внутри `%{code}` атрибута `%{input_name}`: %{exception_message}"
|
20
20
|
dynamic_options:
|
21
21
|
consists_of:
|
22
|
-
required: "[%{service_class_name}] Отсутствует обязательный элемент в коллекции атрибута
|
23
|
-
wrong_type: "[%{service_class_name}] Неправильный тип коллекции атрибута
|
24
|
-
wrong_element_type: "[%{service_class_name}] Неправильный тип элемента в коллекции атрибута
|
22
|
+
required: "[%{service_class_name}] Отсутствует обязательный элемент в коллекции атрибута `%{input_name}`"
|
23
|
+
wrong_type: "[%{service_class_name}] Неправильный тип коллекции атрибута `%{input_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
24
|
+
wrong_element_type: "[%{service_class_name}] Неправильный тип элемента в коллекции атрибута `%{input_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
25
25
|
format:
|
26
|
-
default: "[%{service_class_name}] Атрибут
|
27
|
-
wrong_pattern: "[%{service_class_name}] Атрибут
|
28
|
-
unknown: "[%{service_class_name}] Указан неизвестный формат `%{format_name}` у атрибута
|
26
|
+
default: "[%{service_class_name}] Атрибут `%{input_name}` не соответствует формату `%{format_name}`"
|
27
|
+
wrong_pattern: "[%{service_class_name}] Атрибут `%{input_name}` не соответствует формату `%{format_name}`"
|
28
|
+
unknown: "[%{service_class_name}] Указан неизвестный формат `%{format_name}` у атрибута `%{input_name}`"
|
29
29
|
min:
|
30
|
-
default: "[%{service_class_name}] Атрибут
|
30
|
+
default: "[%{service_class_name}] Атрибут `%{input_name}` получил значение `%{value}`, которое меньше `%{option_value}`"
|
31
31
|
max:
|
32
|
-
default: "[%{service_class_name}] Атрибут
|
32
|
+
default: "[%{service_class_name}] Атрибут `%{input_name}` получил значение `%{value}`, которое больше `%{option_value}`"
|
33
33
|
required:
|
34
34
|
default_error:
|
35
|
-
default: "[%{service_class_name}] Обязательный атрибут
|
35
|
+
default: "[%{service_class_name}] Обязательный атрибут `%{input_name}` отсутствует"
|
36
36
|
type:
|
37
37
|
default_error:
|
38
|
-
default: "[%{service_class_name}] Неправильный тип атрибута
|
38
|
+
default: "[%{service_class_name}] Неправильный тип атрибута `%{input_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
39
39
|
for_hash:
|
40
|
-
wrong_element_type: "[%{service_class_name}] Неправильный тип в хеше атрибута
|
40
|
+
wrong_element_type: "[%{service_class_name}] Неправильный тип в хеше атрибута `%{input_name}`, для `%{key_name}` ожидалось `%{expected_type}`, получено `%{given_type}`"
|
41
41
|
tools:
|
42
42
|
find_unnecessary:
|
43
43
|
error: "[%{service_class_name}] Неожиданные атрибуты: `%{unnecessary_attributes}`"
|
44
44
|
rules:
|
45
|
-
error: "[%{service_class_name}] Конфликт в опциях атрибута
|
45
|
+
error: "[%{service_class_name}] Конфликт в опциях атрибута `%{input_name}`: `%{conflict_code}`"
|
46
46
|
internals:
|
47
47
|
undefined:
|
48
48
|
getter: "[%{service_class_name}] Неизвестный внутренний атрибут `%{internal_name}`"
|
@@ -73,29 +73,29 @@ ru:
|
|
73
73
|
wrong_element_type: "[%{service_class_name}] Неправильный тип в хеше внутреннего атрибута `%{internal_name}`, для `%{key_name}` ожидалось `%{expected_type}`, получено `%{given_type}`"
|
74
74
|
outputs:
|
75
75
|
undefined:
|
76
|
-
getter: "[%{service_class_name}] Неизвестный атрибут
|
77
|
-
setter: "[%{service_class_name}] Неизвестный атрибут
|
76
|
+
getter: "[%{service_class_name}] Неизвестный атрибут `%{output_name}`"
|
77
|
+
setter: "[%{service_class_name}] Неизвестный атрибут `%{output_name}`"
|
78
78
|
validations:
|
79
79
|
inclusion:
|
80
80
|
default_error: "[%{service_class_name}] Неправильное значение в `%{output_name}`, должно быть одним из `%{output_inclusion}`"
|
81
81
|
must:
|
82
|
-
default_error: "[%{service_class_name}] Атрибут
|
83
|
-
syntax_error: "[%{service_class_name}] Синтаксическая ошибка внутри `%{code}` атрибута
|
82
|
+
default_error: "[%{service_class_name}] Атрибут `%{output_name}` должен \"%{code}\""
|
83
|
+
syntax_error: "[%{service_class_name}] Синтаксическая ошибка внутри `%{code}` атрибута `%{output_name}`: %{exception_message}"
|
84
84
|
dynamic_options:
|
85
85
|
consists_of:
|
86
|
-
required: "[%{service_class_name}] Отсутствует обязательный элемент в коллекции атрибута
|
87
|
-
wrong_type: "[%{service_class_name}] Неправильный тип коллекции атрибута
|
88
|
-
wrong_element_type: "[%{service_class_name}] Неправильный тип элемента в коллекции атрибута
|
86
|
+
required: "[%{service_class_name}] Отсутствует обязательный элемент в коллекции атрибута `%{output_name}`"
|
87
|
+
wrong_type: "[%{service_class_name}] Неправильный тип коллекции атрибута `%{output_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
88
|
+
wrong_element_type: "[%{service_class_name}] Неправильный тип элемента в коллекции атрибута `%{output_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
89
89
|
format:
|
90
|
-
default: "[%{service_class_name}] Атрибут
|
91
|
-
wrong_pattern: "[%{service_class_name}] Атрибут
|
92
|
-
unknown: "[%{service_class_name}] Указан неизвестный формат `%{format_name}` у атрибута
|
90
|
+
default: "[%{service_class_name}] Атрибут `%{output_name}` не соответствует формату `%{format_name}`"
|
91
|
+
wrong_pattern: "[%{service_class_name}] Атрибут `%{output_name}` не соответствует формату `%{format_name}`"
|
92
|
+
unknown: "[%{service_class_name}] Указан неизвестный формат `%{format_name}` у атрибута `%{output_name}`"
|
93
93
|
min:
|
94
|
-
default: "[%{service_class_name}] Атрибут
|
94
|
+
default: "[%{service_class_name}] Атрибут `%{output_name}` получил значение `%{value}`, которое меньше `%{option_value}`"
|
95
95
|
max:
|
96
|
-
default: "[%{service_class_name}] Атрибут
|
96
|
+
default: "[%{service_class_name}] Атрибут `%{output_name}` получил значение `%{value}`, которое больше `%{option_value}`"
|
97
97
|
type:
|
98
98
|
default_error:
|
99
|
-
default: "[%{service_class_name}] Неправильный тип атрибута
|
99
|
+
default: "[%{service_class_name}] Неправильный тип атрибута `%{output_name}`, ожидалось `%{expected_type}`, получено `%{given_type}`"
|
100
100
|
for_hash:
|
101
|
-
wrong_element_type: "[%{service_class_name}] Неправильный тип в хеше атрибута
|
101
|
+
wrong_element_type: "[%{service_class_name}] Неправильный тип в хеше атрибута `%{output_name}`, для `%{key_name}` ожидалось `%{expected_type}`, получено `%{given_type}`"
|
data/lib/datory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|