qpid_proton 0.36.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.
- checksums.yaml +5 -5
- data/examples/testme +5 -5
- data/ext/cproton/cproton.c +1127 -2970
- data/lib/core/sender.rb +3 -3
- data/lib/core/uri.rb +9 -2
- data/lib/util/wrapper.rb +2 -8
- data/tests/test_connection_driver.rb +1 -1
- data/tests/test_container.rb +1 -1
- data/tests/test_container_sasl.rb +1 -1
- data/tests/test_data.rb +1 -1
- data/tests/test_delivery.rb +1 -1
- data/tests/test_interop.rb +1 -1
- data/tests/test_messaging_adapter.rb +1 -1
- data/tests/test_old_adapter.rb +2 -2
- data/tests/test_tools.rb +3 -3
- data/tests/test_uri.rb +1 -1
- data/tests/test_utils.rb +1 -1
- metadata +72 -73
data/lib/core/sender.rb
CHANGED
|
@@ -32,7 +32,9 @@ module Qpid::Proton
|
|
|
32
32
|
# @overload open_sender(address)
|
|
33
33
|
# @param address [String] address of the target to send to
|
|
34
34
|
# @overload open_sender(opts)
|
|
35
|
-
# @option opts [Boolean] :auto_settle (true)
|
|
35
|
+
# @option opts [Boolean] :auto_settle (true) If true (default), automatically settle
|
|
36
|
+
# messages upon receiving a settled disposition for that delivery. Otherwise messages
|
|
37
|
+
# must be explicitly settled.
|
|
36
38
|
# @option opts [Boolean] :dynamic (false) dynamic property for source {Terminus#dynamic}
|
|
37
39
|
# @option opts [String,Hash] :source source address or source options, see {Terminus#apply}
|
|
38
40
|
# @option opts [String,Hash] :target target address or target options, see {Terminus#apply}
|
|
@@ -95,5 +97,3 @@ module Qpid::Proton
|
|
|
95
97
|
can_raise_error :stream, :error_class => Qpid::Proton::LinkError
|
|
96
98
|
end
|
|
97
99
|
end
|
|
98
|
-
|
|
99
|
-
|
data/lib/core/uri.rb
CHANGED
|
@@ -20,6 +20,13 @@ require 'uri'
|
|
|
20
20
|
|
|
21
21
|
# Extend the standard ruby {URI} with AMQP and AMQPS schemes
|
|
22
22
|
module URI
|
|
23
|
+
# monkey patch register_scheme for earlier versions of ruby
|
|
24
|
+
if !self.respond_to? :register_scheme
|
|
25
|
+
def self.register_scheme (scheme, klass)
|
|
26
|
+
@@schemes[scheme] = klass
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
23
30
|
# AMQP URI scheme for the AMQP protocol
|
|
24
31
|
class AMQP < Generic
|
|
25
32
|
DEFAULT_PORT = 5672
|
|
@@ -27,13 +34,13 @@ module URI
|
|
|
27
34
|
# @return [String] The AMQP address is the {#path} stripped of any leading "/"
|
|
28
35
|
def amqp_address() path[0] == "/" ? path[1..-1] : path; end
|
|
29
36
|
end
|
|
30
|
-
|
|
37
|
+
register_scheme 'AMQP', AMQP
|
|
31
38
|
|
|
32
39
|
# AMQPS URI scheme for the AMQP protocol over TLS
|
|
33
40
|
class AMQPS < AMQP
|
|
34
41
|
DEFAULT_PORT = 5671
|
|
35
42
|
end
|
|
36
|
-
|
|
43
|
+
register_scheme 'AMQPS', AMQPS
|
|
37
44
|
end
|
|
38
45
|
|
|
39
46
|
module Qpid::Proton
|
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
|
|
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
|
-
|
|
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
|
data/tests/test_container.rb
CHANGED
|
@@ -30,7 +30,7 @@ class TestContainer < Qpid::Proton::Container
|
|
|
30
30
|
attr_reader :listener
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
class ContainerSASLTest <
|
|
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
data/tests/test_delivery.rb
CHANGED
|
@@ -22,7 +22,7 @@ require 'test_tools'
|
|
|
22
22
|
include Qpid::Proton
|
|
23
23
|
|
|
24
24
|
# Test Delivery and Tracker
|
|
25
|
-
class TestDelivery <
|
|
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
|
data/tests/test_interop.rb
CHANGED
|
@@ -52,7 +52,7 @@ class NoAutoOpenClose < RecordingHandler
|
|
|
52
52
|
attr_reader :connection, :session, :link
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
class TestMessagingHandler <
|
|
55
|
+
class TestMessagingHandler < Minitest::Test
|
|
56
56
|
|
|
57
57
|
def test_auto_open_close
|
|
58
58
|
d = DriverPair.new(RecordingHandler.new, RecordingHandler.new)
|
data/tests/test_old_adapter.rb
CHANGED
|
@@ -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 <
|
|
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 <
|
|
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
|
-
|
|
27
|
-
rescue NameError # For older versions of
|
|
28
|
-
|
|
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
data/tests/test_utils.rb
CHANGED
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.
|
|
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:
|
|
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
|
|
@@ -24,107 +23,107 @@ extensions:
|
|
|
24
23
|
extra_rdoc_files: []
|
|
25
24
|
files:
|
|
26
25
|
- LICENSE.txt
|
|
27
|
-
-
|
|
26
|
+
- examples/README.md
|
|
27
|
+
- examples/broker.rb
|
|
28
|
+
- examples/client.rb
|
|
29
|
+
- examples/direct_recv.rb
|
|
30
|
+
- examples/direct_send.rb
|
|
31
|
+
- examples/helloworld.rb
|
|
32
|
+
- examples/server.rb
|
|
33
|
+
- examples/simple_recv.rb
|
|
34
|
+
- examples/simple_send.rb
|
|
35
|
+
- examples/ssl-certs/README.txt
|
|
36
|
+
- examples/ssl-certs/tclient-certificate.p12
|
|
37
|
+
- examples/ssl-certs/tclient-certificate.pem
|
|
38
|
+
- examples/ssl-certs/tclient-full.p12
|
|
39
|
+
- examples/ssl-certs/tclient-private-key.pem
|
|
40
|
+
- examples/ssl-certs/tserver-certificate.p12
|
|
41
|
+
- examples/ssl-certs/tserver-certificate.pem
|
|
42
|
+
- examples/ssl-certs/tserver-full.p12
|
|
43
|
+
- examples/ssl-certs/tserver-private-key.pem
|
|
44
|
+
- examples/ssl_send.rb
|
|
45
|
+
- examples/testme
|
|
28
46
|
- ext/cproton/cproton.c
|
|
29
|
-
-
|
|
47
|
+
- ext/cproton/extconf.rb
|
|
30
48
|
- lib/codec/data.rb
|
|
31
49
|
- lib/codec/mapping.rb
|
|
32
|
-
- lib/
|
|
33
|
-
- lib/
|
|
34
|
-
- lib/util/schedule.rb
|
|
35
|
-
- lib/util/version.rb
|
|
36
|
-
- lib/util/error_handler.rb
|
|
37
|
-
- lib/types/hash.rb
|
|
38
|
-
- lib/types/described.rb
|
|
39
|
-
- lib/types/type.rb
|
|
40
|
-
- lib/types/strings.rb
|
|
41
|
-
- lib/types/array.rb
|
|
42
|
-
- lib/qpid_proton.rb
|
|
43
|
-
- lib/handler/messaging_handler.rb
|
|
44
|
-
- lib/handler/reactor_messaging_adapter.rb
|
|
45
|
-
- lib/handler/messaging_adapter.rb
|
|
46
|
-
- lib/handler/adapter.rb
|
|
47
|
-
- lib/core/ssl_domain.rb
|
|
48
|
-
- lib/core/ssl.rb
|
|
49
|
-
- lib/core/messaging_handler.rb
|
|
50
|
-
- lib/core/transfer.rb
|
|
51
|
-
- lib/core/ssl_details.rb
|
|
50
|
+
- lib/core/condition.rb
|
|
51
|
+
- lib/core/connection.rb
|
|
52
52
|
- lib/core/connection_driver.rb
|
|
53
|
-
- lib/core/sasl.rb
|
|
54
|
-
- lib/core/uri.rb
|
|
55
|
-
- lib/core/endpoint.rb
|
|
56
|
-
- lib/core/disposition.rb
|
|
57
|
-
- lib/core/terminus.rb
|
|
58
53
|
- lib/core/container.rb
|
|
59
54
|
- lib/core/delivery.rb
|
|
60
|
-
- lib/core/
|
|
55
|
+
- lib/core/disposition.rb
|
|
56
|
+
- lib/core/endpoint.rb
|
|
61
57
|
- lib/core/event.rb
|
|
62
|
-
- lib/core/
|
|
63
|
-
- lib/core/
|
|
58
|
+
- lib/core/exceptions.rb
|
|
59
|
+
- lib/core/link.rb
|
|
64
60
|
- lib/core/listener.rb
|
|
61
|
+
- lib/core/message.rb
|
|
62
|
+
- lib/core/messaging_handler.rb
|
|
63
|
+
- lib/core/receiver.rb
|
|
64
|
+
- lib/core/sasl.rb
|
|
65
|
+
- lib/core/sender.rb
|
|
65
66
|
- lib/core/session.rb
|
|
66
|
-
- lib/core/
|
|
67
|
+
- lib/core/ssl.rb
|
|
68
|
+
- lib/core/ssl_details.rb
|
|
69
|
+
- lib/core/ssl_domain.rb
|
|
70
|
+
- lib/core/terminus.rb
|
|
71
|
+
- lib/core/tracker.rb
|
|
72
|
+
- lib/core/transfer.rb
|
|
67
73
|
- lib/core/transport.rb
|
|
74
|
+
- lib/core/uri.rb
|
|
68
75
|
- lib/core/url.rb
|
|
69
|
-
- lib/core/
|
|
70
|
-
- lib/
|
|
71
|
-
- lib/
|
|
72
|
-
- lib/
|
|
73
|
-
- lib/
|
|
76
|
+
- lib/core/work_queue.rb
|
|
77
|
+
- lib/handler/adapter.rb
|
|
78
|
+
- lib/handler/messaging_adapter.rb
|
|
79
|
+
- lib/handler/messaging_handler.rb
|
|
80
|
+
- lib/handler/reactor_messaging_adapter.rb
|
|
81
|
+
- lib/qpid_proton.rb
|
|
82
|
+
- lib/reactor/container.rb
|
|
83
|
+
- lib/types/array.rb
|
|
84
|
+
- lib/types/described.rb
|
|
85
|
+
- lib/types/hash.rb
|
|
86
|
+
- lib/types/strings.rb
|
|
87
|
+
- lib/types/type.rb
|
|
88
|
+
- lib/util/deprecation.rb
|
|
89
|
+
- lib/util/error_handler.rb
|
|
90
|
+
- lib/util/schedule.rb
|
|
91
|
+
- lib/util/version.rb
|
|
92
|
+
- lib/util/wrapper.rb
|
|
93
|
+
- tests/collect_coverage.rb
|
|
94
|
+
- tests/test_connection_driver.rb
|
|
95
|
+
- tests/test_container.rb
|
|
96
|
+
- tests/test_container_sasl.rb
|
|
74
97
|
- tests/test_data.rb
|
|
75
98
|
- tests/test_delivery.rb
|
|
76
|
-
- tests/test_connection_driver.rb
|
|
77
99
|
- tests/test_interop.rb
|
|
78
|
-
- tests/test_uri.rb
|
|
79
|
-
- tests/test_container_sasl.rb
|
|
80
100
|
- tests/test_messaging_adapter.rb
|
|
81
|
-
- tests/test_utils.rb
|
|
82
|
-
- tests/test_tools.rb
|
|
83
101
|
- tests/test_old_adapter.rb
|
|
84
|
-
- tests/
|
|
85
|
-
- tests/
|
|
86
|
-
-
|
|
87
|
-
- examples/ssl-certs/tclient-certificate.p12
|
|
88
|
-
- examples/ssl-certs/tserver-private-key.pem
|
|
89
|
-
- examples/ssl-certs/tserver-certificate.pem
|
|
90
|
-
- examples/ssl-certs/tclient-full.p12
|
|
91
|
-
- examples/ssl-certs/tserver-full.p12
|
|
92
|
-
- examples/ssl-certs/README.txt
|
|
93
|
-
- examples/ssl-certs/tclient-private-key.pem
|
|
94
|
-
- examples/ssl-certs/tserver-certificate.p12
|
|
95
|
-
- examples/ssl-certs/tclient-certificate.pem
|
|
96
|
-
- examples/broker.rb
|
|
97
|
-
- examples/helloworld.rb
|
|
98
|
-
- examples/simple_recv.rb
|
|
99
|
-
- examples/server.rb
|
|
100
|
-
- examples/client.rb
|
|
101
|
-
- examples/README.md
|
|
102
|
-
- examples/direct_send.rb
|
|
103
|
-
- examples/testme
|
|
104
|
-
- examples/ssl_send.rb
|
|
105
|
-
- examples/simple_send.rb
|
|
102
|
+
- tests/test_tools.rb
|
|
103
|
+
- tests/test_uri.rb
|
|
104
|
+
- tests/test_utils.rb
|
|
106
105
|
homepage: http://qpid.apache.org/proton
|
|
107
106
|
licenses:
|
|
108
107
|
- Apache-2.0
|
|
109
|
-
metadata:
|
|
110
|
-
|
|
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
|
|
114
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
116
|
requirements:
|
|
116
|
-
- -
|
|
117
|
+
- - ">="
|
|
117
118
|
- !ruby/object:Gem::Version
|
|
118
119
|
version: 1.9.3
|
|
119
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
121
|
requirements:
|
|
121
|
-
- -
|
|
122
|
+
- - ">="
|
|
122
123
|
- !ruby/object:Gem::Version
|
|
123
124
|
version: '0'
|
|
124
125
|
requirements: []
|
|
125
|
-
|
|
126
|
-
rubygems_version: 2.0.14.1
|
|
127
|
-
signing_key:
|
|
126
|
+
rubygems_version: 3.6.7
|
|
128
127
|
specification_version: 4
|
|
129
128
|
summary: Ruby language bindings for the Qpid Proton messaging framework
|
|
130
129
|
test_files: []
|