stomp 1.2.16 → 1.3.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 +8 -8
- data/CHANGELOG.rdoc +10 -0
- data/README.rdoc +2 -0
- data/lib/client/utils.rb +49 -41
- data/lib/connection/heartbeats.rb +21 -33
- data/lib/connection/netio.rb +15 -22
- data/lib/connection/utils.rb +11 -17
- data/lib/stomp.rb +1 -0
- data/lib/stomp/client.rb +34 -10
- data/lib/stomp/connection.rb +15 -38
- data/lib/stomp/errors.rb +51 -0
- data/lib/stomp/null_logger.rb +28 -0
- data/{examples → lib/stomp}/slogger.rb +14 -2
- data/lib/stomp/version.rb +2 -2
- data/spec/client_spec.rb +39 -1
- data/spec/connection_spec.rb +3 -0
- data/stomp.gemspec +15 -12
- data/test/test_anonymous.rb +523 -0
- data/test/test_helper.rb +15 -0
- metadata +9 -5
data/test/test_helper.rb
CHANGED
@@ -81,6 +81,21 @@ module TestBase
|
|
81
81
|
conn
|
82
82
|
end
|
83
83
|
|
84
|
+
# Get a Stomp Anonymous Connection.
|
85
|
+
def get_anonymous_connection()
|
86
|
+
ch = get_conn_headers()
|
87
|
+
hash = { :hosts => [
|
88
|
+
{:host => host, :port => port, :ssl => nil},
|
89
|
+
],
|
90
|
+
:reliable => false,
|
91
|
+
:connect_headers => ch,
|
92
|
+
:stompconn => get_stomp_conn(),
|
93
|
+
:usecrlf => get_crlf(),
|
94
|
+
}
|
95
|
+
conn = Stomp::Connection.open(hash)
|
96
|
+
conn
|
97
|
+
end
|
98
|
+
|
84
99
|
# Get a Stomp SSL Connection.
|
85
100
|
def get_ssl_connection()
|
86
101
|
ch = get_conn_headers()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stomp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian McCallister
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -55,7 +55,6 @@ extra_rdoc_files:
|
|
55
55
|
- examples/publisher.rb
|
56
56
|
- examples/put11conn_ex1.rb
|
57
57
|
- examples/putget11_rh1.rb
|
58
|
-
- examples/slogger.rb
|
59
58
|
- examples/ssl_uc1.rb
|
60
59
|
- examples/ssl_uc1_ciphers.rb
|
61
60
|
- examples/ssl_uc2.rb
|
@@ -81,8 +80,11 @@ extra_rdoc_files:
|
|
81
80
|
- lib/stomp/errors.rb
|
82
81
|
- lib/stomp/ext/hash.rb
|
83
82
|
- lib/stomp/message.rb
|
83
|
+
- lib/stomp/null_logger.rb
|
84
|
+
- lib/stomp/slogger.rb
|
84
85
|
- lib/stomp/sslparams.rb
|
85
86
|
- lib/stomp/version.rb
|
87
|
+
- test/test_anonymous.rb
|
86
88
|
- test/test_client.rb
|
87
89
|
- test/test_codec.rb
|
88
90
|
- test/test_connection.rb
|
@@ -112,7 +114,6 @@ files:
|
|
112
114
|
- examples/publisher.rb
|
113
115
|
- examples/put11conn_ex1.rb
|
114
116
|
- examples/putget11_rh1.rb
|
115
|
-
- examples/slogger.rb
|
116
117
|
- examples/ssl_uc1.rb
|
117
118
|
- examples/ssl_uc1_ciphers.rb
|
118
119
|
- examples/ssl_uc2.rb
|
@@ -138,6 +139,8 @@ files:
|
|
138
139
|
- lib/stomp/errors.rb
|
139
140
|
- lib/stomp/ext/hash.rb
|
140
141
|
- lib/stomp/message.rb
|
142
|
+
- lib/stomp/null_logger.rb
|
143
|
+
- lib/stomp/slogger.rb
|
141
144
|
- lib/stomp/sslparams.rb
|
142
145
|
- lib/stomp/version.rb
|
143
146
|
- notes/heartbeat_readme.txt
|
@@ -147,6 +150,7 @@ files:
|
|
147
150
|
- spec/message_spec.rb
|
148
151
|
- spec/spec_helper.rb
|
149
152
|
- stomp.gemspec
|
153
|
+
- test/test_anonymous.rb
|
150
154
|
- test/test_client.rb
|
151
155
|
- test/test_codec.rb
|
152
156
|
- test/test_connection.rb
|
@@ -178,7 +182,7 @@ requirements: []
|
|
178
182
|
rubyforge_project:
|
179
183
|
rubygems_version: 2.0.5
|
180
184
|
signing_key:
|
181
|
-
specification_version:
|
185
|
+
specification_version: 4
|
182
186
|
summary: Ruby client for the Stomp messaging protocol
|
183
187
|
test_files: []
|
184
188
|
has_rdoc:
|