dragonfly 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dragonfly might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.md +6 -0
- data/README.md +1 -1
- data/lib/dragonfly/image_magick/processors/convert.rb +1 -0
- data/lib/dragonfly/version.rb +1 -1
- data/spec/dragonfly/image_magick/processors/convert_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 318cb26946caa19202dc1c572f4b64014a35e08a
|
4
|
+
data.tar.gz: 5ef7ed322415297775465630d3ae4bc65cfefdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa6361437c7a1e6e9b0d963d989d171f3fe3518d224b91666ca61a93729f0147bfad254e898231b86215e280125850ad9bcda2dc2c60b17bf6387274a29967fa
|
7
|
+
data.tar.gz: 541b9b2ac910788a66af52937abb7d6674798dfdbd6de385fe5095e7fa8db6c82c5588ff6e1fe2a11bed8dcb7e00158b378fb9585aab723d39ad5d8fed764cc7
|
data/History.md
CHANGED
data/README.md
CHANGED
data/lib/dragonfly/version.rb
CHANGED
@@ -67,4 +67,22 @@ describe Dragonfly::ImageMagick::Processors::Convert do
|
|
67
67
|
processor.call(image, '', 'format' => 'jpg', 'delegate' => 'png')
|
68
68
|
}.to call_command(app.shell, %r{'convert' 'png:/[^']+?/beach\.png' '/[^']+?\.jpg'})
|
69
69
|
end
|
70
|
+
|
71
|
+
it "maintains the mime_type meta if it exists already" do
|
72
|
+
processor.call(image, '-resize 10x')
|
73
|
+
image.meta['mime_type'].should be_nil
|
74
|
+
|
75
|
+
image.add_meta('mime_type' => 'image/png')
|
76
|
+
processor.call(image, '-resize 5x')
|
77
|
+
image.meta['mime_type'].should == 'image/png'
|
78
|
+
image.mime_type.should == 'image/png' # sanity check
|
79
|
+
end
|
80
|
+
|
81
|
+
it "doesn't maintain the mime_type meta on format change" do
|
82
|
+
image.add_meta('mime_type' => 'image/png')
|
83
|
+
processor.call(image, '', 'format' => 'gif')
|
84
|
+
image.meta['mime_type'].should be_nil
|
85
|
+
image.mime_type.should == 'image/gif' # sanity check
|
86
|
+
end
|
87
|
+
|
70
88
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|