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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cbf36645ba19dcbaad5d4b56f88a1aa647515fb
4
- data.tar.gz: a422fc72ee72b28c0953251d9109902ad7d4f1ab
3
+ metadata.gz: 32c960945a6e5eb20121a3eb7d4838574dd3b946
4
+ data.tar.gz: 4ae9bd94ff29d3db2f74655d6db4f9e4379f25fd
5
5
  SHA512:
6
- metadata.gz: 4bb6048ad95f7b66f847d46c6228ab82c3eb1a59006e7467627eae34d4243eb2ed6851a189eb3828ad8aa4fdcfc88bb0a9712d76d396ed7b40a20393a80f5097
7
- data.tar.gz: 1a61ecebcb311bc6b3a7dd6b5d323195f7df557f40741cf70c8ba00dfc7f6f94de28b582e49835aeb98d633ecc59c6d5ded55a305062d6a98d73076ffd3fcba2
6
+ metadata.gz: ba04479216634a21b37f455e2d88184e9f3e0095110aa49b3f2ec7c72f6aa0b95c96077e94e4eda7aaf5c31d2fc9630f3a2dc5ad134d1ae099dceb044404f31b
7
+ data.tar.gz: 1c58cc57c1eb4a7b5d42b229bb375071709d105ac5b405f999e6bcfb97500cb538e412f845d84f00df253177c7fb7de9f2c9d355bb0bc8bf4442185ea45d4e1e
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.4
2
+
3
+ Release date: 2014-12-08
4
+
5
+ - [ADDED] Supports format option with image processing
6
+
1
7
  # 0.2.3
2
8
 
3
9
  Release date: 2014-12-08
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Refile
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refile
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
  - Jonas Nicklas