image_flux 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 986f54bd3b8b9403395fdef47c91f007b70b959e
4
- data.tar.gz: 96994e08bb172eb651c02f89b138e8078be36aef
3
+ metadata.gz: 3c8ef7f0d03f6ec8cb243ebcbd00bd36380bd03c
4
+ data.tar.gz: 8dbde69f4bdcf1b07cf789783da718f0faf83453
5
5
  SHA512:
6
- metadata.gz: 9ee0566b415768c7788d47e3282c9b14b65440bf4ef5508e2891820a293258dbd876e57dd409e93359c3d7bc78935c00aac8b4c621e166ca916dee5aedd70fb2
7
- data.tar.gz: 182408c61948d5c92e5e4b0004d15194b21e103d37efaad910b206251489f8e55a9fb3da45f6333a8a86a723cda9c4d417918e84b17b9eb71cd22656accdb422
6
+ metadata.gz: 4281cfc97161015632cb41d15dc670066a118969ef249b67de8f2ae1030cdeaa16292ace533c5aca18c710e3c564aab15605e449bce7545cfc8272bacf354491
7
+ data.tar.gz: a7c3868bc932c142eab8e80165516dc7f236548fb7add5f4597b62fe8e4c8b9c8bf05bc2f183f00be81fb67813d6ea2b6d74342a9cf7c7ac4d7410277f4b4aa7
data/README.md CHANGED
@@ -52,5 +52,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
52
52
 
53
53
  ## Notation
54
54
 
55
- - ImageFlux is a registered trademark of [SAKURA Internet Inc](https://www.sakura.ad.jp/).
56
- - Regarding the use of this gem, pixiv Inc and SAKURA Internet Inc makes no responsibility.
55
+ - ImageFlux is a registered trademark of [SAKURA Internet Inc.](https://www.sakura.ad.jp/).
56
+ - Regarding the use of this gem, pixiv Inc. and SAKURA Internet Inc. makes no responsibility.
@@ -69,9 +69,10 @@ class ImageFlux::Option
69
69
  bottom_right: 9
70
70
  }
71
71
  # output attributes
72
+ ALLOWED_FORMATS = %w[auto jpg png gif webp:jpeg webp:png]
72
73
  attribute :f, :string, default: 'auto', aliases: %i[format] do
73
74
  validate do |value|
74
- %w[auto jpg png gif webp:jpeg webp:png].include?(value.to_s)
75
+ "format should be inclusion of #{ALLOWED_FORMATS.join(', ')}" unless ALLOWED_FORMATS.include?(value.to_s)
75
76
  end
76
77
  end
77
78
  attribute :q, :integer, default: 75, aliases: %i[quality]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImageFlux
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_flux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano