mini_magick 4.3.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mini_magick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/mini_magick/image/info.rb +8 -2
- data/lib/mini_magick/tool.rb +2 -2
- data/lib/mini_magick/version.rb +1 -1
- 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: 22368fc0d84c74719f62d1e6c49400cb2ecddbef
|
4
|
+
data.tar.gz: 1aab3f4aaaebc150023f08fa8aaa6b7d2dd36b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11926fce4531862800ed01b037241126559eb4861284658906c03dad556fa1d7774ac8c0b1406802a26d08b83fedec6027d3049fc365d611f1fa3f9ac0d10118
|
7
|
+
data.tar.gz: 38ad0ed406f36b9a0d60bb4d1d9e05ebddcaef96b4c9b89b86b653e8142ed26d102f3d2b9c4e9ac17ed98879c15aed07265538770cb6735414a4225b96a8e5eb
|
@@ -40,12 +40,15 @@ module MiniMagick
|
|
40
40
|
@info.fetch(value) do
|
41
41
|
format, width, height, size = self["%m %w %h %b"].split(" ")
|
42
42
|
|
43
|
+
path = @path
|
44
|
+
path = path.match(/\[\d+\]$/).pre_match if path =~ /\[\d+\]$/
|
45
|
+
|
43
46
|
@info.update(
|
44
47
|
"format" => format,
|
45
48
|
"width" => Integer(width),
|
46
49
|
"height" => Integer(height),
|
47
50
|
"dimensions" => [Integer(width), Integer(height)],
|
48
|
-
"size" => File.size(
|
51
|
+
"size" => File.size(path),
|
49
52
|
"human_size" => size,
|
50
53
|
)
|
51
54
|
|
@@ -120,9 +123,12 @@ module MiniMagick
|
|
120
123
|
end
|
121
124
|
|
122
125
|
def identify
|
126
|
+
path = @path
|
127
|
+
path += "[0]" unless path =~ /\[\d+\]$/
|
128
|
+
|
123
129
|
MiniMagick::Tool::Identify.new do |builder|
|
124
130
|
yield builder if block_given?
|
125
|
-
builder <<
|
131
|
+
builder << path
|
126
132
|
end
|
127
133
|
end
|
128
134
|
|
data/lib/mini_magick/tool.rb
CHANGED
data/lib/mini_magick/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_magick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Johnson
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rake
|