qpid_proton 0.37.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/util/wrapper.rb CHANGED
@@ -111,7 +111,7 @@ module Qpid::Proton
111
111
  end
112
112
  return result
113
113
  end
114
- RBCTX = self.hash.to_i
114
+ RBCTX = self.hash
115
115
  end
116
116
 
117
117
  # @private
@@ -129,13 +129,7 @@ module Qpid::Proton
129
129
 
130
130
  def inspect
131
131
  return "#{self.class}<nil>" unless @impl
132
- pstr = Cproton.pn_string("")
133
- begin
134
- Cproton.pn_inspect(@impl, pstr)
135
- return Cproton.pn_string_get(pstr)
136
- ensure
137
- Cproton.pn_free(pstr)
138
- end
132
+ return Cproton.pn_tostring(@impl)
139
133
  end
140
134
 
141
135
  def to_s() inspect; end
@@ -22,7 +22,7 @@ include Qpid::Proton
22
22
 
23
23
  # Test delivery of raw proton events
24
24
 
25
- class RawDriverTest < MiniTest::Test
25
+ class RawDriverTest < Minitest::Test
26
26
 
27
27
  # Raw handler to record all on_xxx calls
28
28
  class RecordingHandler
@@ -29,7 +29,7 @@ class ExceptionMessagingHandler
29
29
  def on_error(e) raise e; end
30
30
  end
31
31
 
32
- class ContainerTest < MiniTest::Test
32
+ class ContainerTest < Minitest::Test
33
33
  include Qpid::Proton
34
34
 
35
35
  def test_simple()
@@ -30,7 +30,7 @@ class TestContainer < Qpid::Proton::Container
30
30
  attr_reader :listener
31
31
  end
32
32
 
33
- class ContainerSASLTest < MiniTest::Test
33
+ class ContainerSASLTest < Minitest::Test
34
34
  include Qpid::Proton
35
35
 
36
36
  # Handler for test client/server that sets up server and client SASL options
data/tests/test_data.rb CHANGED
@@ -20,7 +20,7 @@ require 'test_tools'
20
20
  require "securerandom"
21
21
  require 'qpid_proton'
22
22
 
23
- class TestData < MiniTest::Test
23
+ class TestData < Minitest::Test
24
24
  include Qpid::Proton
25
25
 
26
26
  def assert_from_to(*values)
@@ -22,7 +22,7 @@ require 'test_tools'
22
22
  include Qpid::Proton
23
23
 
24
24
  # Test Delivery and Tracker
25
- class TestDelivery < MiniTest::Test
25
+ class TestDelivery < Minitest::Test
26
26
 
27
27
  class NoAutoHandler < MessagingHandler
28
28
  def on_sender_open(l) l.open({:auto_settle=>false, :auto_accept=>false}); end
@@ -12,7 +12,7 @@ if ((RUBY_VERSION.split(".").map {|x| x.to_i} <=> [1, 9]) < 0)
12
12
  end
13
13
  end
14
14
 
15
- class InteropTest < MiniTest::Test
15
+ class InteropTest < Minitest::Test
16
16
  include Qpid::Proton
17
17
 
18
18
  def setup
@@ -52,7 +52,7 @@ class NoAutoOpenClose < RecordingHandler
52
52
  attr_reader :connection, :session, :link
53
53
  end
54
54
 
55
- class TestMessagingHandler < MiniTest::Test
55
+ class TestMessagingHandler < Minitest::Test
56
56
 
57
57
  def test_auto_open_close
58
58
  d = DriverPair.new(RecordingHandler.new, RecordingHandler.new)
@@ -41,7 +41,7 @@ class AllHandler < OldMessagingHandler
41
41
  end
42
42
 
43
43
  # Tests with Mock handler that handles all methods, expect both old and new calls
44
- class TestOldHandler < MiniTest::Test
44
+ class TestOldHandler < Minitest::Test
45
45
  def setup
46
46
  @h = [AllHandler.new, AllHandler.new]
47
47
  @ch, @sh = *@h
@@ -161,7 +161,7 @@ class TestOldHandler < MiniTest::Test
161
161
  end
162
162
 
163
163
  # Test with real handlers that implement a few methods
164
- class TestOldUnhandled < MiniTest::Test
164
+ class TestOldUnhandled < Minitest::Test
165
165
 
166
166
  def test_message
167
167
  handler_class = Class.new(OldMessagingHandler) do
data/tests/test_tools.rb CHANGED
@@ -23,9 +23,9 @@ require 'qpid_proton'
23
23
  require 'socket'
24
24
 
25
25
  begin
26
- MiniTest::Test
27
- rescue NameError # For older versions of MiniTest
28
- MiniTest::Test = MiniTest::Unit::TestCase
26
+ Minitest::Test
27
+ rescue NameError # For older versions of Minitest
28
+ Minitest::Test = Minitest::Unit::TestCase
29
29
  end
30
30
 
31
31
  class TestError < RuntimeError; end # Normal error
data/tests/test_uri.rb CHANGED
@@ -19,7 +19,7 @@
19
19
  require 'test_tools'
20
20
  require 'qpid_proton'
21
21
 
22
- class TestURI < MiniTest::Test
22
+ class TestURI < Minitest::Test
23
23
 
24
24
  PARTS=[:scheme, :userinfo, :host, :port, :path] # Interesting URI components
25
25
  def uri(u) Qpid::Proton::uri(u); end
data/tests/test_utils.rb CHANGED
@@ -18,7 +18,7 @@
18
18
  require 'test_tools'
19
19
  require 'minitest/unit'
20
20
 
21
- class UtilsTest < MiniTest::Test
21
+ class UtilsTest < Minitest::Test
22
22
  include Qpid::Proton
23
23
 
24
24
  # Make sure Schedule puts tasks in proper order.
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qpid_proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darryl L. Pierce
8
8
  - Alan Conway
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2022-04-06 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: |
15
14
  Proton is a high performance, lightweight messaging library. It can be used in
@@ -106,8 +105,10 @@ files:
106
105
  homepage: http://qpid.apache.org/proton
107
106
  licenses:
108
107
  - Apache-2.0
109
- metadata: {}
110
- post_install_message:
108
+ metadata:
109
+ homepage_uri: http://qpid.apache.org/proton
110
+ source_code_uri: https://github.com/apache/qpid-proton/tree/main/ruby
111
+ bug_tracker_uri: https://issues.apache.org/jira/projects/PROTON/issues
111
112
  rdoc_options: []
112
113
  require_paths:
113
114
  - lib
@@ -122,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  - !ruby/object:Gem::Version
123
124
  version: '0'
124
125
  requirements: []
125
- rubygems_version: 3.2.22
126
- signing_key:
126
+ rubygems_version: 3.6.7
127
127
  specification_version: 4
128
128
  summary: Ruby language bindings for the Qpid Proton messaging framework
129
129
  test_files: []