imanip 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/imanip/imanip_magick.rb +9 -8
- data/lib/imanip/version.rb +1 -1
- metadata +2 -2
data/lib/imanip/imanip_magick.rb
CHANGED
@@ -133,14 +133,15 @@ module Imanip
|
|
133
133
|
|
134
134
|
def to_geometry_string(width_height)
|
135
135
|
# puts "width_height: #{width_height.inspect}"
|
136
|
-
case width_height
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
136
|
+
geometry_string = case width_height
|
137
|
+
when Array
|
138
|
+
width_height.join("x")
|
139
|
+
when Hash
|
140
|
+
"#{width_height[:width]}x#{width_height[:height]}"
|
141
|
+
else
|
142
|
+
width_height.to_s
|
143
|
+
end
|
144
|
+
"'#{geometry_string}'"
|
144
145
|
end
|
145
146
|
|
146
147
|
def options_to_string(options)
|
data/lib/imanip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imanip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-26 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|