remvee-mini_magick 1.2.3.2 → 1.2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +0 -18
- data/lib/mini_magick.rb +5 -5
- data/mini_magick.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -70,21 +70,3 @@ http://www.imagemagick.org/script/command-line-options.php#format
|
|
70
70
|
== Requirements
|
71
71
|
|
72
72
|
You must have ImageMagick installed.
|
73
|
-
|
74
|
-
|
75
|
-
== How To Install
|
76
|
-
|
77
|
-
If you downloaded the plugin version, just drop the plugin into
|
78
|
-
RAILS_ROOT/plugins/
|
79
|
-
|
80
|
-
If you installed this as a gem, then to get it to work add <require
|
81
|
-
"mini_magick"> to RAILS_ROOT/config/environment.rb
|
82
|
-
|
83
|
-
If you have just downloaded this files then copy the mini_magick.rb
|
84
|
-
file into your RAILS_ROOT/lib directory and add <require
|
85
|
-
"mini-magick"> to RAILS_ROOT/config/environment.rb
|
86
|
-
|
87
|
-
MiniMagick does NOT require rails though. All the code you need to use
|
88
|
-
MiniMagick is located in the mini_magick/lib/mini_magick.rb file.
|
89
|
-
|
90
|
-
|
data/lib/mini_magick.rb
CHANGED
@@ -7,7 +7,7 @@ require File.join(File.dirname(__FILE__), '/image_temp_file')
|
|
7
7
|
module MiniMagick
|
8
8
|
class MiniMagickError < RuntimeError; end
|
9
9
|
|
10
|
-
VERSION = '1.2.3.
|
10
|
+
VERSION = '1.2.3.3'
|
11
11
|
|
12
12
|
class Image
|
13
13
|
attr :path
|
@@ -23,7 +23,7 @@ module MiniMagick
|
|
23
23
|
tempfile.binmode
|
24
24
|
tempfile.write(blob)
|
25
25
|
ensure
|
26
|
-
tempfile.close
|
26
|
+
tempfile.close if tempfile
|
27
27
|
end
|
28
28
|
|
29
29
|
return self.new(tempfile.path, tempfile)
|
@@ -91,8 +91,8 @@ module MiniMagick
|
|
91
91
|
unless File.exists?(@path)
|
92
92
|
begin
|
93
93
|
FileUtils.copy_file(@path.sub(".#{format}", "-#{page}.#{format}"), @path)
|
94
|
-
rescue
|
95
|
-
raise MiniMagickError, "Unable to format to #{format}" unless File.exist?(@path)
|
94
|
+
rescue => ex
|
95
|
+
raise MiniMagickError, "Unable to format to #{format}; #{ex}" unless File.exist?(@path)
|
96
96
|
end
|
97
97
|
end
|
98
98
|
ensure
|
@@ -113,7 +113,7 @@ module MiniMagick
|
|
113
113
|
f.binmode
|
114
114
|
f.read
|
115
115
|
ensure
|
116
|
-
f.close
|
116
|
+
f.close if f
|
117
117
|
end
|
118
118
|
|
119
119
|
# If an unknown method is called then it is sent through the morgrify program
|
data/mini_magick.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'mini_magick'
|
4
|
-
s.version = "1.2.3.
|
4
|
+
s.version = "1.2.3.3"
|
5
5
|
s.summary = "Manipulate images with minimal use of memory."
|
6
6
|
s.description = %q{Uses command-line ImageMagick tools to resize, rotate, and mogrify images.}
|
7
7
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remvee-mini_magick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.3.
|
4
|
+
version: 1.2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Johnson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|