libvirt_async 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: 29068169acb33c40aab3b68ae326e5255697591105d7a0dd08e7f48c85ecf6ec
4
- data.tar.gz: b776639631e12eae19e85d0479944f8b9844f1261776bf19374ad6d484dc12f1
3
+ metadata.gz: 3ceed699e8f54337a21a865a705812aa9e9dc254f09e940c5a7599ffe0bd636b
4
+ data.tar.gz: 220744ac997b245a94ff5bcb3fc8e876b94a78e58198c06eb2442cb43cdfaee3
5
5
  SHA512:
6
- metadata.gz: '00782199bb68a055e4976fed53ab2a9fa4db234fc43808fa8b0d4c4e4b67e6f91522ac32c45bfbf10007bd71a5ab0ea949f0d9c94b7facaa4c3ada5a325a2277'
7
- data.tar.gz: 86b0d33d74b5f0e69a278becafb26d585e1cec551201a38356fe39da55a23a2fda3a70187e2462dea5fe197e45cca22cfe551d8401ba61dcd87d858600b40c12
6
+ metadata.gz: 4eee9029a3ffad0987f7b687c88384db43c498832cf1bedabecd9a013bffd6d015f6ab01dc136907db05232fa95bb8c3939d0b90ab4358181ec80a73121133eb
7
+ data.tar.gz: c51ef28c2fe03d74f400865742331e29ab197a9ae2bb6de2b106c0937b539d7385c2aa89a1fe299d07a5a27ee425a321f17be6094d6a62d2ea763e7776faa663
@@ -44,10 +44,11 @@ module LibvirtAsync
44
44
  raise ArgumentError, 'block must be given' if @callback.nil?
45
45
 
46
46
  dbg { "#{to_s}#call event_add_callback calling" }
47
+ proc = -> (_stream, events, _opaque) { stream_callback(events) }
47
48
  @cb_opaque = stream.event_add_callback(
48
49
  Libvirt::Stream::EVENT_READABLE,
49
- -> (_stream, events, _opaque) { stream_callback(events) },
50
- self
50
+ self,
51
+ &proc
51
52
  )
52
53
  dbg { "#{to_s}#call event_add_callback called" }
53
54
 
@@ -1,3 +1,3 @@
1
1
  module LibvirtAsync
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libvirt_async
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich