active_storage_validations 0.8.2 → 0.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 813f828596f4fd712cff8e2f7f2b3fea5c668f03616bc3f621b8af742f7adff1
4
- data.tar.gz: 57da59dd3aa086c343d51a191b2a4990100d2f4bd4c846d30ca9e41dafaa3ca9
3
+ metadata.gz: 59e2305595247b963cfc53eac55689de8e915007da3d609312097225c1d445aa
4
+ data.tar.gz: d625a4d73f7521c7ca59cf47e346f2d7e0958a9553d8bbb44415de393eff0d90
5
5
  SHA512:
6
- metadata.gz: 712ba73b0a9bfa737f09e003519aa9cbaa19dfdabd177ddcdefbff3f002a55f9758204808e0736136b61411b764eac922762cd6a90cd757f7cff610f6c560879
7
- data.tar.gz: ddb33ce32755b8cac68fb2106fedd4a8a682d8c44edc6d639171a8e323fdd8c681b32d83336fcc807ecbc31a648b0a5304a996d1390f5d1e548c52caf9179b86
6
+ metadata.gz: 32e42e928386309a0133372816cfde4e6df25c27d23c0193a14427d2d0e98122e74edcd62a1dbc9ed68470bc5f831ece9dedcdfd285370eac52d952dbe516b8e
7
+ data.tar.gz: 917a1594f7a1a24e4a8f13c6546351a6e52d54cc015e5a7e65422573e0a0784250f00572f15442030be73e7e29cba8ab32187c514e18f3be80618b57de0017a6
data/README.md CHANGED
@@ -235,6 +235,7 @@ You are welcome to contribute.
235
235
  - https://github.com/reed
236
236
  - https://github.com/connorshea
237
237
  - https://github.com/Atul9
238
+ - https://github.com/victorbueno
238
239
 
239
240
  ## License
240
241
 
@@ -0,0 +1,22 @@
1
+ pt-BR:
2
+ errors:
3
+ messages:
4
+ content_type_invalid: "tem um tipo de arquivo inválido"
5
+ file_size_out_of_range: "tamanho %{file_size} está fora da faixa de tamanho válida"
6
+ limit_out_of_range: "número total está fora do limite"
7
+ image_metadata_missing: "não é uma imagem válida"
8
+ dimension_min_inclusion: "deve ser maior ou igual a %{width} x %{height} pixel"
9
+ dimension_max_inclusion: "deve ser menor ou igual a %{width} x %{height} pixel"
10
+ dimension_width_inclusion: "largura não está entre %{min} e %{max} pixel"
11
+ dimension_height_inclusion: "altura não está entre %{min} e %{max} pixel"
12
+ dimension_width_greater_than_or_equal_to: "largura deve ser maior ou igual a %{length} pixel"
13
+ dimension_height_greater_than_or_equal_to: "altura deve ser maior ou igual a %{length} pixel"
14
+ dimension_width_less_than_or_equal_to: "largura deve ser menor ou igual a %{length} pixel"
15
+ dimension_height_less_than_or_equal_to: "altura deve ser menor ou igual a %{length} pixel"
16
+ dimension_width_equal_to: "largura deve ser igual a %{length} pixel"
17
+ dimension_height_equal_to: "altura deve ser igual a %{length} pixel"
18
+ aspect_ratio_not_square: "não é uma imagem quadrada"
19
+ aspect_ratio_not_portrait: "não contém uma imagem no formato retrato"
20
+ aspect_ratio_not_landscape: "não contém uma imagem no formato paisagem"
21
+ aspect_ratio_is_not: "não contém uma proporção de %{aspect_ratio}"
22
+ aspect_ratio_unknown: "não tem uma proporção definida"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveStorageValidations
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.3'
5
5
  end
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.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -106,6 +106,7 @@ files:
106
106
  - Rakefile
107
107
  - config/locales/de.yml
108
108
  - config/locales/en.yml
109
+ - config/locales/pt-BR.yml
109
110
  - lib/active_storage_validations.rb
110
111
  - lib/active_storage_validations/aspect_ratio_validator.rb
111
112
  - lib/active_storage_validations/attached_validator.rb