mojo_magick 0.6.0 → 0.6.2
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/README.md +8 -0
- data/lib/mojo_magick/opt_builder.rb +3 -3
- data/lib/mojo_magick/version.rb +1 -1
- data/test/opt_builder_test.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb294af1589ca062245a0197a4a442f25c584fbbcbe7745d07f8976d6282c3d
|
4
|
+
data.tar.gz: ddb865f0d484815352da4c5182d3674e94ec0296c1b8fb5d8579d7c461397cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00fe14025e466113053a171d7866e32cbd9c20a011efc84ca543dba8cf62ef892c9b3c96f5a4cdcf11fd524fec939f11c806687668c57c5e6df0324ff8778e03
|
7
|
+
data.tar.gz: 76c39990bc119753db01f883b5592f179e2c36eb2c3f4a0f401f87ea548bfab39c9de664f6d8de4b19576a83c285a5d42fc62df25972c65d7ce8fd313e1068b4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -211,6 +211,14 @@ in the new code
|
|
211
211
|
|
212
212
|
Recent Changes
|
213
213
|
==============
|
214
|
+
#### Version 0.6.2
|
215
|
+
|
216
|
+
* fix `annotate` option. Now it takes keyword arguments for geometry.
|
217
|
+
|
218
|
+
#### Version 0.6.1
|
219
|
+
|
220
|
+
* pushed and yanked - defunct version
|
221
|
+
|
214
222
|
#### Version 0.6.0
|
215
223
|
|
216
224
|
* general cleanup and update gems - ready for ImageMagick 7
|
@@ -27,10 +27,10 @@ module MojoMagick
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# annotate takes non-standard args
|
30
|
-
def annotate(*args)
|
30
|
+
def annotate(*args, geometry: 0)
|
31
31
|
@opts << "-annotate"
|
32
|
-
arguments = args.join
|
33
|
-
arguments.unshift
|
32
|
+
arguments = [args.join]
|
33
|
+
arguments.unshift geometry.to_s
|
34
34
|
@opts << arguments
|
35
35
|
end
|
36
36
|
|
data/lib/mojo_magick/version.rb
CHANGED
data/test/opt_builder_test.rb
CHANGED
@@ -24,6 +24,16 @@ class MojoMagickOptBuilderTest < MiniTest::Test
|
|
24
24
|
assert_equal %w[-annotate 5 it's], @builder.to_a
|
25
25
|
end
|
26
26
|
|
27
|
+
def test_annotate_with_full_args
|
28
|
+
@builder.annotate "this thing", geometry: 3
|
29
|
+
assert_equal ["-annotate", "3", "this thing"], @builder.to_a
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_annotate_with_full_array_args
|
33
|
+
@builder.annotate "this", "thing", geometry: 3
|
34
|
+
assert_equal ["-annotate", "3", "thisthing"], @builder.to_a
|
35
|
+
end
|
36
|
+
|
27
37
|
def test_option_builder_with_blocks
|
28
38
|
# Passing in basic commands produces a string
|
29
39
|
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.6.
|
4
|
+
version: 0.6.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: 2021-01-
|
13
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -184,7 +184,7 @@ requirements: []
|
|
184
184
|
rubygems_version: 3.0.3
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
|
-
summary: mojo_magick-0.6.
|
187
|
+
summary: mojo_magick-0.6.2
|
188
188
|
test_files:
|
189
189
|
- test/fixtures/5742.jpg
|
190
190
|
- test/fixtures/not_an_image.jpg
|