image_flux 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/image_flux/option.rb +2 -1
- data/lib/image_flux/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c8ef7f0d03f6ec8cb243ebcbd00bd36380bd03c
|
|
4
|
+
data.tar.gz: 8dbde69f4bdcf1b07cf789783da718f0faf83453
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/lib/image_flux/option.rb
CHANGED
|
@@ -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
|
-
|
|
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]
|
data/lib/image_flux/version.rb
CHANGED