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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdb2b6563318eaf003552e04cafaba99adf014b716ac750a4c0b1ca3f0c8323c
4
- data.tar.gz: ed67fde557f5c57d3f507586a8ecef00c3c1dc918cf38b0cf35af42c0d9972b3
3
+ metadata.gz: 7eb294af1589ca062245a0197a4a442f25c584fbbcbe7745d07f8976d6282c3d
4
+ data.tar.gz: ddb865f0d484815352da4c5182d3674e94ec0296c1b8fb5d8579d7c461397cc1
5
5
  SHA512:
6
- metadata.gz: eef7bf4734a8874370a005308cfea49d0cc060417da11e234fb2d6c69136bb5ea5d428f1f95fdbefe80e71ab1140191cc18e9dce113683d30835f4e089744e60
7
- data.tar.gz: ffbadc0a11cce5222848142a3f148c5d0a034923892791ff321c7591cb00f5b117309a6996cf57bf3456f422a819729601c8f9cbd16c71d8c0517b8927f7f2d0
6
+ metadata.gz: 00fe14025e466113053a171d7866e32cbd9c20a011efc84ca543dba8cf62ef892c9b3c96f5a4cdcf11fd524fec939f11c806687668c57c5e6df0324ff8778e03
7
+ data.tar.gz: 76c39990bc119753db01f883b5592f179e2c36eb2c3f4a0f401f87ea548bfab39c9de664f6d8de4b19576a83c285a5d42fc62df25972c65d7ce8fd313e1068b4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mojo_magick (0.6.0)
4
+ mojo_magick (0.6.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.split
33
- arguments.unshift "0" if arguments.length == 1
32
+ arguments = [args.join]
33
+ arguments.unshift geometry.to_s
34
34
  @opts << arguments
35
35
  end
36
36
 
@@ -1,3 +1,3 @@
1
1
  module MojoMagick
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -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.0
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-22 00:00:00.000000000 Z
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.0
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