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 +4 -4
- data/lib/mini_magick/image.rb +3 -3
- 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: 5ba4849bf2d9c6dc57a61e82e0886b3d3e2b0c33
|
4
|
+
data.tar.gz: 7409fc9331ab055607eb894aa43acac4d96cde5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f08cc6f15a7ac68d10a6113204cbeafda1846acfcde67598498dbc9081a1ef570dd888afb8a65622009a367499a6632241fa10b18c26455885a87250fb115f0b
|
7
|
+
data.tar.gz: 3c276fcbec064e0d52edd99dd997d3385f44f4ad320107fc0c135c74c236bf2cf1a685db65e6ee13ec5ca3586795b5ada11409e36376af0ac7a99ea9c5ab6e70
|
data/lib/mini_magick/image.rb
CHANGED
@@ -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
|
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|
|
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.0.
|
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-
|
15
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|