ruby-vips 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +14 -9
- data/VERSION +1 -1
- data/lib/vips/image.rb +68 -9
- data/lib/vips/methods.rb +215 -326
- data/lib/vips/operation.rb +15 -1
- data/lib/vips/version.rb +1 -1
- data/lib/vips.rb +2 -0
- metadata +2 -2
data/lib/vips/operation.rb
CHANGED
@@ -48,7 +48,8 @@ module Vips
|
|
48
48
|
class Introspect
|
49
49
|
attr_reader :name, :description, :flags, :args, :required_input,
|
50
50
|
:optional_input, :required_output, :optional_output, :member_x,
|
51
|
-
:method_args, :vips_name, :destructive
|
51
|
+
:method_args, :vips_name, :destructive, :doc_optional_input,
|
52
|
+
:doc_optional_output
|
52
53
|
|
53
54
|
@@introspect_cache = {}
|
54
55
|
|
@@ -142,6 +143,8 @@ module Vips
|
|
142
143
|
@flags = Vips.vips_operation_get_flags @op
|
143
144
|
@member_x = nil
|
144
145
|
@method_args = []
|
146
|
+
@doc_optional_input = {}
|
147
|
+
@doc_optional_output = {}
|
145
148
|
|
146
149
|
@args.each do |details|
|
147
150
|
arg_name = details[:arg_name]
|
@@ -164,6 +167,17 @@ module Vips
|
|
164
167
|
end
|
165
168
|
end
|
166
169
|
end
|
170
|
+
|
171
|
+
# and make the arg sets to document by filtering out deprecated args
|
172
|
+
@optional_input.each do |arg_name, details|
|
173
|
+
next if (details[:flags] & ARGUMENT_DEPRECATED) != 0
|
174
|
+
@doc_optional_input[details[:arg_name]] = details
|
175
|
+
end
|
176
|
+
|
177
|
+
@optional_output.each do |arg_name, details|
|
178
|
+
next if (details[:flags] & ARGUMENT_DEPRECATED) != 0
|
179
|
+
@doc_optional_output[details[:arg_name]] = details
|
180
|
+
end
|
167
181
|
end
|
168
182
|
|
169
183
|
def self.get name
|
data/lib/vips/version.rb
CHANGED
data/lib/vips.rb
CHANGED
@@ -584,6 +584,8 @@ module Vips
|
|
584
584
|
|
585
585
|
attach_function :vips_error_buffer, [], :string
|
586
586
|
attach_function :vips_error_clear, [], :void
|
587
|
+
attach_function :vips_error_freeze, [], :void
|
588
|
+
attach_function :vips_error_thaw, [], :void
|
587
589
|
|
588
590
|
# The ruby-vips error class.
|
589
591
|
class Error < RuntimeError
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-vips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cupitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|