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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f464a43936793939abade67315eede661024e50014b4aeff0722659d0ea5a56
4
- data.tar.gz: ef7ef680f25e0519d93758da9d2c2bf17916b5d2c955727bba43cf7cfb35bc84
3
+ metadata.gz: a5e8a3bce1a00b6023e31a34dc3e1acabc1dc9d80450f059a7934d7ef2925d4e
4
+ data.tar.gz: 515cebc68693cbc6d213846c428dd9111665fd6588e189349f2ec32a4c5677a6
5
5
  SHA512:
6
- metadata.gz: 19a03ee429e6abd1047ec6e48caead939eb306da1806b00adcd4e6f7e073f80bb89dc6d9862ab55945237af9fe88e7c96aa18a48b91cb7c82e4c0ec71bf30aff
7
- data.tar.gz: 519449db3f4fb2f9731843913d69a9dcc238b5c994b6491963fe1f45f717248ee7b3eccd378c9b4385270ecd242bf53977e696799e59de7e6b7f1c40e72689e1
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(formats, weight: 1)
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|
@@ -1,3 +1,3 @@
1
1
  module ImageQualityCheck
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n