ruby-vips 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -218,7 +218,7 @@ module Vips
218
218
  raise Vips::Error if value.null?
219
219
  end
220
220
 
221
- super(value)
221
+ super
222
222
  end
223
223
 
224
224
  def build
data/lib/vips/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vips
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.4"
3
3
  end
data/lib/vips.rb CHANGED
@@ -810,13 +810,13 @@ module Vips
810
810
  end
811
811
 
812
812
  if at_least_libvips?(8, 13)
813
- attach_function :vips_block_untrusted_set, [:bool], :void
814
- attach_function :vips_operation_block_set, %i[string bool], :void
813
+ attach_function :vips_block_untrusted_set, [:int], :void
814
+ attach_function :vips_operation_block_set, [:string, :int], :void
815
815
 
816
816
  # Block/unblock all untrusted operations from running.
817
817
  # Use `vips -l` at the command-line to see the class hierarchy and which operations are marked as untrusted.
818
- def self.block_untrusted(enabled)
819
- vips_block_untrusted_set(enabled)
818
+ def self.block_untrusted(state)
819
+ vips_block_untrusted_set(state ? 1 : 0)
820
820
  end
821
821
 
822
822
  # Block/unblock all operations in the libvips class hierarchy at specified *operation_name* and below.
@@ -829,8 +829,8 @@ module Vips
829
829
  # Use `vips -l` at the command-line to see the class hierarchy.
830
830
  # This call does nothing if the named operation is not found.
831
831
  #
832
- def self.block(operation_name, enabled)
833
- vips_operation_block_set(operation_name, enabled)
832
+ def self.block(operation_name, state)
833
+ vips_operation_block_set(operation_name, state ? 1 : 0)
834
834
  end
835
835
  end
836
836
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-vips
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cupitt
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-17 00:00:00.000000000 Z
10
+ date: 2025-06-05 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: ffi
@@ -205,7 +204,6 @@ metadata:
205
204
  homepage_uri: http://github.com/libvips/ruby-vips
206
205
  source_code_uri: https://github.com/libvips/ruby-vips
207
206
  msys2_mingw_dependencies: libvips
208
- post_install_message:
209
207
  rdoc_options: []
210
208
  require_paths:
211
209
  - lib
@@ -220,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
218
  - !ruby/object:Gem::Version
221
219
  version: '0'
222
220
  requirements: []
223
- rubygems_version: 3.4.20
224
- signing_key:
221
+ rubygems_version: 3.6.3
225
222
  specification_version: 4
226
223
  summary: A fast image processing library with low memory needs
227
224
  test_files: []