Skip to content

Commit 05cde1d

Browse files
committed
fix tests with git master libvips
and get changelog ready for 2.2.1
1 parent 0c110b0 commit 05cde1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master
44

5+
## Version 2.2.1 (2023-02-21)
6+
57
* add `Vips.block_untrusted` method to block all untrusted operations. Only for libvips >= 8.13. [Docs](https://www.libvips.org/API/current/libvips-vips.html#vips-block-untrusted-set). [#382](https://github.com/libvips/ruby-vips/pull/382) [aglushkov](https://github.com/aglushkov)
68
* add `Vips.block` method to block specific operation. Only for libvips >= 8.13. [Docs](https://www.libvips.org/API/current/VipsOperation.html#vips-operation-block-set). [#382](https://github.com/libvips/ruby-vips/pull/382) [aglushkov](https://github.com/aglushkov)
79
* `new_from_source` keeps a ref to the source object [taylorthurlow]

spec/block_operations_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Block
1212
Vips.block_untrusted(true)
13-
expect { Vips::Image.new_from_file(untrusted_image) }.to raise_error Vips::Error, /svgload/
13+
expect { Vips::Image.new_from_file(untrusted_image) }.to raise_error Vips::Error, /not a known/
1414

1515
# Unblock
1616
Vips.block_untrusted(false)
@@ -23,7 +23,7 @@
2323
# Block all loaders except jpeg
2424
Vips.block("VipsForeignLoad", true)
2525
Vips.block("VipsForeignLoadJpeg", false)
26-
expect { Vips::Image.new_from_file(svg_image) }.to raise_error Vips::Error, /svgload/
26+
expect { Vips::Image.new_from_file(svg_image) }.to raise_error Vips::Error, /not a known/
2727
expect { Vips::Image.new_from_file(jpg_image) }.not_to raise_error
2828

2929
# Unblock all loaders

0 commit comments

Comments
 (0)