active_storage_validations 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 455224d1bb911fd68b4d89e76bcbac8d262db1119bfe30d20a46e5483c48f428
4
- data.tar.gz: 3c3189898c56806b8efe8601f4f7b530af365cc0ae34b88f5d738ebd5a27a43b
3
+ metadata.gz: 77830eb3fb31d94775a69c7c76aceecc968c359359c2652221d5bfb75469ed4c
4
+ data.tar.gz: ae4fb05883cf2fc96f8f01a6a893949ca1c567a502cbfbb98c53b37b6809287e
5
5
  SHA512:
6
- metadata.gz: f13f49e78f5b04d96e36c46de7deb7c4d18abbb95f6a0f1fcb60a4e68e6c58b0280a9038fac22c085b55c778854775bfc3f9d690beb3cd11bf4a5ae2b9a81d4d
7
- data.tar.gz: 2a6062552f5e05701f8efde71dbfccbebd64a43a9adc637d1b74c70676b9e289e7089cd2d79eb25042c22cdebf3723991c73dc86a34d1852cf985186cc3eeae3
6
+ metadata.gz: 1993163590b8360ff78542812a3e69f842de7f2b9868351a9c4bddf60a51c8cbc243d1abd676c0b767581ab3a9063d8fa112739170a8d6b721252d8e0fae9456
7
+ data.tar.gz: abf00aa0ac44061f51a884b9362104b1d660311d6f4ac8f6cc3d464ff3cc695da0fe7dbb8eba549aa11d51ef09384ec1e486a89c8fe27497b614b8de9f962020
data/README.md CHANGED
@@ -129,6 +129,9 @@ Add this line to your application's Gemfile:
129
129
 
130
130
  ```ruby
131
131
  gem 'active_storage_validations'
132
+
133
+ # Optional, to use :dimension validator
134
+ gem 'mini_magick'
132
135
  ```
133
136
 
134
137
  And then execute:
@@ -5,6 +5,8 @@ module ActiveStorageValidations
5
5
  AVAILABLE_CHECKS = %i[width height min max].freeze
6
6
 
7
7
  def initialize(options)
8
+ require 'mini_magick'
9
+
8
10
  [:width, :height].each do |length|
9
11
  if options[length] and options[length].is_a?(Hash)
10
12
  if range = options[length][:in]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveStorageValidations
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
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.7.0
4
+ version: 0.7.1
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-04-15 00:00:00.000000000 Z
11
+ date: 2019-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.2.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: image_processing
28
+ name: mini_magick
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
34
- type: :runtime
33
+ version: '4.9'
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
40
+ version: '4.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement