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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d1f35dada1d7067b098917d946c23447a4c5887
4
- data.tar.gz: 322b79ddc7af71be2a0df17772b094ae7cd88d7e
3
+ metadata.gz: 22368fc0d84c74719f62d1e6c49400cb2ecddbef
4
+ data.tar.gz: 1aab3f4aaaebc150023f08fa8aaa6b7d2dd36b81
5
5
  SHA512:
6
- metadata.gz: 66e6b584ddf9b0b14e5be67a4aba8943a38f1ffa33e5708c5dde5c0e244e9a2c7f09b8ec92a33ea6ce46c2a3ecc916d4c39a0da5440ca9d1fa6b3dabd6e743f1
7
- data.tar.gz: 7b95930540ee115e8e894644efc848c48692077f77f81fa203d3d85d922452df5a38ca81e2b769825dc24b0d60d7bf2f2a94c4b09788d0825f6986d71021f77e
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(@path),
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 << "#{@path}[0]"
131
+ builder << path
126
132
  end
127
133
  end
128
134
 
@@ -16,8 +16,8 @@ module MiniMagick
16
16
  class Tool
17
17
 
18
18
  CREATION_OPERATORS = %w[
19
- xc canvas logo rose gradient radial-gradient plasma tile pattern label
20
- caption text
19
+ xc canvas logo rose gradient radial-gradient plasma pattern label caption
20
+ text
21
21
  ]
22
22
 
23
23
  ##
@@ -9,7 +9,7 @@ module MiniMagick
9
9
  module VERSION
10
10
  MAJOR = 4
11
11
  MINOR = 3
12
- TINY = 3
12
+ TINY = 4
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.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-09-09 00:00:00.000000000 Z
16
+ date: 2015-10-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rake