mojo_magick 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f0bc8c31a0b6f8b9f8c5b217cc6dda15b83bf89
4
- data.tar.gz: cb03f8a740c020b47cd58ed663c7f4ed15a1a590
3
+ metadata.gz: 5c114ee3beecac084311f267201862541bab25ce
4
+ data.tar.gz: c7baa01d41c1597b3ad6b43e6626d65b8e435c4c
5
5
  SHA512:
6
- metadata.gz: 6b18a88bd6d774ae1b4a7e0f14de462856d1e6ca4db78785dab40d6ea7475e13133bdfdc32ce83b2b197aa7429ed2b027071e9545728bf8053f050db0f0fd431
7
- data.tar.gz: 374987fcec84b5b2a54e67bdd0dd4ff2c3d65efc6b992c7d1055377d809f01827b7add75314d905c3ceaffd196110267f384933318202017162648958a3b4a35
6
+ metadata.gz: cd34898ed515e081d77c3a82631df8505220a40bd49ad88bc014517774f86b368fab21609df815777796ec32429721d7773ed6dcd13528163e025cfa2321cd9f
7
+ data.tar.gz: 395ab5c9bb6e222306d771cf0b0d388c3a8eeebdcf17e6d314d7565c2ec803b113b321f8aa3c511b1267903dfa72b294a70726614f51e50ed8e2cfdbf9f95637
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p247
1
+ 2.0.0-p353
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mojo_magick (0.5.1)
4
+ mojo_magick (0.5.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  MojoMagick
2
2
  ==========
3
-
4
3
  MojoMagick is a "dog simple, do very little" image library. It is basically a couple of stateless
5
4
  module methods that make it somewhat more convenient than calling ImageMagick by hand.
6
5
 
@@ -10,6 +9,21 @@ one place, so why not do it here? If you improve on this tool, send me the patch
10
9
  This tool came about because I wanted a fast, simple, lightweight, nothing-goes-wrong-with-it-
11
10
  because-it's-too-simple-to-break image tool.
12
11
 
12
+ [![Gem Version](https://badge.fury.io/rb/mojo_magick.png)](http://badge.fury.io/rb/mojo_magick)
13
+
14
+ Using it
15
+ ========
16
+
17
+ Add to your Gemfile
18
+
19
+ gem 'mojo_magick'
20
+
21
+ Require it in your ruby code
22
+
23
+ require 'mojo_magick'
24
+
25
+ Go to town! Check out a couple of simple [examples, here](examples/)
26
+
13
27
  Examples
14
28
  ========
15
29
 
@@ -77,7 +77,7 @@ module MojoMagick
77
77
  end
78
78
 
79
79
  def quoted_arg(arg)
80
- return arg unless arg =~ /['<>^|&();` ]/
80
+ return arg unless arg =~ /[#'<>^|&();` ]/
81
81
  [ '"', arg.gsub('"', '\"').gsub("'", "\'"), '"'].join
82
82
  end
83
83
  end
@@ -1,3 +1,3 @@
1
1
  module MojoMagick
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -17,6 +17,12 @@ class MojoMagickOptBuilderTest < Test::Unit::TestCase
17
17
  assert_equal '\( -background red \) \( -background blue \)', b.to_s
18
18
  end
19
19
 
20
+ def test_option_builder_with_hex_colors
21
+ b = MojoMagick::OptBuilder.new
22
+ b.background '#000000'
23
+ assert_equal '-background "#000000"', b.to_s
24
+ end
25
+
20
26
  def test_option_builder
21
27
  # Passing in basic commands produces a string
22
28
  b = MojoMagick::OptBuilder.new
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Midgley
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-24 00:00:00.000000000 Z
13
+ date: 2013-11-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -119,10 +119,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project: mojo_magick
122
- rubygems_version: 2.0.3
122
+ rubygems_version: 2.0.14
123
123
  signing_key:
124
124
  specification_version: 4
125
- summary: mojo_magick-0.5.1
125
+ summary: mojo_magick-0.5.2
126
126
  test_files:
127
127
  - test/fixtures/5742.jpg
128
128
  - test/fixtures/not_an_image.jpg