active_storage_validations 1.0.4 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +126 -48
- data/config/locales/de.yml +6 -1
- data/config/locales/en.yml +5 -1
- data/config/locales/es.yml +6 -1
- data/config/locales/fr.yml +6 -1
- data/config/locales/it.yml +6 -1
- data/config/locales/ja.yml +6 -1
- data/config/locales/nl.yml +6 -1
- data/config/locales/pl.yml +6 -1
- data/config/locales/pt-BR.yml +6 -1
- data/config/locales/ru.yml +7 -2
- data/config/locales/sv.yml +23 -0
- data/config/locales/tr.yml +6 -1
- data/config/locales/uk.yml +6 -1
- data/config/locales/vi.yml +6 -1
- data/config/locales/zh-CN.yml +6 -1
- data/lib/active_storage_validations/aspect_ratio_validator.rb +57 -27
- data/lib/active_storage_validations/attached_validator.rb +20 -5
- data/lib/active_storage_validations/concerns/errorable.rb +38 -0
- data/lib/active_storage_validations/concerns/symbolizable.rb +12 -0
- data/lib/active_storage_validations/content_type_validator.rb +47 -7
- data/lib/active_storage_validations/dimension_validator.rb +61 -30
- data/lib/active_storage_validations/limit_validator.rb +49 -5
- data/lib/active_storage_validations/matchers/aspect_ratio_validator_matcher.rb +128 -0
- data/lib/active_storage_validations/matchers/attached_validator_matcher.rb +54 -23
- data/lib/active_storage_validations/matchers/concerns/active_storageable.rb +17 -0
- data/lib/active_storage_validations/matchers/concerns/allow_blankable.rb +26 -0
- data/lib/active_storage_validations/matchers/concerns/contextable.rb +35 -0
- data/lib/active_storage_validations/matchers/concerns/messageable.rb +26 -0
- data/lib/active_storage_validations/matchers/concerns/rspecable.rb +25 -0
- data/lib/active_storage_validations/matchers/concerns/validatable.rb +48 -0
- data/lib/active_storage_validations/matchers/content_type_validator_matcher.rb +75 -32
- data/lib/active_storage_validations/matchers/dimension_validator_matcher.rb +99 -52
- data/lib/active_storage_validations/matchers/size_validator_matcher.rb +96 -31
- data/lib/active_storage_validations/matchers.rb +1 -0
- data/lib/active_storage_validations/metadata.rb +42 -28
- data/lib/active_storage_validations/processable_image_validator.rb +16 -10
- data/lib/active_storage_validations/size_validator.rb +32 -9
- data/lib/active_storage_validations/version.rb +1 -1
- data/lib/active_storage_validations.rb +3 -0
- metadata +29 -4
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: 1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 5.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: combustion
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,6 +226,7 @@ files:
|
|
212
226
|
- config/locales/pl.yml
|
213
227
|
- config/locales/pt-BR.yml
|
214
228
|
- config/locales/ru.yml
|
229
|
+
- config/locales/sv.yml
|
215
230
|
- config/locales/tr.yml
|
216
231
|
- config/locales/uk.yml
|
217
232
|
- config/locales/vi.yml
|
@@ -219,12 +234,21 @@ files:
|
|
219
234
|
- lib/active_storage_validations.rb
|
220
235
|
- lib/active_storage_validations/aspect_ratio_validator.rb
|
221
236
|
- lib/active_storage_validations/attached_validator.rb
|
237
|
+
- lib/active_storage_validations/concerns/errorable.rb
|
238
|
+
- lib/active_storage_validations/concerns/symbolizable.rb
|
222
239
|
- lib/active_storage_validations/content_type_validator.rb
|
223
240
|
- lib/active_storage_validations/dimension_validator.rb
|
224
241
|
- lib/active_storage_validations/engine.rb
|
225
242
|
- lib/active_storage_validations/limit_validator.rb
|
226
243
|
- lib/active_storage_validations/matchers.rb
|
244
|
+
- lib/active_storage_validations/matchers/aspect_ratio_validator_matcher.rb
|
227
245
|
- lib/active_storage_validations/matchers/attached_validator_matcher.rb
|
246
|
+
- lib/active_storage_validations/matchers/concerns/active_storageable.rb
|
247
|
+
- lib/active_storage_validations/matchers/concerns/allow_blankable.rb
|
248
|
+
- lib/active_storage_validations/matchers/concerns/contextable.rb
|
249
|
+
- lib/active_storage_validations/matchers/concerns/messageable.rb
|
250
|
+
- lib/active_storage_validations/matchers/concerns/rspecable.rb
|
251
|
+
- lib/active_storage_validations/matchers/concerns/validatable.rb
|
228
252
|
- lib/active_storage_validations/matchers/content_type_validator_matcher.rb
|
229
253
|
- lib/active_storage_validations/matchers/dimension_validator_matcher.rb
|
230
254
|
- lib/active_storage_validations/matchers/size_validator_matcher.rb
|
@@ -238,7 +262,8 @@ files:
|
|
238
262
|
homepage: https://github.com/igorkasyanchuk/active_storage_validations
|
239
263
|
licenses:
|
240
264
|
- MIT
|
241
|
-
metadata:
|
265
|
+
metadata:
|
266
|
+
rubygems_mfa_required: 'true'
|
242
267
|
post_install_message:
|
243
268
|
rdoc_options: []
|
244
269
|
require_paths:
|
@@ -254,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
279
|
- !ruby/object:Gem::Version
|
255
280
|
version: '0'
|
256
281
|
requirements: []
|
257
|
-
rubygems_version: 3.4.
|
282
|
+
rubygems_version: 3.4.10
|
258
283
|
signing_key:
|
259
284
|
specification_version: 4
|
260
285
|
summary: Validations for Active Storage
|