stomp 1.3.1 → 1.3.2
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/CHANGELOG.rdoc +15 -0
- data/README.rdoc +3 -1
- data/examples/conn11_hb1.rb +2 -2
- data/examples/examplogger.rb +306 -0
- data/examples/logexamp.rb +2 -2
- data/examples/logexamp_ssl.rb +2 -2
- data/lib/client/utils.rb +3 -1
- data/lib/connection/heartbeats.rb +20 -38
- data/lib/connection/netio.rb +22 -25
- data/lib/connection/utils.rb +22 -17
- data/lib/stomp/client.rb +29 -13
- data/lib/stomp/connection.rb +33 -14
- data/lib/stomp/constants.rb +81 -17
- data/lib/stomp/null_logger.rb +2 -0
- data/lib/stomp/version.rb +1 -1
- data/spec/connection_spec.rb +6 -1
- data/stomp.gemspec +11 -8
- data/test/test_anonymous.rb +2 -2
- data/test/test_urlogin.rb +3 -3
- metadata +61 -40
- checksums.yaml +0 -15
data/lib/stomp/null_logger.rb
CHANGED
data/lib/stomp/version.rb
CHANGED
data/spec/connection_spec.rb
CHANGED
@@ -30,6 +30,7 @@ describe Stomp::Connection do
|
|
30
30
|
:fast_hbs_adjust => 0.0,
|
31
31
|
:connread_timeout => 0,
|
32
32
|
:tcp_nodelay => true,
|
33
|
+
:start_timeout => 10,
|
33
34
|
}
|
34
35
|
|
35
36
|
#POG:
|
@@ -99,6 +100,8 @@ describe Stomp::Connection do
|
|
99
100
|
:maxHbrlckFails => 0,
|
100
101
|
:fastHbsAdjust => 0.0,
|
101
102
|
:connreadTimeout => 0,
|
103
|
+
:tcpNodelay => true,
|
104
|
+
:startTimeout => 10,
|
102
105
|
}
|
103
106
|
|
104
107
|
@connection = Stomp::Connection.new(used_hash)
|
@@ -355,6 +358,7 @@ describe Stomp::Connection do
|
|
355
358
|
:fast_hbs_adjust => 0.0,
|
356
359
|
:connread_timeout => 0,
|
357
360
|
:tcp_nodelay => true,
|
361
|
+
:start_timeout => 10,
|
358
362
|
}
|
359
363
|
|
360
364
|
used_hash = {
|
@@ -395,7 +399,8 @@ describe Stomp::Connection do
|
|
395
399
|
:max_hbrlck_fails => 456,
|
396
400
|
:fast_hbs_adjust => 0.2,
|
397
401
|
:connread_timeout => 42,
|
398
|
-
:tcp_nodelay =>
|
402
|
+
:tcp_nodelay => false,
|
403
|
+
:start_timeout => 6,
|
399
404
|
}
|
400
405
|
|
401
406
|
@connection = Stomp::Connection.new(used_hash)
|
data/stomp.gemspec
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.3.
|
7
|
+
s.name = %q{stomp}
|
8
|
+
s.version = "1.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brian McCallister", "Marius Mathiesen", "Thiago Morello", "Guy M. Allard"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
12
|
+
s.date = %q{2013-12-08}
|
13
|
+
s.description = %q{Ruby client for the Stomp messaging protocol. Note that this gem is no longer supported on rubyforge.}
|
14
14
|
s.email = ["brianm@apache.org", "marius@stones.com", "morellon@gmail.com", "allard.guy.m@gmail.com"]
|
15
15
|
s.executables = ["catstomp", "stompcat"]
|
16
16
|
s.extra_rdoc_files = [
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
"examples/conn11_ex2.rb",
|
24
24
|
"examples/conn11_hb1.rb",
|
25
25
|
"examples/consumer.rb",
|
26
|
+
"examples/examplogger.rb",
|
26
27
|
"examples/get11conn_ex1.rb",
|
27
28
|
"examples/get11conn_ex2.rb",
|
28
29
|
"examples/logexamp.rb",
|
@@ -83,6 +84,7 @@ Gem::Specification.new do |s|
|
|
83
84
|
"examples/conn11_ex2.rb",
|
84
85
|
"examples/conn11_hb1.rb",
|
85
86
|
"examples/consumer.rb",
|
87
|
+
"examples/examplogger.rb",
|
86
88
|
"examples/get11conn_ex1.rb",
|
87
89
|
"examples/get11conn_ex2.rb",
|
88
90
|
"examples/logexamp.rb",
|
@@ -137,14 +139,15 @@ Gem::Specification.new do |s|
|
|
137
139
|
"test/test_urlogin.rb",
|
138
140
|
"test/tlogger.rb"
|
139
141
|
]
|
140
|
-
s.homepage =
|
142
|
+
s.homepage = %q{https://github.com/stompgem/stomp}
|
141
143
|
s.licenses = ["Apache 2.0"]
|
142
144
|
s.require_paths = ["lib"]
|
143
|
-
s.rubygems_version =
|
144
|
-
s.summary =
|
145
|
+
s.rubygems_version = %q{1.3.7}
|
146
|
+
s.summary = %q{Ruby client for the Stomp messaging protocol}
|
145
147
|
|
146
148
|
if s.respond_to? :specification_version then
|
147
|
-
|
149
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
150
|
+
s.specification_version = 3
|
148
151
|
|
149
152
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
150
153
|
s.add_development_dependency(%q<rspec>, [">= 2.3"])
|
data/test/test_anonymous.rb
CHANGED
@@ -9,10 +9,10 @@ end
|
|
9
9
|
|
10
10
|
=begin
|
11
11
|
|
12
|
-
Main class for testing Stomp::Connection instances.
|
12
|
+
Main class for testing Stomp::Connection instances with anonymous logins.
|
13
13
|
|
14
14
|
=end
|
15
|
-
class
|
15
|
+
class TestAnonymous < Test::Unit::TestCase
|
16
16
|
include TestBase
|
17
17
|
|
18
18
|
def setup
|
data/test/test_urlogin.rb
CHANGED
@@ -28,7 +28,6 @@ class TestURLLogins < Test::Unit::TestCase
|
|
28
28
|
]
|
29
29
|
@tdfailover = [
|
30
30
|
"failover://(stomp://#{hostname}:#{portnum})",
|
31
|
-
"failover://(stomp+ssl://#{hostname}:#{sslpn})",
|
32
31
|
"failover://(stomp://#{hostname}:#{portnum})",
|
33
32
|
"failover://(stomp://#{hostname}:#{portnum})?whatup=doc&coyote=kaboom",
|
34
33
|
"failover://(stomp://#{hostname}:#{portnum})?whatup=doc",
|
@@ -38,14 +37,15 @@ class TestURLLogins < Test::Unit::TestCase
|
|
38
37
|
'failover://(stomp://f@#$$%^&*()_+=o.o::b~!@#$%^&*()+-_=?:<>,.@@' + "localhost" + ":#{portnum}" + ")?a=b",
|
39
38
|
'failover://(stomp://f@#$$%^&*()_+=o.o::b~!@#$%^&*()+-_=:<>,.@@' + "localhost" + ":#{portnum}" + ")?c=d&e=f",
|
40
39
|
"failover://(stomp://usera:passa@#{hostname}:#{portnum})",
|
41
|
-
"failover://(stomp+ssl://usera:passa@#{hostname}:#{sslpn})",
|
42
40
|
"failover://(stomp://usera:@#{hostname}:#{portnum})",
|
43
41
|
"failover://(stomp://#{hostname}:#{portnum},stomp://#{hostname}:#{portnum})",
|
44
42
|
"failover://(stomp://usera:passa@#{hostname}:#{portnum},stomp://#{hostname}:#{portnum})",
|
45
43
|
"failover://(stomp://usera:@#{hostname}:#{portnum},stomp://#{hostname}:#{portnum})",
|
46
|
-
"failover://(stomp://usera:@#{hostname}:#{portnum},stomp+ssl://#{hostname}:#{sslpn})",
|
47
44
|
"failover://(stomp://#{hostname}:#{portnum},stomp://#{hostname}:#{portnum})?a=b&c=d",
|
48
45
|
"failover://(stomp://#{hostname}:#{portnum},stomp://#{hostname}:#{portnum})?a=b&c=d&connect_timeout=2020",
|
46
|
+
"failover://(stomp+ssl://#{hostname}:#{sslpn})",
|
47
|
+
"failover://(stomp+ssl://usera:passa@#{hostname}:#{sslpn})",
|
48
|
+
"failover://(stomp://usera:@#{hostname}:#{portnum},stomp+ssl://#{hostname}:#{sslpn})",
|
49
49
|
]
|
50
50
|
|
51
51
|
@badparms = "failover://(stomp://#{hostname}:#{portnum})?a=b&noequal"
|
metadata
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: stomp
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 3
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Brian McCallister
|
8
14
|
- Marius Mathiesen
|
9
15
|
- Thiago Morello
|
@@ -11,34 +17,37 @@ authors:
|
|
11
17
|
autorequire:
|
12
18
|
bindir: bin
|
13
19
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
20
|
+
|
21
|
+
date: 2013-12-08 00:00:00 -05:00
|
22
|
+
default_executable:
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
17
25
|
name: rspec
|
18
|
-
requirement: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.3'
|
23
|
-
type: :development
|
24
26
|
prerelease: false
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
hash: 5
|
33
|
+
segments:
|
34
|
+
- 2
|
35
|
+
- 3
|
36
|
+
version: "2.3"
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id001
|
39
|
+
description: Ruby client for the Stomp messaging protocol. Note that this gem is no longer supported on rubyforge.
|
40
|
+
email:
|
33
41
|
- brianm@apache.org
|
34
42
|
- marius@stones.com
|
35
43
|
- morellon@gmail.com
|
36
44
|
- allard.guy.m@gmail.com
|
37
|
-
executables:
|
45
|
+
executables:
|
38
46
|
- catstomp
|
39
47
|
- stompcat
|
40
48
|
extensions: []
|
41
|
-
|
49
|
+
|
50
|
+
extra_rdoc_files:
|
42
51
|
- CHANGELOG.rdoc
|
43
52
|
- LICENSE
|
44
53
|
- README.rdoc
|
@@ -48,6 +57,7 @@ extra_rdoc_files:
|
|
48
57
|
- examples/conn11_ex2.rb
|
49
58
|
- examples/conn11_hb1.rb
|
50
59
|
- examples/consumer.rb
|
60
|
+
- examples/examplogger.rb
|
51
61
|
- examples/get11conn_ex1.rb
|
52
62
|
- examples/get11conn_ex2.rb
|
53
63
|
- examples/logexamp.rb
|
@@ -94,7 +104,7 @@ extra_rdoc_files:
|
|
94
104
|
- test/test_ssl.rb
|
95
105
|
- test/test_urlogin.rb
|
96
106
|
- test/tlogger.rb
|
97
|
-
files:
|
107
|
+
files:
|
98
108
|
- CHANGELOG.rdoc
|
99
109
|
- LICENSE
|
100
110
|
- README.rdoc
|
@@ -107,6 +117,7 @@ files:
|
|
107
117
|
- examples/conn11_ex2.rb
|
108
118
|
- examples/conn11_hb1.rb
|
109
119
|
- examples/consumer.rb
|
120
|
+
- examples/examplogger.rb
|
110
121
|
- examples/get11conn_ex1.rb
|
111
122
|
- examples/get11conn_ex2.rb
|
112
123
|
- examples/logexamp.rb
|
@@ -160,29 +171,39 @@ files:
|
|
160
171
|
- test/test_ssl.rb
|
161
172
|
- test/test_urlogin.rb
|
162
173
|
- test/tlogger.rb
|
174
|
+
has_rdoc: true
|
163
175
|
homepage: https://github.com/stompgem/stomp
|
164
|
-
licenses:
|
176
|
+
licenses:
|
165
177
|
- Apache 2.0
|
166
|
-
metadata: {}
|
167
178
|
post_install_message:
|
168
179
|
rdoc_options: []
|
169
|
-
|
180
|
+
|
181
|
+
require_paths:
|
170
182
|
- lib
|
171
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
hash: 3
|
189
|
+
segments:
|
190
|
+
- 0
|
191
|
+
version: "0"
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
hash: 3
|
198
|
+
segments:
|
199
|
+
- 0
|
200
|
+
version: "0"
|
181
201
|
requirements: []
|
202
|
+
|
182
203
|
rubyforge_project:
|
183
|
-
rubygems_version:
|
204
|
+
rubygems_version: 1.3.7
|
184
205
|
signing_key:
|
185
|
-
specification_version:
|
206
|
+
specification_version: 3
|
186
207
|
summary: Ruby client for the Stomp messaging protocol
|
187
208
|
test_files: []
|
188
|
-
|
209
|
+
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NDk2MTQ0MmYyZmUzZDhkYTRhZDQ5MTg1Y2EwZTk2ZDQzODNkYjIxMg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZjFjMzc4ZGNhMWEzY2ZmZDJhODk5MmZhM2FhNzZmMzY0MWUyNzJhMg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
OTI5ZjFlNzFjMzFhNWUyZDA2YjRlYmFiZjVlNmE4ZGI4YWExZjgyZGMyOTgw
|
10
|
-
ZTY3N2ZkY2EzNmRmM2ZjYWZmYmQyMGZjZjIxMTkyNTBmY2IyZGI1NWVjYWZi
|
11
|
-
YmNjNzdiZTU2NzRmMTFiZmIyMzYyYjI4ZDZkZGQ2YzA1OGNmZDM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NmNmZWRjMGYyYWYzNTI3NTA4ZDEwMjQxYTdlYWExZDQ5ZTBkOWIzYmYzMGUz
|
14
|
-
NDg3YjY5OTE5MzM4NWQ3OTVhZDcwZGUwZGVhYTFmNjJjY2ZjMTA2NjgyZDBi
|
15
|
-
NzEzNTBjYTA5NzY4ZTc1MmRlN2Y5MzE3ZTcwNTdkNjFiNzU0OGI=
|