active_storage_validations 0.8.5 → 0.8.6
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/README.md +2 -0
- data/config/locales/fr.yml +22 -0
- data/config/locales/ru.yml +22 -0
- data/config/locales/uk.yml +22 -0
- data/lib/active_storage_validations/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 354dd29a7d41df8c36694ecb4424869a5a6c0c7add98a32186995199c036ae23
|
4
|
+
data.tar.gz: db75c2027d7e9fe55150223007b414957c67bdf1d3ccd5a58fcbb38daf836e1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c919243c4a4791c4615d5b3112c896462ab34125ed3b4974a0ad1d29bf53b8521a95dc5c34636ad11025f607247794f2c29772217f2fc130771493330b569bd1
|
7
|
+
data.tar.gz: 9ecc389a981df18f6663e0ae112df499e9bf56e5f0f99a7a086c3cf59368625bc530e4f0c5add8d25f1e783ab8727aaa34bdf0ec3ca197be7035e3931a93fd44
|
data/README.md
CHANGED
@@ -113,6 +113,7 @@ class User < ApplicationRecord
|
|
113
113
|
# you can also pass dynamic aspect ratio, like :is_4_3, :is_16_9, etc
|
114
114
|
validates :photos, aspect_ratio: :is_4_3
|
115
115
|
end
|
116
|
+
```
|
116
117
|
|
117
118
|
## Internationalization (I18n)
|
118
119
|
|
@@ -238,6 +239,7 @@ You are welcome to contribute.
|
|
238
239
|
- https://github.com/victorbueno
|
239
240
|
- https://github.com/UICJohn
|
240
241
|
- https://github.com/giovannibonetti
|
242
|
+
- https://github.com/dlepage
|
241
243
|
|
242
244
|
## License
|
243
245
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
fr:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
content_type_invalid: "a un type de contenu non valide"
|
5
|
+
file_size_out_of_range: "la taille %{file_size} n'est pas comprise dans la plage permise"
|
6
|
+
limit_out_of_range: "le nombre total est hors limites"
|
7
|
+
image_metadata_missing: "n'est pas une image valide"
|
8
|
+
dimension_min_inclusion: "doit être supérieur ou égal à %{width} x %{height} pixels"
|
9
|
+
dimension_max_inclusion: "doit être inférieur ou égal à %{width} x %{height} pixels"
|
10
|
+
dimension_width_inclusion: "la largeur n'est pas comprise entre %{min} et %{max} pixels"
|
11
|
+
dimension_height_inclusion: "la hauteur n'est pas comprise entre %{min} et %{max} pixels"
|
12
|
+
dimension_width_greater_than_or_equal_to: "la largeur doit être supérieure ou égale à %{length} pixels"
|
13
|
+
dimension_height_greater_than_or_equal_to: "la hauteur doit être supérieure ou égale à %{length} pixels"
|
14
|
+
dimension_width_less_than_or_equal_to: "la largeur doit être inférieure ou égale à %{length} pixels"
|
15
|
+
dimension_height_less_than_or_equal_to: "la hauteur doit être inférieure ou égale à %{length} pixels"
|
16
|
+
dimension_width_equal_to: "la largeur doit être égale à %{length} pixels"
|
17
|
+
dimension_height_equal_to: "la hauteur doit être égale à %{length} pixels"
|
18
|
+
aspect_ratio_not_square: "doit être une image en format carrée"
|
19
|
+
aspect_ratio_not_portrait: "doit être une image en format portrait"
|
20
|
+
aspect_ratio_not_landscape: "doit être une image en format paysage"
|
21
|
+
aspect_ratio_is_not: "doit avoir un rapport hauteur / largeur de %{aspect_ratio}"
|
22
|
+
aspect_ratio_unknown: "a un rapport d'aspect inconnu"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
ru:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
content_type_invalid: "имеет недопустимый тип содержимого"
|
5
|
+
file_size_out_of_range: "размер %{file_size} больше требуемого"
|
6
|
+
limit_out_of_range: "количество файлов больше требуемого"
|
7
|
+
image_metadata_missing: "не является допустимым изображением"
|
8
|
+
dimension_min_inclusion: "должен быть больше или равно %{width} x %{height} пикселям"
|
9
|
+
dimension_max_inclusion: "должно быть меньше или равно %{width} x %{height} пикселям"
|
10
|
+
dimension_width_inclusion: "ширина не включена между %{min} и %{max} пикселям"
|
11
|
+
dimension_height_inclusion: "высота не включена между %{min} и %{max} пикселям"
|
12
|
+
dimension_width_greater_than_or_equal_to: "ширина должна быть больше или равна %{length} пикселям"
|
13
|
+
dimension_height_greater_than_or_equal_to: "высота должна быть больше или равна %{length} пикселям"
|
14
|
+
dimension_width_less_than_or_equal_to: "ширина должна быть меньше или равна %{length} пикселям"
|
15
|
+
dimension_height_less_than_or_equal_to: "высота должна быть меньше или равна %{length} пикселям"
|
16
|
+
dimension_width_equal_to: "ширина должна быть равна %{length} пикселям"
|
17
|
+
dimension_height_equal_to: "высота должна быть равна %{length} пикселям"
|
18
|
+
aspect_ratio_not_square: "должно быть квадратное изображение"
|
19
|
+
aspect_ratio_not_portrait: "должно быть портретное изображение"
|
20
|
+
aspect_ratio_not_landscape: "должно быть пейзажное изображение"
|
21
|
+
aspect_ratio_is_not: "должен иметь соотношение сторон %{aspect_ratio}"
|
22
|
+
aspect_ratio_unknown: "имеет неизвестное соотношение сторон"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
uk:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
content_type_invalid: "має неприпустимий тип вмісту"
|
5
|
+
file_size_out_of_range: "розмір %{file_size} більше необхідного"
|
6
|
+
limit_out_of_range: "кількість файлів більше необхідного"
|
7
|
+
image_metadata_missing: "не є допустимим зображенням"
|
8
|
+
dimension_min_inclusion: "мусить бути більше або дорівнювати %{width} x %{height} пікселям"
|
9
|
+
dimension_max_inclusion: "мусить бути менше або дорівнювати %{width} x %{height} пікселям"
|
10
|
+
dimension_width_inclusion: "ширина не включена між %{min} і %{max} пікселям"
|
11
|
+
dimension_height_inclusion: "висота не включена між %{min} і %{max} пікселям"
|
12
|
+
dimension_width_greater_than_or_equal_to: "ширина мусить бути більше або дорівнювати %{length} пікселям"
|
13
|
+
dimension_height_greater_than_or_equal_to: "висота мусить бути більше або дорівнювати %{length} пікселям"
|
14
|
+
dimension_width_less_than_or_equal_to: "ширина мусить бути менше або дорівнювати %{length} пікселям"
|
15
|
+
dimension_height_less_than_or_equal_to: "висота мусить бути менше або дорівнювати %{length} пікселям"
|
16
|
+
dimension_width_equal_to: "ширина мусить дорівнювати %{length} пікселям"
|
17
|
+
dimension_height_equal_to: "висота мусить дорівнювати %{length} пікселям"
|
18
|
+
aspect_ratio_not_square: "мусить бути квадратне зображення"
|
19
|
+
aspect_ratio_not_portrait: "мусить бути портретне зображення"
|
20
|
+
aspect_ratio_not_landscape: "мусить бути пейзажне зображення"
|
21
|
+
aspect_ratio_is_not: "мусить мати співвідношення сторін %{aspect_ratio}"
|
22
|
+
aspect_ratio_unknown: "має невідоме співвідношення сторін"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_storage_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,7 +106,10 @@ files:
|
|
106
106
|
- Rakefile
|
107
107
|
- config/locales/de.yml
|
108
108
|
- config/locales/en.yml
|
109
|
+
- config/locales/fr.yml
|
109
110
|
- config/locales/pt-BR.yml
|
111
|
+
- config/locales/ru.yml
|
112
|
+
- config/locales/uk.yml
|
110
113
|
- lib/active_storage_validations.rb
|
111
114
|
- lib/active_storage_validations/aspect_ratio_validator.rb
|
112
115
|
- lib/active_storage_validations/attached_validator.rb
|