cmdx 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.cursor/prompts/rspec.md +20 -0
- data/.cursor/prompts/yardoc.md +8 -0
- data/.rubocop.yml +5 -0
- data/CHANGELOG.md +101 -49
- data/README.md +2 -1
- data/docs/ai_prompts.md +10 -0
- data/docs/basics/call.md +11 -2
- data/docs/basics/chain.md +10 -1
- data/docs/basics/context.md +9 -0
- data/docs/basics/setup.md +9 -0
- data/docs/callbacks.md +14 -37
- data/docs/configuration.md +68 -27
- data/docs/getting_started.md +11 -0
- data/docs/internationalization.md +148 -0
- data/docs/interruptions/exceptions.md +10 -1
- data/docs/interruptions/faults.md +11 -2
- data/docs/interruptions/halt.md +9 -0
- data/docs/logging.md +14 -4
- data/docs/middlewares.md +53 -43
- data/docs/outcomes/result.md +9 -0
- data/docs/outcomes/states.md +9 -0
- data/docs/outcomes/statuses.md +9 -0
- data/docs/parameters/coercions.md +58 -38
- data/docs/parameters/defaults.md +10 -1
- data/docs/parameters/definitions.md +9 -0
- data/docs/parameters/namespacing.md +9 -0
- data/docs/parameters/validations.md +8 -67
- data/docs/testing.md +22 -13
- data/docs/tips_and_tricks.md +9 -0
- data/docs/workflows.md +14 -4
- data/lib/cmdx/.DS_Store +0 -0
- data/lib/cmdx/callback.rb +36 -56
- data/lib/cmdx/callback_registry.rb +82 -73
- data/lib/cmdx/chain.rb +65 -122
- data/lib/cmdx/chain_inspector.rb +22 -115
- data/lib/cmdx/chain_serializer.rb +17 -148
- data/lib/cmdx/coercion.rb +49 -0
- data/lib/cmdx/coercion_registry.rb +94 -0
- data/lib/cmdx/coercions/array.rb +18 -36
- data/lib/cmdx/coercions/big_decimal.rb +21 -33
- data/lib/cmdx/coercions/boolean.rb +21 -40
- data/lib/cmdx/coercions/complex.rb +18 -31
- data/lib/cmdx/coercions/date.rb +20 -39
- data/lib/cmdx/coercions/date_time.rb +22 -39
- data/lib/cmdx/coercions/float.rb +19 -32
- data/lib/cmdx/coercions/hash.rb +22 -41
- data/lib/cmdx/coercions/integer.rb +20 -33
- data/lib/cmdx/coercions/rational.rb +20 -32
- data/lib/cmdx/coercions/string.rb +23 -31
- data/lib/cmdx/coercions/time.rb +24 -40
- data/lib/cmdx/coercions/virtual.rb +14 -31
- data/lib/cmdx/configuration.rb +57 -171
- data/lib/cmdx/context.rb +22 -165
- data/lib/cmdx/core_ext/hash.rb +42 -67
- data/lib/cmdx/core_ext/module.rb +35 -79
- data/lib/cmdx/core_ext/object.rb +63 -98
- data/lib/cmdx/correlator.rb +40 -156
- data/lib/cmdx/error.rb +37 -202
- data/lib/cmdx/errors.rb +165 -202
- data/lib/cmdx/fault.rb +55 -158
- data/lib/cmdx/faults.rb +26 -137
- data/lib/cmdx/immutator.rb +22 -109
- data/lib/cmdx/lazy_struct.rb +103 -187
- data/lib/cmdx/log_formatters/json.rb +14 -40
- data/lib/cmdx/log_formatters/key_value.rb +14 -40
- data/lib/cmdx/log_formatters/line.rb +14 -48
- data/lib/cmdx/log_formatters/logstash.rb +14 -57
- data/lib/cmdx/log_formatters/pretty_json.rb +14 -50
- data/lib/cmdx/log_formatters/pretty_key_value.rb +13 -46
- data/lib/cmdx/log_formatters/pretty_line.rb +16 -54
- data/lib/cmdx/log_formatters/raw.rb +19 -49
- data/lib/cmdx/logger.rb +20 -82
- data/lib/cmdx/logger_ansi.rb +18 -75
- data/lib/cmdx/logger_serializer.rb +24 -114
- data/lib/cmdx/middleware.rb +38 -60
- data/lib/cmdx/middleware_registry.rb +81 -77
- data/lib/cmdx/middlewares/correlate.rb +41 -226
- data/lib/cmdx/middlewares/timeout.rb +46 -185
- data/lib/cmdx/parameter.rb +120 -198
- data/lib/cmdx/parameter_evaluator.rb +231 -0
- data/lib/cmdx/parameter_inspector.rb +25 -56
- data/lib/cmdx/parameter_registry.rb +59 -84
- data/lib/cmdx/parameter_serializer.rb +23 -74
- data/lib/cmdx/railtie.rb +24 -107
- data/lib/cmdx/result.rb +254 -260
- data/lib/cmdx/result_ansi.rb +19 -85
- data/lib/cmdx/result_inspector.rb +27 -68
- data/lib/cmdx/result_logger.rb +18 -81
- data/lib/cmdx/result_serializer.rb +28 -132
- data/lib/cmdx/rspec/matchers.rb +28 -0
- data/lib/cmdx/rspec/result_matchers/be_executed.rb +42 -0
- data/lib/cmdx/rspec/result_matchers/be_failed_task.rb +94 -0
- data/lib/cmdx/rspec/result_matchers/be_skipped_task.rb +94 -0
- data/lib/cmdx/rspec/result_matchers/be_state_matchers.rb +59 -0
- data/lib/cmdx/rspec/result_matchers/be_status_matchers.rb +57 -0
- data/lib/cmdx/rspec/result_matchers/be_successful_task.rb +87 -0
- data/lib/cmdx/rspec/result_matchers/have_bad_outcome.rb +51 -0
- data/lib/cmdx/rspec/result_matchers/have_caused_failure.rb +58 -0
- data/lib/cmdx/rspec/result_matchers/have_chain_index.rb +59 -0
- data/lib/cmdx/rspec/result_matchers/have_context.rb +86 -0
- data/lib/cmdx/rspec/result_matchers/have_empty_metadata.rb +54 -0
- data/lib/cmdx/rspec/result_matchers/have_good_outcome.rb +52 -0
- data/lib/cmdx/rspec/result_matchers/have_metadata.rb +114 -0
- data/lib/cmdx/rspec/result_matchers/have_preserved_context.rb +66 -0
- data/lib/cmdx/rspec/result_matchers/have_received_thrown_failure.rb +64 -0
- data/lib/cmdx/rspec/result_matchers/have_runtime.rb +78 -0
- data/lib/cmdx/rspec/result_matchers/have_thrown_failure.rb +76 -0
- data/lib/cmdx/rspec/task_matchers/be_well_formed_task.rb +62 -0
- data/lib/cmdx/rspec/task_matchers/have_callback.rb +85 -0
- data/lib/cmdx/rspec/task_matchers/have_cmd_setting.rb +68 -0
- data/lib/cmdx/rspec/task_matchers/have_executed_callbacks.rb +92 -0
- data/lib/cmdx/rspec/task_matchers/have_middleware.rb +46 -0
- data/lib/cmdx/rspec/task_matchers/have_parameter.rb +181 -0
- data/lib/cmdx/task.rb +213 -425
- data/lib/cmdx/task_deprecator.rb +55 -0
- data/lib/cmdx/task_processor.rb +245 -0
- data/lib/cmdx/task_serializer.rb +22 -70
- data/lib/cmdx/utils/ansi_color.rb +13 -89
- data/lib/cmdx/utils/log_timestamp.rb +13 -42
- data/lib/cmdx/utils/monotonic_runtime.rb +13 -63
- data/lib/cmdx/utils/name_affix.rb +21 -71
- data/lib/cmdx/validator.rb +48 -0
- data/lib/cmdx/validator_registry.rb +86 -0
- data/lib/cmdx/validators/exclusion.rb +55 -94
- data/lib/cmdx/validators/format.rb +31 -85
- data/lib/cmdx/validators/inclusion.rb +65 -110
- data/lib/cmdx/validators/length.rb +117 -133
- data/lib/cmdx/validators/numeric.rb +123 -130
- data/lib/cmdx/validators/presence.rb +38 -79
- data/lib/cmdx/version.rb +1 -7
- data/lib/cmdx/workflow.rb +46 -339
- data/lib/cmdx.rb +1 -1
- data/lib/generators/cmdx/install_generator.rb +14 -31
- data/lib/generators/cmdx/task_generator.rb +39 -55
- data/lib/generators/cmdx/templates/install.rb +61 -11
- data/lib/generators/cmdx/workflow_generator.rb +41 -66
- data/lib/locales/ar.yml +35 -0
- data/lib/locales/cs.yml +35 -0
- data/lib/locales/da.yml +35 -0
- data/lib/locales/de.yml +35 -0
- data/lib/locales/el.yml +35 -0
- data/lib/locales/en.yml +19 -20
- data/lib/locales/es.yml +19 -20
- data/lib/locales/fi.yml +35 -0
- data/lib/locales/fr.yml +35 -0
- data/lib/locales/he.yml +35 -0
- data/lib/locales/hi.yml +35 -0
- data/lib/locales/it.yml +35 -0
- data/lib/locales/ja.yml +35 -0
- data/lib/locales/ko.yml +35 -0
- data/lib/locales/nl.yml +35 -0
- data/lib/locales/no.yml +35 -0
- data/lib/locales/pl.yml +35 -0
- data/lib/locales/pt.yml +35 -0
- data/lib/locales/ru.yml +35 -0
- data/lib/locales/sv.yml +35 -0
- data/lib/locales/th.yml +35 -0
- data/lib/locales/tr.yml +35 -0
- data/lib/locales/vi.yml +35 -0
- data/lib/locales/zh.yml +35 -0
- metadata +57 -8
- data/lib/cmdx/parameter_validator.rb +0 -81
- data/lib/cmdx/parameter_value.rb +0 -244
- data/lib/cmdx/parameters_inspector.rb +0 -72
- data/lib/cmdx/parameters_serializer.rb +0 -115
- data/lib/cmdx/rspec/result_matchers.rb +0 -917
- data/lib/cmdx/rspec/task_matchers.rb +0 -570
- data/lib/cmdx/validators/custom.rb +0 -102
data/lib/locales/fi.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
fi:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "ei voitu muuntaa tyypiksi %{type}"
|
5
|
+
into_an: "ei voitu muuntaa tyypiksi %{type}"
|
6
|
+
into_any: "ei voitu muuntaa yhteenkään seuraavista: %{values}"
|
7
|
+
unknown: "tuntematon %{type} muunnostyyppi"
|
8
|
+
faults:
|
9
|
+
unspecified: "syytä ei annettu"
|
10
|
+
parameters:
|
11
|
+
required: "on pakollinen parametri"
|
12
|
+
undefined: "delegoi määrittelemättömään metodiin %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "ei saa olla mikään seuraavista: %{values}"
|
16
|
+
within: "ei saa olla välillä %{min} ja %{max}"
|
17
|
+
format: "on virheellisessä muodossa"
|
18
|
+
inclusion:
|
19
|
+
of: "on oltava jokin seuraavista: %{values}"
|
20
|
+
within: "on oltava välillä %{min} ja %{max}"
|
21
|
+
length:
|
22
|
+
is: "pituuden on oltava %{is}"
|
23
|
+
is_not: "pituus ei saa olla %{is_not}"
|
24
|
+
min: "pituuden on oltava vähintään %{min}"
|
25
|
+
max: "pituus saa olla enintään %{max}"
|
26
|
+
not_within: "pituus ei saa olla välillä %{min} ja %{max}"
|
27
|
+
within: "pituuden on oltava välillä %{min} ja %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "on oltava %{is}"
|
30
|
+
is_not: "ei saa olla %{is_not}"
|
31
|
+
min: "on oltava vähintään %{min}"
|
32
|
+
max: "saa olla enintään %{max}"
|
33
|
+
not_within: "ei saa olla välillä %{min} ja %{max}"
|
34
|
+
within: "on oltava välillä %{min} ja %{max}"
|
35
|
+
presence: "ei voi olla tyhjä"
|
data/lib/locales/fr.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
fr:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "impossible de convertir en un %{type}"
|
5
|
+
into_an: "impossible de convertir en un %{type}"
|
6
|
+
into_any: "impossible de convertir en un de: %{values}"
|
7
|
+
unknown: "type de conversion %{type} inconnu"
|
8
|
+
faults:
|
9
|
+
unspecified: "aucune raison donnée"
|
10
|
+
parameters:
|
11
|
+
required: "est un paramètre obligatoire"
|
12
|
+
undefined: "délègue à une méthode indéfinie %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "ne doit pas être un de: %{values}"
|
16
|
+
within: "ne doit pas être entre %{min} et %{max}"
|
17
|
+
format: "a un format invalide"
|
18
|
+
inclusion:
|
19
|
+
of: "doit être un de: %{values}"
|
20
|
+
within: "doit être entre %{min} et %{max}"
|
21
|
+
length:
|
22
|
+
is: "la longueur doit être %{is}"
|
23
|
+
is_not: "la longueur ne doit pas être %{is_not}"
|
24
|
+
min: "la longueur doit être au moins %{min}"
|
25
|
+
max: "la longueur doit être au maximum %{max}"
|
26
|
+
not_within: "la longueur ne doit pas être entre %{min} et %{max}"
|
27
|
+
within: "la longueur doit être entre %{min} et %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "doit être %{is}"
|
30
|
+
is_not: "ne doit pas être %{is_not}"
|
31
|
+
min: "doit être au moins %{min}"
|
32
|
+
max: "doit être au maximum %{max}"
|
33
|
+
not_within: "ne doit pas être entre %{min} et %{max}"
|
34
|
+
within: "doit être entre %{min} et %{max}"
|
35
|
+
presence: "ne peut pas être vide"
|
data/lib/locales/he.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
he:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "לא ניתן להמיר ל%{type}"
|
5
|
+
into_an: "לא ניתן להמיר ל%{type}"
|
6
|
+
into_any: "לא ניתן להמיר לאחד מהבאים: %{values}"
|
7
|
+
unknown: "סוג המרה %{type} לא ידוע"
|
8
|
+
faults:
|
9
|
+
unspecified: "לא ניתנה סיבה"
|
10
|
+
parameters:
|
11
|
+
required: "הוא פרמטר חובה"
|
12
|
+
undefined: "מאציל למתודה לא מוגדרת %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "לא יכול להיות אחד מהבאים: %{values}"
|
16
|
+
within: "לא יכול להיות בין %{min} ל%{max}"
|
17
|
+
format: "בפורמט לא תקין"
|
18
|
+
inclusion:
|
19
|
+
of: "חייב להיות אחד מהבאים: %{values}"
|
20
|
+
within: "חייב להיות בין %{min} ל%{max}"
|
21
|
+
length:
|
22
|
+
is: "האורך חייב להיות %{is}"
|
23
|
+
is_not: "האורך לא יכול להיות %{is_not}"
|
24
|
+
min: "האורך חייב להיות לפחות %{min}"
|
25
|
+
max: "האורך יכול להיות לכל היותר %{max}"
|
26
|
+
not_within: "האורך לא יכול להיות בין %{min} ל%{max}"
|
27
|
+
within: "האורך חייב להיות בין %{min} ל%{max}"
|
28
|
+
numeric:
|
29
|
+
is: "חייב להיות %{is}"
|
30
|
+
is_not: "לא יכול להיות %{is_not}"
|
31
|
+
min: "חייב להיות לפחות %{min}"
|
32
|
+
max: "יכול להיות לכל היותר %{max}"
|
33
|
+
not_within: "לא יכול להיות בין %{min} ל%{max}"
|
34
|
+
within: "חייב להיות בין %{min} ל%{max}"
|
35
|
+
presence: "לא יכול להיות ריק"
|
data/lib/locales/hi.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
hi:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "%{type} में रूपांतरित नहीं हो सका"
|
5
|
+
into_an: "%{type} में रूपांतरित नहीं हो सका"
|
6
|
+
into_any: "इनमें से किसी में रूपांतरित नहीं हो सका: %{values}"
|
7
|
+
unknown: "अज्ञात %{type} रूपांतरण प्रकार"
|
8
|
+
faults:
|
9
|
+
unspecified: "कोई कारण नहीं दिया गया"
|
10
|
+
parameters:
|
11
|
+
required: "एक आवश्यक पैरामीटर है"
|
12
|
+
undefined: "अपरिभाषित मेथड %{source} को प्रत्यायोजित करता है"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "इनमें से एक नहीं होना चाहिए: %{values}"
|
16
|
+
within: "%{min} और %{max} के बीच नहीं होना चाहिए"
|
17
|
+
format: "अमान्य प्रारूप है"
|
18
|
+
inclusion:
|
19
|
+
of: "इनमें से एक होना चाहिए: %{values}"
|
20
|
+
within: "%{min} और %{max} के बीच होना चाहिए"
|
21
|
+
length:
|
22
|
+
is: "लंबाई %{is} होनी चाहिए"
|
23
|
+
is_not: "लंबाई %{is_not} नहीं होनी चाहिए"
|
24
|
+
min: "लंबाई कम से कम %{min} होनी चाहिए"
|
25
|
+
max: "लंबाई अधिकतम %{max} होनी चाहिए"
|
26
|
+
not_within: "लंबाई %{min} और %{max} के बीच नहीं होनी चाहिए"
|
27
|
+
within: "लंबाई %{min} और %{max} के बीच होनी चाहिए"
|
28
|
+
numeric:
|
29
|
+
is: "%{is} होना चाहिए"
|
30
|
+
is_not: "%{is_not} नहीं होना चाहिए"
|
31
|
+
min: "कम से कम %{min} होना चाहिए"
|
32
|
+
max: "अधिकतम %{max} होना चाहिए"
|
33
|
+
not_within: "%{min} और %{max} के बीच नहीं होना चाहिए"
|
34
|
+
within: "%{min} और %{max} के बीच होना चाहिए"
|
35
|
+
presence: "खाली नहीं हो सकता"
|
data/lib/locales/it.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
it:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "impossibile convertire in un %{type}"
|
5
|
+
into_an: "impossibile convertire in un %{type}"
|
6
|
+
into_any: "impossibile convertire in uno di: %{values}"
|
7
|
+
unknown: "tipo di conversione %{type} sconosciuto"
|
8
|
+
faults:
|
9
|
+
unspecified: "nessuna ragione fornita"
|
10
|
+
parameters:
|
11
|
+
required: "è un parametro obbligatorio"
|
12
|
+
undefined: "delega al metodo indefinito %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "non deve essere uno di: %{values}"
|
16
|
+
within: "non deve essere tra %{min} e %{max}"
|
17
|
+
format: "ha un formato non valido"
|
18
|
+
inclusion:
|
19
|
+
of: "deve essere uno di: %{values}"
|
20
|
+
within: "deve essere tra %{min} e %{max}"
|
21
|
+
length:
|
22
|
+
is: "la lunghezza deve essere %{is}"
|
23
|
+
is_not: "la lunghezza non deve essere %{is_not}"
|
24
|
+
min: "la lunghezza deve essere almeno %{min}"
|
25
|
+
max: "la lunghezza deve essere al massimo %{max}"
|
26
|
+
not_within: "la lunghezza non deve essere tra %{min} e %{max}"
|
27
|
+
within: "la lunghezza deve essere tra %{min} e %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "deve essere %{is}"
|
30
|
+
is_not: "non deve essere %{is_not}"
|
31
|
+
min: "deve essere almeno %{min}"
|
32
|
+
max: "deve essere al massimo %{max}"
|
33
|
+
not_within: "non deve essere tra %{min} e %{max}"
|
34
|
+
within: "deve essere tra %{min} e %{max}"
|
35
|
+
presence: "non può essere vuoto"
|
data/lib/locales/ja.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
ja:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "%{type}に変換できませんでした"
|
5
|
+
into_an: "%{type}に変換できませんでした"
|
6
|
+
into_any: "次のいずれかに変換できませんでした: %{values}"
|
7
|
+
unknown: "不明な%{type}変換タイプ"
|
8
|
+
faults:
|
9
|
+
unspecified: "理由が指定されていません"
|
10
|
+
parameters:
|
11
|
+
required: "必須パラメータです"
|
12
|
+
undefined: "未定義メソッド%{source}に委譲します"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "次のいずれかであってはいけません: %{values}"
|
16
|
+
within: "%{min}と%{max}の間であってはいけません"
|
17
|
+
format: "無効な形式です"
|
18
|
+
inclusion:
|
19
|
+
of: "次のいずれかでなければなりません: %{values}"
|
20
|
+
within: "%{min}と%{max}の間でなければなりません"
|
21
|
+
length:
|
22
|
+
is: "長さは%{is}でなければなりません"
|
23
|
+
is_not: "長さは%{is_not}であってはいけません"
|
24
|
+
min: "長さは最低%{min}でなければなりません"
|
25
|
+
max: "長さは最大%{max}でなければなりません"
|
26
|
+
not_within: "長さは%{min}と%{max}の間であってはいけません"
|
27
|
+
within: "長さは%{min}と%{max}の間でなければなりません"
|
28
|
+
numeric:
|
29
|
+
is: "%{is}でなければなりません"
|
30
|
+
is_not: "%{is_not}であってはいけません"
|
31
|
+
min: "最低%{min}でなければなりません"
|
32
|
+
max: "最大%{max}でなければなりません"
|
33
|
+
not_within: "%{min}と%{max}の間であってはいけません"
|
34
|
+
within: "%{min}と%{max}の間でなければなりません"
|
35
|
+
presence: "空であってはいけません"
|
data/lib/locales/ko.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
ko:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "%{type}으로 변환할 수 없습니다"
|
5
|
+
into_an: "%{type}으로 변환할 수 없습니다"
|
6
|
+
into_any: "다음 중 하나로 변환할 수 없습니다: %{values}"
|
7
|
+
unknown: "알 수 없는 %{type} 변환 유형"
|
8
|
+
faults:
|
9
|
+
unspecified: "이유가 지정되지 않음"
|
10
|
+
parameters:
|
11
|
+
required: "필수 매개변수입니다"
|
12
|
+
undefined: "정의되지 않은 메서드 %{source}에 위임합니다"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "다음 중 하나가 아니어야 합니다: %{values}"
|
16
|
+
within: "%{min}과 %{max} 사이에 있지 않아야 합니다"
|
17
|
+
format: "유효하지 않은 형식입니다"
|
18
|
+
inclusion:
|
19
|
+
of: "다음 중 하나여야 합니다: %{values}"
|
20
|
+
within: "%{min}과 %{max} 사이에 있어야 합니다"
|
21
|
+
length:
|
22
|
+
is: "길이는 %{is}이어야 합니다"
|
23
|
+
is_not: "길이는 %{is_not}이 아니어야 합니다"
|
24
|
+
min: "길이는 최소 %{min}이어야 합니다"
|
25
|
+
max: "길이는 최대 %{max}이어야 합니다"
|
26
|
+
not_within: "길이는 %{min}과 %{max} 사이에 있지 않아야 합니다"
|
27
|
+
within: "길이는 %{min}과 %{max} 사이에 있어야 합니다"
|
28
|
+
numeric:
|
29
|
+
is: "%{is}이어야 합니다"
|
30
|
+
is_not: "%{is_not}이 아니어야 합니다"
|
31
|
+
min: "최소 %{min}이어야 합니다"
|
32
|
+
max: "최대 %{max}이어야 합니다"
|
33
|
+
not_within: "%{min}과 %{max} 사이에 있지 않아야 합니다"
|
34
|
+
within: "%{min}과 %{max} 사이에 있어야 합니다"
|
35
|
+
presence: "비어있을 수 없습니다"
|
data/lib/locales/nl.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
nl:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "kon niet converteren naar een %{type}"
|
5
|
+
into_an: "kon niet converteren naar een %{type}"
|
6
|
+
into_any: "kon niet converteren naar een van: %{values}"
|
7
|
+
unknown: "onbekend %{type} conversie type"
|
8
|
+
faults:
|
9
|
+
unspecified: "geen reden gegeven"
|
10
|
+
parameters:
|
11
|
+
required: "is een vereiste parameter"
|
12
|
+
undefined: "delegeert naar ongedefinieerde methode %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "mag niet een van zijn: %{values}"
|
16
|
+
within: "mag niet tussen %{min} en %{max} liggen"
|
17
|
+
format: "heeft een ongeldig formaat"
|
18
|
+
inclusion:
|
19
|
+
of: "moet een van zijn: %{values}"
|
20
|
+
within: "moet tussen %{min} en %{max} liggen"
|
21
|
+
length:
|
22
|
+
is: "lengte moet %{is} zijn"
|
23
|
+
is_not: "lengte mag niet %{is_not} zijn"
|
24
|
+
min: "lengte moet minstens %{min} zijn"
|
25
|
+
max: "lengte mag maximaal %{max} zijn"
|
26
|
+
not_within: "lengte mag niet tussen %{min} en %{max} liggen"
|
27
|
+
within: "lengte moet tussen %{min} en %{max} liggen"
|
28
|
+
numeric:
|
29
|
+
is: "moet %{is} zijn"
|
30
|
+
is_not: "mag niet %{is_not} zijn"
|
31
|
+
min: "moet minstens %{min} zijn"
|
32
|
+
max: "mag maximaal %{max} zijn"
|
33
|
+
not_within: "mag niet tussen %{min} en %{max} liggen"
|
34
|
+
within: "moet tussen %{min} en %{max} liggen"
|
35
|
+
presence: "kan niet leeg zijn"
|
data/lib/locales/no.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
"no":
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "kunne ikke konvertere til en %{type}"
|
5
|
+
into_an: "kunne ikke konvertere til en %{type}"
|
6
|
+
into_any: "kunne ikke konvertere til en av: %{values}"
|
7
|
+
unknown: "ukjent %{type} konverteringstype"
|
8
|
+
faults:
|
9
|
+
unspecified: "ingen grunn oppgitt"
|
10
|
+
parameters:
|
11
|
+
required: "er en påkrevd parameter"
|
12
|
+
undefined: "delegerer til udefinert metode %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "må ikke være en av: %{values}"
|
16
|
+
within: "må ikke være mellom %{min} og %{max}"
|
17
|
+
format: "har et ugyldig format"
|
18
|
+
inclusion:
|
19
|
+
of: "må være en av: %{values}"
|
20
|
+
within: "må være mellom %{min} og %{max}"
|
21
|
+
length:
|
22
|
+
is: "lengde må være %{is}"
|
23
|
+
is_not: "lengde må ikke være %{is_not}"
|
24
|
+
min: "lengde må være minst %{min}"
|
25
|
+
max: "lengde må være maksimalt %{max}"
|
26
|
+
not_within: "lengde må ikke være mellom %{min} og %{max}"
|
27
|
+
within: "lengde må være mellom %{min} og %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "må være %{is}"
|
30
|
+
is_not: "må ikke være %{is_not}"
|
31
|
+
min: "må være minst %{min}"
|
32
|
+
max: "må være maksimalt %{max}"
|
33
|
+
not_within: "må ikke være mellom %{min} og %{max}"
|
34
|
+
within: "må være mellom %{min} og %{max}"
|
35
|
+
presence: "kan ikke være tom"
|
data/lib/locales/pl.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
pl:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "nie można przekonwertować na %{type}"
|
5
|
+
into_an: "nie można przekonwertować na %{type}"
|
6
|
+
into_any: "nie można przekonwertować na jeden z: %{values}"
|
7
|
+
unknown: "nieznany typ konwersji %{type}"
|
8
|
+
faults:
|
9
|
+
unspecified: "nie podano powodu"
|
10
|
+
parameters:
|
11
|
+
required: "jest wymaganym parametrem"
|
12
|
+
undefined: "deleguje do niezdefiniowanej metody %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "nie może być jednym z: %{values}"
|
16
|
+
within: "nie może być między %{min} a %{max}"
|
17
|
+
format: "ma nieprawidłowy format"
|
18
|
+
inclusion:
|
19
|
+
of: "musi być jednym z: %{values}"
|
20
|
+
within: "musi być między %{min} a %{max}"
|
21
|
+
length:
|
22
|
+
is: "długość musi wynosić %{is}"
|
23
|
+
is_not: "długość nie może wynosić %{is_not}"
|
24
|
+
min: "długość musi wynosić co najmniej %{min}"
|
25
|
+
max: "długość może wynosić co najwyżej %{max}"
|
26
|
+
not_within: "długość nie może być między %{min} a %{max}"
|
27
|
+
within: "długość musi być między %{min} a %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "musi wynosić %{is}"
|
30
|
+
is_not: "nie może wynosić %{is_not}"
|
31
|
+
min: "musi wynosić co najmniej %{min}"
|
32
|
+
max: "może wynosić co najwyżej %{max}"
|
33
|
+
not_within: "nie może być między %{min} a %{max}"
|
34
|
+
within: "musi być między %{min} a %{max}"
|
35
|
+
presence: "nie może być pusty"
|
data/lib/locales/pt.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
pt:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "não foi possível converter em um %{type}"
|
5
|
+
into_an: "não foi possível converter em um %{type}"
|
6
|
+
into_any: "não foi possível converter em um de: %{values}"
|
7
|
+
unknown: "tipo de conversão %{type} desconhecido"
|
8
|
+
faults:
|
9
|
+
unspecified: "nenhuma razão fornecida"
|
10
|
+
parameters:
|
11
|
+
required: "é um parâmetro obrigatório"
|
12
|
+
undefined: "delega para método indefinido %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "não deve ser um de: %{values}"
|
16
|
+
within: "não deve estar entre %{min} e %{max}"
|
17
|
+
format: "tem um formato inválido"
|
18
|
+
inclusion:
|
19
|
+
of: "deve ser um de: %{values}"
|
20
|
+
within: "deve estar entre %{min} e %{max}"
|
21
|
+
length:
|
22
|
+
is: "comprimento deve ser %{is}"
|
23
|
+
is_not: "comprimento não deve ser %{is_not}"
|
24
|
+
min: "comprimento deve ser pelo menos %{min}"
|
25
|
+
max: "comprimento deve ser no máximo %{max}"
|
26
|
+
not_within: "comprimento não deve estar entre %{min} e %{max}"
|
27
|
+
within: "comprimento deve estar entre %{min} e %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "deve ser %{is}"
|
30
|
+
is_not: "não deve ser %{is_not}"
|
31
|
+
min: "deve ser pelo menos %{min}"
|
32
|
+
max: "deve ser no máximo %{max}"
|
33
|
+
not_within: "não deve estar entre %{min} e %{max}"
|
34
|
+
within: "deve estar entre %{min} e %{max}"
|
35
|
+
presence: "não pode estar vazio"
|
data/lib/locales/ru.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
ru:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "невозможно преобразовать в %{type}"
|
5
|
+
into_an: "невозможно преобразовать в %{type}"
|
6
|
+
into_any: "невозможно преобразовать в один из: %{values}"
|
7
|
+
unknown: "неизвестный тип преобразования %{type}"
|
8
|
+
faults:
|
9
|
+
unspecified: "причина не указана"
|
10
|
+
parameters:
|
11
|
+
required: "обязательный параметр"
|
12
|
+
undefined: "делегирует неопределенному методу %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "не должен быть одним из: %{values}"
|
16
|
+
within: "не должен быть между %{min} и %{max}"
|
17
|
+
format: "имеет недопустимый формат"
|
18
|
+
inclusion:
|
19
|
+
of: "должен быть одним из: %{values}"
|
20
|
+
within: "должен быть между %{min} и %{max}"
|
21
|
+
length:
|
22
|
+
is: "длина должна быть %{is}"
|
23
|
+
is_not: "длина не должна быть %{is_not}"
|
24
|
+
min: "длина должна быть не менее %{min}"
|
25
|
+
max: "длина должна быть не более %{max}"
|
26
|
+
not_within: "длина не должна быть между %{min} и %{max}"
|
27
|
+
within: "длина должна быть между %{min} и %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "должно быть %{is}"
|
30
|
+
is_not: "не должно быть %{is_not}"
|
31
|
+
min: "должно быть не менее %{min}"
|
32
|
+
max: "должно быть не более %{max}"
|
33
|
+
not_within: "не должно быть между %{min} и %{max}"
|
34
|
+
within: "должно быть между %{min} и %{max}"
|
35
|
+
presence: "не может быть пустым"
|
data/lib/locales/sv.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
sv:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "kunde inte konvertera till en %{type}"
|
5
|
+
into_an: "kunde inte konvertera till en %{type}"
|
6
|
+
into_any: "kunde inte konvertera till en av: %{values}"
|
7
|
+
unknown: "okänd %{type} konverteringstyp"
|
8
|
+
faults:
|
9
|
+
unspecified: "ingen anledning angiven"
|
10
|
+
parameters:
|
11
|
+
required: "är en obligatorisk parameter"
|
12
|
+
undefined: "delegerar till odefinierad metod %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "får inte vara en av: %{values}"
|
16
|
+
within: "får inte vara mellan %{min} och %{max}"
|
17
|
+
format: "har ett ogiltigt format"
|
18
|
+
inclusion:
|
19
|
+
of: "måste vara en av: %{values}"
|
20
|
+
within: "måste vara mellan %{min} och %{max}"
|
21
|
+
length:
|
22
|
+
is: "längd måste vara %{is}"
|
23
|
+
is_not: "längd får inte vara %{is_not}"
|
24
|
+
min: "längd måste vara minst %{min}"
|
25
|
+
max: "längd får vara högst %{max}"
|
26
|
+
not_within: "längd får inte vara mellan %{min} och %{max}"
|
27
|
+
within: "längd måste vara mellan %{min} och %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "måste vara %{is}"
|
30
|
+
is_not: "får inte vara %{is_not}"
|
31
|
+
min: "måste vara minst %{min}"
|
32
|
+
max: "får vara högst %{max}"
|
33
|
+
not_within: "får inte vara mellan %{min} och %{max}"
|
34
|
+
within: "måste vara mellan %{min} och %{max}"
|
35
|
+
presence: "kan inte vara tom"
|
data/lib/locales/th.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
th:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "ไม่สามารถแปลงเป็น %{type} ได้"
|
5
|
+
into_an: "ไม่สามารถแปลงเป็น %{type} ได้"
|
6
|
+
into_any: "ไม่สามารถแปลงเป็นหนึ่งใน: %{values}"
|
7
|
+
unknown: "ประเภทการแปลง %{type} ที่ไม่รู้จัก"
|
8
|
+
faults:
|
9
|
+
unspecified: "ไม่ได้ระบุเหตุผล"
|
10
|
+
parameters:
|
11
|
+
required: "เป็นพารามิเตอร์ที่จำเป็น"
|
12
|
+
undefined: "ส่งต่อไปยังเมธอดที่ไม่ได้กำหนด %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "ต้องไม่เป็นหนึ่งใน: %{values}"
|
16
|
+
within: "ต้องไม่อยู่ระหว่าง %{min} และ %{max}"
|
17
|
+
format: "มีรูปแบบที่ไม่ถูกต้อง"
|
18
|
+
inclusion:
|
19
|
+
of: "ต้องเป็นหนึ่งใน: %{values}"
|
20
|
+
within: "ต้องอยู่ระหว่าง %{min} และ %{max}"
|
21
|
+
length:
|
22
|
+
is: "ความยาวต้องเป็น %{is}"
|
23
|
+
is_not: "ความยาวต้องไม่เป็น %{is_not}"
|
24
|
+
min: "ความยาวต้องมีอย่างน้อย %{min}"
|
25
|
+
max: "ความยาวต้องมีมากที่สุด %{max}"
|
26
|
+
not_within: "ความยาวต้องไม่อยู่ระหว่าง %{min} และ %{max}"
|
27
|
+
within: "ความยาวต้องอยู่ระหว่าง %{min} และ %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "ต้องเป็น %{is}"
|
30
|
+
is_not: "ต้องไม่เป็น %{is_not}"
|
31
|
+
min: "ต้องมีอย่างน้อย %{min}"
|
32
|
+
max: "ต้องมีมากที่สุด %{max}"
|
33
|
+
not_within: "ต้องไม่อยู่ระหว่าง %{min} และ %{max}"
|
34
|
+
within: "ต้องอยู่ระหว่าง %{min} และ %{max}"
|
35
|
+
presence: "ไม่สามารถเป็นค่าว่างได้"
|
data/lib/locales/tr.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
tr:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "%{type} türüne dönüştürülemedi"
|
5
|
+
into_an: "%{type} türüne dönüştürülemedi"
|
6
|
+
into_any: "şunlardan birine dönüştürülemedi: %{values}"
|
7
|
+
unknown: "bilinmeyen %{type} dönüşüm türü"
|
8
|
+
faults:
|
9
|
+
unspecified: "sebep belirtilmedi"
|
10
|
+
parameters:
|
11
|
+
required: "gerekli bir parametredir"
|
12
|
+
undefined: "tanımsız metoda %{source} yetki verir"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "şunlardan biri olmamalı: %{values}"
|
16
|
+
within: "%{min} ve %{max} arasında olmamalı"
|
17
|
+
format: "geçersiz biçime sahip"
|
18
|
+
inclusion:
|
19
|
+
of: "şunlardan biri olmalı: %{values}"
|
20
|
+
within: "%{min} ve %{max} arasında olmalı"
|
21
|
+
length:
|
22
|
+
is: "uzunluk %{is} olmalı"
|
23
|
+
is_not: "uzunluk %{is_not} olmamalı"
|
24
|
+
min: "uzunluk en az %{min} olmalı"
|
25
|
+
max: "uzunluk en fazla %{max} olmalı"
|
26
|
+
not_within: "uzunluk %{min} ve %{max} arasında olmamalı"
|
27
|
+
within: "uzunluk %{min} ve %{max} arasında olmalı"
|
28
|
+
numeric:
|
29
|
+
is: "%{is} olmalı"
|
30
|
+
is_not: "%{is_not} olmamalı"
|
31
|
+
min: "en az %{min} olmalı"
|
32
|
+
max: "en fazla %{max} olmalı"
|
33
|
+
not_within: "%{min} ve %{max} arasında olmamalı"
|
34
|
+
within: "%{min} ve %{max} arasında olmalı"
|
35
|
+
presence: "boş olamaz"
|
data/lib/locales/vi.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
vi:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "không thể chuyển đổi thành %{type}"
|
5
|
+
into_an: "không thể chuyển đổi thành %{type}"
|
6
|
+
into_any: "không thể chuyển đổi thành một trong: %{values}"
|
7
|
+
unknown: "loại chuyển đổi %{type} không rõ"
|
8
|
+
faults:
|
9
|
+
unspecified: "không có lý do được đưa ra"
|
10
|
+
parameters:
|
11
|
+
required: "là một tham số bắt buộc"
|
12
|
+
undefined: "ủy quyền cho phương thức không xác định %{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "không được là một trong: %{values}"
|
16
|
+
within: "không được nằm giữa %{min} và %{max}"
|
17
|
+
format: "có định dạng không hợp lệ"
|
18
|
+
inclusion:
|
19
|
+
of: "phải là một trong: %{values}"
|
20
|
+
within: "phải nằm giữa %{min} và %{max}"
|
21
|
+
length:
|
22
|
+
is: "độ dài phải là %{is}"
|
23
|
+
is_not: "độ dài không được là %{is_not}"
|
24
|
+
min: "độ dài phải ít nhất %{min}"
|
25
|
+
max: "độ dài tối đa %{max}"
|
26
|
+
not_within: "độ dài không được nằm giữa %{min} và %{max}"
|
27
|
+
within: "độ dài phải nằm giữa %{min} và %{max}"
|
28
|
+
numeric:
|
29
|
+
is: "phải là %{is}"
|
30
|
+
is_not: "không được là %{is_not}"
|
31
|
+
min: "phải ít nhất %{min}"
|
32
|
+
max: "tối đa %{max}"
|
33
|
+
not_within: "không được nằm giữa %{min} và %{max}"
|
34
|
+
within: "phải nằm giữa %{min} và %{max}"
|
35
|
+
presence: "không thể để trống"
|
data/lib/locales/zh.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
zh:
|
2
|
+
cmdx:
|
3
|
+
coercions:
|
4
|
+
into_a: "无法转换为%{type}"
|
5
|
+
into_an: "无法转换为%{type}"
|
6
|
+
into_any: "无法转换为以下任一类型: %{values}"
|
7
|
+
unknown: "未知的%{type}转换类型"
|
8
|
+
faults:
|
9
|
+
unspecified: "未提供原因"
|
10
|
+
parameters:
|
11
|
+
required: "是必需参数"
|
12
|
+
undefined: "委托给未定义的方法%{source}"
|
13
|
+
validators:
|
14
|
+
exclusion:
|
15
|
+
of: "不能是以下任一值: %{values}"
|
16
|
+
within: "不能在%{min}和%{max}之间"
|
17
|
+
format: "格式无效"
|
18
|
+
inclusion:
|
19
|
+
of: "必须是以下任一值: %{values}"
|
20
|
+
within: "必须在%{min}和%{max}之间"
|
21
|
+
length:
|
22
|
+
is: "长度必须是%{is}"
|
23
|
+
is_not: "长度不能是%{is_not}"
|
24
|
+
min: "长度至少为%{min}"
|
25
|
+
max: "长度最多为%{max}"
|
26
|
+
not_within: "长度不能在%{min}和%{max}之间"
|
27
|
+
within: "长度必须在%{min}和%{max}之间"
|
28
|
+
numeric:
|
29
|
+
is: "必须是%{is}"
|
30
|
+
is_not: "不能是%{is_not}"
|
31
|
+
min: "至少为%{min}"
|
32
|
+
max: "最多为%{max}"
|
33
|
+
not_within: "不能在%{min}和%{max}之间"
|
34
|
+
within: "必须在%{min}和%{max}之间"
|
35
|
+
presence: "不能为空"
|