mojo_magick 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mojo_magick/opt_builder.rb +2 -2
- data/lib/mojo_magick/version.rb +1 -1
- data/test/opt_builder_test.rb +4 -2
- 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: c9357cfaafddf59b0084e2960eebb0a01298dbb3
|
4
|
+
data.tar.gz: a34197330b30ac53898ee389cfd7282871f9c987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0148675c782d9e3d812b17cfab533ea4ebf3d0ee9b7c265367ea9d63c82eec856d52f387615a543fefb7cb90878a76bba40c65f2da9b0b7a9a33b977d81aed60
|
7
|
+
data.tar.gz: bc3df594218b679e9c8ba5b5f45d852effbbdbc7c1212ce67486c0ed4722f4ac852cdf6f515df4ee045ff9d6ea4d11a533e61d63cb9ee12ac9fdcb4a7dce5617
|
data/Gemfile.lock
CHANGED
@@ -70,8 +70,8 @@ module MojoMagick
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def quoted_arg(arg)
|
73
|
-
return arg unless arg =~ /[<>^|&();` ]/
|
74
|
-
[ '"', arg.gsub('"', '\"'), '"'].join
|
73
|
+
return arg unless arg =~ /['<>^|&();` ]/
|
74
|
+
[ '"', arg.gsub('"', '\"').gsub("'", "\'"), '"'].join
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
data/lib/mojo_magick/version.rb
CHANGED
data/test/opt_builder_test.rb
CHANGED
@@ -80,12 +80,14 @@ class MojoMagickOptBuilderTest < Test::Unit::TestCase
|
|
80
80
|
|
81
81
|
#label for text should use 'label:"the string"' if specified
|
82
82
|
[[ 'mylabel', 'mylabel' ],
|
83
|
-
[ '
|
83
|
+
[ 'my " label', '"my \" label"' ],
|
84
|
+
[ 'Rock it, cuz i said so!', '"Rock it, cuz i said so!"'],
|
85
|
+
[ "it's like this", '"it\'s like this"'],
|
84
86
|
[ '#$%^&*', '"#$%^&*"']].each do |labels|
|
85
87
|
|
86
88
|
b = MojoMagick::OptBuilder.new
|
87
89
|
b.label labels[0]
|
88
|
-
|
90
|
+
assert_equal "label:#{labels[1]}", b.to_s
|
89
91
|
end
|
90
92
|
|
91
93
|
end
|
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.7
|
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.7
|
123
123
|
test_files:
|
124
124
|
- test/fixtures/5742.jpg
|
125
125
|
- test/fixtures/not_an_image.jpg
|