mojo_magick 0.4.7 → 0.4.8
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mojo_magick/version.rb +1 -1
- data/test/mojo_magick_test.rb +40 -0
- 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: d35aee21b9f981adc52c8299fbac9468e89267a3
|
4
|
+
data.tar.gz: 583961066b7f1a2051b7b0605f0735d03531b939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83320f5d139053ea95ebc9e08e3564789dcc47fc68d1a7a086efc9e03f5a146f6c98ff628e565be16dff36291f40605a06c80873f6c3206bb764400ce14c5cac
|
7
|
+
data.tar.gz: 057bda821e46d29639e1a711b469e9f87f59572b778d88e4f063d5cdbc3391a33be0f07d38dd8bf8183ece8021348a061278a079a55abc9833777d53b94f993c
|
data/Gemfile.lock
CHANGED
data/lib/mojo_magick/version.rb
CHANGED
data/test/mojo_magick_test.rb
CHANGED
@@ -139,6 +139,46 @@ class MojoMagickTest < Test::Unit::TestCase
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
+
def test_label
|
143
|
+
reset_images
|
144
|
+
out_image = File::join(@working_path, 'label_test.png')
|
145
|
+
|
146
|
+
MojoMagick::convert do |c|
|
147
|
+
c.label 'rock the house'
|
148
|
+
c.file out_image
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_label_with_quote
|
153
|
+
reset_images
|
154
|
+
out_image = File::join(@working_path, 'label_test.png')
|
155
|
+
|
156
|
+
MojoMagick::convert do |c|
|
157
|
+
c.label 'rock "the house'
|
158
|
+
c.file out_image
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
def test_label_with_apostrophe
|
163
|
+
reset_images
|
164
|
+
out_image = File::join(@working_path, 'label_test.png')
|
165
|
+
|
166
|
+
MojoMagick::convert do |c|
|
167
|
+
c.label 'rock \'the house'
|
168
|
+
c.file out_image
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
def test_label_with_quotes
|
173
|
+
reset_images
|
174
|
+
out_image = File::join(@working_path, 'label_test.png')
|
175
|
+
|
176
|
+
MojoMagick::convert do |c|
|
177
|
+
c.label 'this is "it!"'
|
178
|
+
c.file out_image
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
142
182
|
def test_command_helpers
|
143
183
|
reset_images
|
144
184
|
test_image = File::join(@working_path, '5742.jpg')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mojo_magick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Midgley
|
@@ -119,7 +119,7 @@ rubyforge_project: mojo_magick
|
|
119
119
|
rubygems_version: 2.0.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
|
-
summary: mojo_magick-0.4.
|
122
|
+
summary: mojo_magick-0.4.8
|
123
123
|
test_files:
|
124
124
|
- test/fixtures/5742.jpg
|
125
125
|
- test/fixtures/not_an_image.jpg
|