mini_magick 2.0.0 → 2.0.1
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.
Potentially problematic release.
This version of mini_magick might be problematic. Click here for more details.
- data/VERSION +1 -1
- data/lib/mini_magick.rb +1 -1
- data/test/command_builder_test.rb +2 -1
- data/test/image_test.rb +2 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
data/lib/mini_magick.rb
CHANGED
@@ -252,7 +252,7 @@ module MiniMagick
|
|
252
252
|
if MOGRIFY_COMMANDS.include?(guessed_command_name)
|
253
253
|
# This makes sure we always quote if we are passed a single
|
254
254
|
# arguement with spaces in it
|
255
|
-
if (args.size == 1) && (args.first.to_s.include?(' '))
|
255
|
+
if (args.size == 1) && (args.first.to_s.include?(' ') || args.first.to_s.include?('#'))
|
256
256
|
push("-#{guessed_command_name}")
|
257
257
|
push(args.join(" "))
|
258
258
|
else
|
@@ -34,7 +34,8 @@ class CommandBuilderTest < Test::Unit::TestCase
|
|
34
34
|
c.resize "30x40"
|
35
35
|
c.alpha 1, 3, 4
|
36
36
|
c.resize "mome fingo"
|
37
|
-
|
37
|
+
c.background "#000000"
|
38
|
+
assert_equal "test -resize 30x40 -alpha 1 3 4 -resize \"mome fingo\" -background \"#000000\"", c.command
|
38
39
|
end
|
39
40
|
|
40
41
|
def test_dashed
|
data/test/image_test.rb
CHANGED
@@ -131,9 +131,11 @@ class ImageTest < Test::Unit::TestCase
|
|
131
131
|
|
132
132
|
def test_image_combine_options_with_filename_with_minusses_in_it
|
133
133
|
image = Image.from_file(SIMPLE_IMAGE_PATH)
|
134
|
+
background = "#000000"
|
134
135
|
assert_nothing_raised do
|
135
136
|
image.combine_options do |c|
|
136
137
|
c.draw "image Over 0,0 10,10 '#{MINUS_IMAGE_PATH}'"
|
138
|
+
c.background background
|
137
139
|
end
|
138
140
|
end
|
139
141
|
image.destroy!
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 1
|
9
|
+
version: 2.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Corey Johnson
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-24 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|