ruby-vips 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/vips.rb +30 -24
- data/lib/vips/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 778544294cf437d6ec6b1e98451846c0a3d6f529
|
4
|
+
data.tar.gz: da2043e2d35d9ecb2186baafd8b4fdd0191d90ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c0e6b38cf8210d107113133c6d326f79b1acc12a393c30a094f5625a510081d4f444875d19836cabfd89aa09fe7f1d15b2bd633c9a29ed0ae3c3b09138ea524
|
7
|
+
data.tar.gz: 40017a9f53fb333671758bac8dfd0c1beae876b811962fe1d188044b404bbbfb91070404807fdd5b8327a37cb1aef92d1a3c48bea44b4d87eeec72bdf4a4e06d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.7
|
data/lib/vips.rb
CHANGED
@@ -71,7 +71,7 @@ module GLib
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def self.remove_log_handler
|
74
|
-
if @glib_log_handler_id and @glib_log_domain
|
74
|
+
if @glib_log_handler_id != 0 and @glib_log_domain
|
75
75
|
g_log_remove_handler @glib_log_domain, @glib_log_handler_id
|
76
76
|
@glib_log_handler_id = nil
|
77
77
|
end
|
@@ -84,15 +84,25 @@ module GLib
|
|
84
84
|
|
85
85
|
# forward all glib logging output from this domain to a Ruby logger
|
86
86
|
if @glib_log_domain
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
87
|
+
# disable this feature for now
|
88
|
+
#
|
89
|
+
# libvips background worker threads can issue warnings, and
|
90
|
+
# since the main thread is blocked waiting for libvips to come back
|
91
|
+
# from an ffi call, you get a deadlock on the GIL
|
92
|
+
#
|
93
|
+
# to fix this, we need a way for g_log() calls from libvips workers
|
94
|
+
# to be returned via the main thread
|
95
|
+
#
|
96
|
+
|
97
|
+
# @glib_log_handler_id = g_log_set_handler @glib_log_domain,
|
98
|
+
# LOG_LEVEL_DEBUG |
|
99
|
+
# LOG_LEVEL_INFO |
|
100
|
+
# LOG_LEVEL_MESSAGE |
|
101
|
+
# LOG_LEVEL_WARNING |
|
102
|
+
# LOG_LEVEL_ERROR |
|
103
|
+
# LOG_LEVEL_CRITICAL |
|
104
|
+
# LOG_FLAG_FATAL | LOG_FLAG_RECURSION,
|
105
|
+
# LOG_HANDLER, nil
|
96
106
|
|
97
107
|
# we must remove any handlers on exit, since libvips may log stuff
|
98
108
|
# on shutdown and we don't want LOG_HANDLER to be invoked
|
@@ -366,17 +376,18 @@ require 'vips/gvalue'
|
|
366
376
|
#
|
367
377
|
# # Logging
|
368
378
|
#
|
369
|
-
#
|
370
|
-
# default, it will send messages of level `Logger::WARN` and above to `STDOUT`.
|
379
|
+
# Libvips uses g_log() to log warning, debug, info and (some) error messages.
|
371
380
|
#
|
372
|
-
#
|
373
|
-
#
|
381
|
+
# https://developer.gnome.org/glib/stable/glib-Message-Logging.html
|
382
|
+
#
|
383
|
+
# You can disable wanrings by defining the `VIPS_WARNING` environment variable.
|
384
|
+
# You can enable info output by defining `VIPS_INFO`.
|
385
|
+
#
|
386
|
+
# # Exceptions
|
387
|
+
#
|
388
|
+
# The wrapper spots errors from vips operations and raises the {Vips::Error}
|
389
|
+
# exception. You can catch it in the usual way.
|
374
390
|
#
|
375
|
-
# ```ruby
|
376
|
-
# GLib.logger.level = Logger::ERROR
|
377
|
-
# GLib.logger = Rails.logger
|
378
|
-
# ```
|
379
|
-
#
|
380
391
|
# # Automatic YARD documentation
|
381
392
|
#
|
382
393
|
# The bulk of these API docs are generated automatically by
|
@@ -388,11 +399,6 @@ require 'vips/gvalue'
|
|
388
399
|
# docs](https://jcupitt.github.io/libvips/API/current)
|
389
400
|
# for more detail.
|
390
401
|
#
|
391
|
-
# # Exceptions
|
392
|
-
#
|
393
|
-
# The wrapper spots errors from vips operations and raises the {Vips::Error}
|
394
|
-
# exception. You can catch it in the usual way.
|
395
|
-
#
|
396
402
|
# # Enums
|
397
403
|
#
|
398
404
|
# The libvips enums, such as `VipsBandFormat` appear in ruby-vips as Symbols
|
data/lib/vips/version.rb
CHANGED
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.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cupitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|