mini_magick 4.0.3 → 4.0.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: 515fa07b7af1626798ac776daeb976b9293bd543
4
- data.tar.gz: dd464c7b331dbd803b5848395cb903afcc22e518
3
+ metadata.gz: 5ba4849bf2d9c6dc57a61e82e0886b3d3e2b0c33
4
+ data.tar.gz: 7409fc9331ab055607eb894aa43acac4d96cde5a
5
5
  SHA512:
6
- metadata.gz: 13ad7339e0cf4fc8ff5e330779c8efc15056852a315a93840dda26c2c37ddd165a47ff701e6c56b16c29204271a942663ef4486dbea63c7fc7ab72fbbf93aa27
7
- data.tar.gz: cdedf7c55a1096ee90a7dc1450cd217cb7bef7db78316b1a8cdb8caf277745d20a86166cdd20b070f0c396aadfc6d2b342a828fa5fe229950968a8c903776052
6
+ metadata.gz: f08cc6f15a7ac68d10a6113204cbeafda1846acfcde67598498dbc9081a1ef570dd888afb8a65622009a367499a6632241fa10b18c26455885a87250fb115f0b
7
+ data.tar.gz: 3c276fcbec064e0d52edd99dd997d3385f44f4ad320107fc0c135c74c236bf2cf1a685db65e6ee13ec5ca3586795b5ada11409e36376af0ac7a99ea9c5ab6e70
@@ -80,10 +80,10 @@ module MiniMagick
80
80
  #
81
81
  def self.open(path_or_url, ext = nil)
82
82
  ext ||=
83
- if path_or_url.to_s =~ URI.regexp
84
- File.extname(URI(path_or_url).path)
85
- else
83
+ if File.exist?(path_or_url)
86
84
  File.extname(path_or_url)
85
+ else
86
+ File.extname(URI(path_or_url).path)
87
87
  end
88
88
 
89
89
  Kernel.open(path_or_url, "rb") do |file|
@@ -9,7 +9,7 @@ module MiniMagick
9
9
  module VERSION
10
10
  MAJOR = 4
11
11
  MINOR = 0
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.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Johnson
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-01-29 00:00:00.000000000 Z
15
+ date: 2015-02-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake