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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc5d72213c4009e1a29cf5ba211c7dc7305ce79b
4
- data.tar.gz: b48f0a4059160eba7b9531c2edd9b6116102c923
3
+ metadata.gz: c9357cfaafddf59b0084e2960eebb0a01298dbb3
4
+ data.tar.gz: a34197330b30ac53898ee389cfd7282871f9c987
5
5
  SHA512:
6
- metadata.gz: dfa77ebcac53e54351e845f484d0423e7c4f4bed138bebecef1ef574d5dbb7276b0c5ac3a5064fe7c6bf4b49e6b34df647e919459f394c6445323d40fa848d3e
7
- data.tar.gz: e1e81363d32918df3f5ea60dfa70c354355e9f8eae82703ef39a595d26080374b577545a5ccc54b143f5e3d9d79e04444e849629757eb5e811e459f07310e070
6
+ metadata.gz: 0148675c782d9e3d812b17cfab533ea4ebf3d0ee9b7c265367ea9d63c82eec856d52f387615a543fefb7cb90878a76bba40c65f2da9b0b7a9a33b977d81aed60
7
+ data.tar.gz: bc3df594218b679e9c8ba5b5f45d852effbbdbc7c1212ce67486c0ed4722f4ac852cdf6f515df4ee045ff9d6ea4d11a533e61d63cb9ee12ac9fdcb4a7dce5617
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mojo_magick (0.4.6)
4
+ mojo_magick (0.4.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MojoMagick
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
3
3
  end
@@ -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
- [ 'Rock it', '"Rock it"'],
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
- expect(b.to_s).to eql "label:#{labels[1]}"
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.6
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.6
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