qpid_proton 0.14.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -191,11 +191,11 @@ module Qpid::Proton::Messenger
191
191
  end
192
192
  end
193
193
 
194
- # Currently a no-op placeholder.
195
194
  # For future compatibility, do not send or recv messages
196
195
  # before starting the +Messenger+.
197
196
  #
198
197
  def start
198
+ at_exit { stop }
199
199
  Cproton.pn_messenger_start(@impl)
200
200
  end
201
201
 
@@ -128,8 +128,7 @@ module Qpid::Proton::Reactor
128
128
  def wakeup
129
129
  n = Cproton.pn_reactor_wakeup(@impl)
130
130
  unless n.zero?
131
- io = Cproton.pn_reactor_io(@impl)
132
- raise IOError.new(Cproton.pn_io_error(io))
131
+ raise IOError.new(Cproton.pn_reactor_error(@impl))
133
132
  end
134
133
  end
135
134
 
@@ -159,8 +158,7 @@ module Qpid::Proton::Reactor
159
158
  if !aimpl.nil?
160
159
  return Acceptor.new(aimpl)
161
160
  else
162
- io = Cproton.pn_reactor_io(@impl)
163
- io_error = Cproton.pn_io_error(io)
161
+ io_error = Cproton.pn_reactor_error(@impl)
164
162
  error_text = Cproton.pn_error_text(io_error)
165
163
  text = "(#{Cproton.pn_error_text(io_error)} (#{host}:#{port}))"
166
164
  raise IOError.new(text)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qpid_proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darryl L. Pierce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.8
129
+ rubygems_version: 2.6.8
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Ruby language bindings for the Qpid Proton messaging framework