refile 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/History.md +6 -0
- data/lib/refile/image_processing.rb +2 -1
- data/lib/refile/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: 32c960945a6e5eb20121a3eb7d4838574dd3b946
|
4
|
+
data.tar.gz: 4ae9bd94ff29d3db2f74655d6db4f9e4379f25fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba04479216634a21b37f455e2d88184e9f3e0095110aa49b3f2ec7c72f6aa0b95c96077e94e4eda7aaf5c31d2fc9630f3a2dc5ad134d1ae099dceb044404f31b
|
7
|
+
data.tar.gz: 1c58cc57c1eb4a7b5d42b229bb375071709d105ac5b405f999e6bcfb97500cb538e412f845d84f00df253177c7fb7de9f2c9d355bb0bc8bf4442185ea45d4e1e
|
data/History.md
CHANGED
@@ -56,9 +56,10 @@ module Refile
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
def call(file, *args)
|
59
|
+
def call(file, *args, format: nil)
|
60
60
|
path = file.download.path
|
61
61
|
img = ::MiniMagick::Image.open(path)
|
62
|
+
img.format(format.to_s.downcase) if format
|
62
63
|
send(@method, img, *args)
|
63
64
|
|
64
65
|
img.write(path)
|
data/lib/refile/version.rb
CHANGED