image_quality_check 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/image_quality_check/dsl.rb +1 -1
- data/lib/image_quality_check/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e8a3bce1a00b6023e31a34dc3e1acabc1dc9d80450f059a7934d7ef2925d4e
|
4
|
+
data.tar.gz: 515cebc68693cbc6d213846c428dd9111665fd6588e189349f2ec32a4c5677a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab40cad5a0269f737635b721ae62b86d875aa69e88e23189924236370afa3256df316e5517d4c9106ec7df832707eb4e1973cd19923505bfccb8e0c84291350
|
7
|
+
data.tar.gz: 0d6bbac089bc474a671d125eed15f3dc0222c738d5ff8a2b26fda0a6692bd924372371324bc9ff1b21a28369ad6f33aba5aee52bf8bbf20e31c7520ee8a7ab18
|
@@ -20,7 +20,7 @@ module ImageQualityCheck::DSL
|
|
20
20
|
@current_rule << { name: name, block: block, weight: weight }
|
21
21
|
end
|
22
22
|
|
23
|
-
def preferred_formats_rule(
|
23
|
+
def preferred_formats_rule(weight: 1, **formats)
|
24
24
|
rule I18n.t("image_quality_check.dsl.format"), weight: weight do |result, on_error|
|
25
25
|
final_score = nil
|
26
26
|
formats.each do |f, score|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_quality_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|