mojo_magick 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +15 -1
- data/lib/mojo_magick/opt_builder.rb +1 -1
- data/lib/mojo_magick/version.rb +1 -1
- data/test/opt_builder_test.rb +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c114ee3beecac084311f267201862541bab25ce
|
4
|
+
data.tar.gz: c7baa01d41c1597b3ad6b43e6626d65b8e435c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd34898ed515e081d77c3a82631df8505220a40bd49ad88bc014517774f86b368fab21609df815777796ec32429721d7773ed6dcd13528163e025cfa2321cd9f
|
7
|
+
data.tar.gz: 395ab5c9bb6e222306d771cf0b0d388c3a8eeebdcf17e6d314d7565c2ec803b113b321f8aa3c511b1267903dfa72b294a70726614f51e50ed8e2cfdbf9f95637
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-
|
1
|
+
2.0.0-p353
|
data/Gemfile.lock
CHANGED
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
|
|
data/lib/mojo_magick/version.rb
CHANGED
data/test/opt_builder_test.rb
CHANGED
@@ -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.
|
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-
|
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.
|
122
|
+
rubygems_version: 2.0.14
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
|
-
summary: mojo_magick-0.5.
|
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
|