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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 977fd4194df253aca0b38025de9dcf563e9050fb
4
- data.tar.gz: 6f675830bc3809d3e9b73656607ebc688d8e2cb8
3
+ metadata.gz: 778544294cf437d6ec6b1e98451846c0a3d6f529
4
+ data.tar.gz: da2043e2d35d9ecb2186baafd8b4fdd0191d90ee
5
5
  SHA512:
6
- metadata.gz: ee2eed6adc45832a11c316b136076df8b6a0d7032b9d96cde61ef2fbd21829022e84f8a9b290df432bd36369914f58d92e2edb4c136f3f96fe4d1c1aeb5ec636
7
- data.tar.gz: dc22e1b1fdec424250c77f7a08953d5a77c085e116ee875f29cbba8f71d98b1649199f5c7b6d41bb7fa8aef101be187fec55683d3df43d0b19e358e8e04b2bcc
6
+ metadata.gz: 9c0e6b38cf8210d107113133c6d326f79b1acc12a393c30a094f5625a510081d4f444875d19836cabfd89aa09fe7f1d15b2bd633c9a29ed0ae3c3b09138ea524
7
+ data.tar.gz: 40017a9f53fb333671758bac8dfd0c1beae876b811962fe1d188044b404bbbfb91070404807fdd5b8327a37cb1aef92d1a3c48bea44b4d87eeec72bdf4a4e06d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## Version 2.0.7 (2017-09-08)
6
+
7
+ * disable the logging for now, it could deadlock
8
+
5
9
  ## Version 2.0.6 (2017-09-02)
6
10
 
7
11
  * improve get() behaviour on error with older libvipses
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.6
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
- @glib_log_handler_id = g_log_set_handler @glib_log_domain,
88
- LOG_LEVEL_DEBUG |
89
- LOG_LEVEL_INFO |
90
- LOG_LEVEL_MESSAGE |
91
- LOG_LEVEL_WARNING |
92
- LOG_LEVEL_ERROR |
93
- LOG_LEVEL_CRITICAL |
94
- LOG_FLAG_FATAL | LOG_FLAG_RECURSION,
95
- LOG_HANDLER, nil
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
- # The wrapper uses `logger` to log debug, info, warning, and error messages. By
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
- # You can use the {GLib::logger} accessor to change the log level, or to
373
- # redirect logging somewhere else. For example:
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
@@ -1,4 +1,4 @@
1
1
  module Vips
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
3
3
  end
4
4
 
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.6
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-03 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi