Skip to content

Commit b4daa77

Browse files
committed
Update docs for MiniMagick 5.x
1 parent ba30289 commit b4daa77

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
source 'https://rubygems.org'
22

33
gemspec
4-
5-
gem 'pry'

doc/minimagick.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ ImageProcessing::MiniMagick
314314

315315
#### `#method_missing`
316316

317-
Any unknown methods will be delegated to [`MiniMagick::Tool::Convert`]. See the
317+
Any unknown methods will be delegated to [`MiniMagick.convert`]. See the
318318
list of all available options by running `convert -help` and visiting the
319319
[ImageMagick reference].
320320

@@ -329,10 +329,10 @@ ImageProcessing::MiniMagick
329329

330330
#### `#custom`
331331

332-
Yields the intermediary `MiniMagick::Tool::Convert` object. If the block return
333-
value is a `MiniMagick::Tool::Convert` object it will be used in further
332+
Yields the intermediary `MiniMagick.convert` object. If the block return
333+
value is a `MiniMagick::Tool` object it will be used in further
334334
processing, otherwise if `nil` is returned the original
335-
`MiniMagick::Tool::Convert` object will be used.
335+
`MiniMagick::Tool` object will be used.
336336

337337
```rb
338338
ImageProcessing::MiniMagick
@@ -407,7 +407,7 @@ If you would like to have more control over loading, you can create the
407407
`MiniMagick::Tool` object directly, and just pass it as the source file.
408408

409409
```rb
410-
magick = MiniMagick::Tool::Convert.new
410+
magick = MiniMagick.convert
411411
magick << "..." << "..." << "..."
412412

413413
ImageProcessing::MiniMagick
@@ -454,7 +454,7 @@ magick = ImageProcessing::MiniMagick
454454
.resize_to_limit(400, 400)
455455
.call(save: false)
456456

457-
magick #=> #<MiniMagick::Tool::Convert ...>
457+
magick #=> #<MiniMagick::Tool ...>
458458

459459
magick << "output.png"
460460
magick.call
@@ -520,7 +520,7 @@ ImageProcessing::MiniMagick
520520
[direction]: https://www.imagemagick.org/script/command-line-options.php#gravity
521521
[color]: https://www.imagemagick.org/script/color.php
522522
[ImageMagick reference]: https://www.imagemagick.org/script/command-line-options.php
523-
[`MiniMagick::Tool::Convert`]: https://github.com/minimagick/minimagick#metal
523+
[`MiniMagick.convert`]: https://github.com/minimagick/minimagick#metal
524524
[Reading JPEG Control Options]: http://www.imagemagick.org/Usage/formats/#jpg_read
525525
[Writing JPEG Control Options]: http://www.imagemagick.org/Usage/formats/#jpg_write
526526
[`-limit`]: https://www.imagemagick.org/script/command-line-options.php#limit

test/pipeline_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
assert_equal [300, 400], vips_image.size
238238

239239
magick = ImageProcessing::MiniMagick.source(@portrait).resize_to_limit(400, 400).call(save: false)
240-
assert_instance_of MiniMagick::Tool::Convert, magick
240+
assert_kind_of MiniMagick::Tool, magick
241241
assert_includes magick.args, "400x400>"
242242
end
243243

0 commit comments

Comments
 (0)