stomp 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +46 -3
- data/examples/artemis/artlogger.rb +41 -0
- data/examples/artemis/cliwaiter_not_reliable.rb +66 -0
- data/examples/artemis/cliwaiter_reliable.rb +61 -0
- data/examples/contrib.sh +2 -2
- data/examples/examplogger.rb +5 -3
- data/examples/ssl_uc1.rb +4 -2
- data/lib/client/utils.rb +10 -7
- data/lib/connection/heartbeats.rb +13 -11
- data/lib/connection/netio.rb +47 -14
- data/lib/connection/utils.rb +15 -5
- data/lib/stomp/client.rb +13 -6
- data/lib/stomp/connection.rb +10 -6
- data/lib/stomp/constants.rb +6 -4
- data/lib/stomp/errors.rb +25 -2
- data/lib/stomp/version.rb +4 -4
- data/spec/client_spec.rb +33 -18
- data/spec/spec_helper.rb +1 -0
- data/stomp.gemspec +21 -17
- data/test/MultiBrokerUnitTestExample.sh +65 -0
- data/test/test_anonymous.rb +29 -47
- data/test/test_client.rb +131 -131
- data/test/test_connection.rb +49 -51
- data/test/test_connection1p.rb +45 -76
- data/test/test_helper.rb +15 -2
- data/test/test_message.rb +18 -35
- data/test/test_ssl.rb +4 -10
- data/test/unitst.sh +3 -2
- metadata +7 -3
data/test/test_ssl.rb
CHANGED
@@ -38,16 +38,10 @@ class TestSSL < Test::Unit::TestCase
|
|
38
38
|
|
39
39
|
# Test using correct parameters.
|
40
40
|
def test_ssl_0020_noraise
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
_ = Stomp::SSLParams.new(:ts_files => "dummyts1")
|
46
|
-
}
|
47
|
-
assert_nothing_raised {
|
48
|
-
_ = Stomp::SSLParams.new(:ts_files => "dummyts1",
|
49
|
-
:cert_file => "dummy1", :key_file => "dummy2")
|
50
|
-
}
|
41
|
+
_ = Stomp::SSLParams.new(:cert_file => "dummy1", :key_file => "dummy2")
|
42
|
+
_ = Stomp::SSLParams.new(:ts_files => "dummyts1")
|
43
|
+
_ = Stomp::SSLParams.new(:ts_files => "dummyts1",
|
44
|
+
:cert_file => "dummy1", :key_file => "dummy2")
|
51
45
|
end
|
52
46
|
|
53
47
|
# Test using incorrect / incomplete parameters.
|
data/test/unitst.sh
CHANGED
@@ -6,11 +6,12 @@ cmd_base=$(dirname $0)
|
|
6
6
|
source $cmd_base/funcs.sh
|
7
7
|
# ------------------------------------------------------------------------------
|
8
8
|
pushd $cmd_base
|
9
|
+
RUN=${RUBY:-ruby}
|
9
10
|
slist=$(ls -1 *.rb | grep -v helper | grep -v 1method)
|
10
11
|
for rbf in $slist
|
11
12
|
do
|
12
|
-
echo "
|
13
|
-
|
13
|
+
echo "${RUN} -I ../lib ${rbf}"
|
14
|
+
$RUN -I ../lib $rbf
|
14
15
|
done
|
15
16
|
# ------------------------------------------------------------------------------
|
16
17
|
popd
|
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.
|
4
|
+
version: 1.4.4
|
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:
|
14
|
+
date: 2017-06-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -64,6 +64,9 @@ files:
|
|
64
64
|
- bin/catstomp
|
65
65
|
- bin/stompcat
|
66
66
|
- examples/amqdurasub.rb
|
67
|
+
- examples/artemis/artlogger.rb
|
68
|
+
- examples/artemis/cliwaiter_not_reliable.rb
|
69
|
+
- examples/artemis/cliwaiter_reliable.rb
|
67
70
|
- examples/client11_ex1.rb
|
68
71
|
- examples/client11_putget1.rb
|
69
72
|
- examples/conn11_ex1.rb
|
@@ -124,6 +127,7 @@ files:
|
|
124
127
|
- spec/spec_helper.rb
|
125
128
|
- stomp.gemspec
|
126
129
|
- test/.gitignore
|
130
|
+
- test/MultiBrokerUnitTestExample.sh
|
127
131
|
- test/funcs.sh
|
128
132
|
- test/test_anonymous.rb
|
129
133
|
- test/test_client.rb
|
@@ -156,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
160
|
version: '0'
|
157
161
|
requirements: []
|
158
162
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.6.11
|
160
164
|
signing_key:
|
161
165
|
specification_version: 4
|
162
166
|
summary: Ruby client for the Stomp messaging protocol
|