mini_magick 1.2.1 → 1.2.2
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.
- data/History.txt +5 -4
- data/lib/mini_magick.rb +2 -7
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
== 1.
|
2
|
-
|
3
|
-
* 1 major enhancement
|
4
|
-
* Birthday!
|
1
|
+
== 1.2.2 / 2007-06-01
|
5
2
|
|
3
|
+
# 1.) all image commands return the image object (The output of the last command is saved in @output)
|
4
|
+
# 2.) identify doesn't trip over strangley named files
|
5
|
+
# 3.) TempFile uses file extention now (Thanks http://marsorange.com/archives/of-mogrify-ruby-tempfile-dynamic-class-definitions)
|
6
|
+
# 4.) identify commands escape output path correctly
|
data/lib/mini_magick.rb
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
# Changes
|
2
|
-
# 1.) all image commands return the image object (The output of the last command is saved in output)
|
3
|
-
# 2.) identify doesn't trip over strangly named files
|
4
|
-
# 3.) TempFile uses file extention now (Thanks http://marsorange.com/archives/of-mogrify-ruby-tempfile-dynamic-class-definitions)
|
5
|
-
|
6
1
|
require "open-uri"
|
7
2
|
require "stringio"
|
8
3
|
require "fileutils"
|
@@ -12,7 +7,7 @@ require File.join(File.dirname(__FILE__), '/image_temp_file')
|
|
12
7
|
module MiniMagick
|
13
8
|
class MiniMagickError < RuntimeError; end
|
14
9
|
|
15
|
-
VERSION = '1.2.
|
10
|
+
VERSION = '1.2.2'
|
16
11
|
|
17
12
|
class Image
|
18
13
|
attr :path
|
@@ -80,7 +75,7 @@ module MiniMagick
|
|
80
75
|
# Writes the temporary image that we are using for processing to the output path
|
81
76
|
def write(output_path)
|
82
77
|
FileUtils.copy_file @path, output_path
|
83
|
-
run_command "identify
|
78
|
+
run_command "identify", output_path # Verify that we have a good image
|
84
79
|
end
|
85
80
|
|
86
81
|
# Give you raw data back
|
metadata
CHANGED