stomp 1.4.5 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,7 @@ class TestURLLogins < Test::Unit::TestCase
54
54
  @badparms = "failover://(stomp://#{hostname}:#{portnum})?a=b&noequal"
55
55
 
56
56
  @client = nil
57
+ @turdbg = ENV['TURDBG'] || ENV['TDBGALL'] ? true : false
57
58
  end
58
59
 
59
60
  def teardown
@@ -62,16 +63,23 @@ class TestURLLogins < Test::Unit::TestCase
62
63
 
63
64
  # test stomp:// URLs
64
65
  def test_0010_stomp_urls()
66
+ mn = "test_0010_stomp_urls" if @turdbg
67
+ p [ "01", mn, "starts" ] if @turdbg
68
+
65
69
  @tdstomp.each_with_index do |url, ndx|
66
70
  c = Stomp::Client.new(url)
67
71
  assert !c.nil?, url
68
72
  assert c.open?, url
69
73
  c.close
70
74
  end
75
+ p [ "99", mn, "ends" ] if @turdbg
71
76
  end
72
77
 
73
78
  # test failover:// urls - tcp
74
79
  def test_0020_failover_urls_tcp()
80
+ mn = "test_0020_failover_urls_tcp" if @turdbg
81
+ p [ "01", mn, "starts" ] if @turdbg
82
+
75
83
  @tdfailover.each_with_index do |url, ndx|
76
84
  # p [ "xurl", url, "xndx", ndx ]
77
85
  c = Stomp::Client.new(url)
@@ -79,10 +87,14 @@ class TestURLLogins < Test::Unit::TestCase
79
87
  assert c.open?, url
80
88
  c.close
81
89
  end
90
+ p [ "99", mn, "ends" ] if @turdbg
82
91
  end
83
92
 
84
93
  # test failover:// urls - ssl
85
- def test_0020_failover_urls_ssl()
94
+ def test_0030_failover_urls_ssl()
95
+ mn = "test_0030_failover_urls_ssl" if @turdbg
96
+ p [ "01", mn, "starts" ] if @turdbg
97
+
86
98
  @sslfailover.each_with_index do |url, ndx|
87
99
  # p [ "sslxurl", url, "sslxndx", ndx ]
88
100
  c = Stomp::Client.new(url)
@@ -90,13 +102,18 @@ class TestURLLogins < Test::Unit::TestCase
90
102
  assert c.open?, url
91
103
  c.close
92
104
  end
105
+ p [ "99", mn, "ends" ] if @turdbg
93
106
  end if ENV['STOMP_TESTSSL']
94
107
 
95
108
  # test failover:// with bad parameters
96
- def test_0020_failover_badparms()
109
+ def test_0040_failover_badparms()
110
+ mn = "test_0040_failover_badparms" if @turdbg
111
+ p [ "01", mn, "starts" ] if @turdbg
112
+
97
113
  assert_raise(Stomp::Error::MalformedFailoverOptionsError) {
98
114
  _ = Stomp::Client.new(@badparms)
99
115
  }
116
+ p [ "99", mn, "ends" ] if @turdbg
100
117
  end
101
118
 
102
119
  end unless ENV['STOMP_RABBIT']
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.5
4
+ version: 1.4.10
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: 2018-10-27 00:00:00.000000000 Z
14
+ date: 2020-08-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
@@ -33,8 +33,7 @@ dependencies:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '2.14'
36
- description: Ruby client for the Stomp messaging protocol. Note that this gem is
37
- no longer supported on rubyforge.
36
+ description: Ruby client for the Stomp messaging protocol.
38
37
  email:
39
38
  - brianm@apache.org
40
39
  - marius@stones.com
@@ -49,6 +48,7 @@ extra_rdoc_files:
49
48
  - README.md
50
49
  files:
51
50
  - CHANGELOG.md
51
+ - CONTRIBUTORS.md
52
52
  - LICENSE
53
53
  - README.md
54
54
  - Rakefile
@@ -70,6 +70,9 @@ files:
70
70
  - examples/client_conndisc.rb
71
71
  - examples/client_putget.rb
72
72
  - examples/conn_conndisc.rb
73
+ - examples/conn_get.rb
74
+ - examples/conn_put.rb
75
+ - examples/conn_put_pace.rb
73
76
  - examples/conn_putget.rb
74
77
  - examples/contrib.sh
75
78
  - examples/contributors.rb
@@ -81,6 +84,7 @@ files:
81
84
  - examples/logexamp.rb
82
85
  - examples/putget_file.rb
83
86
  - examples/putget_rephdrs.rb
87
+ - examples/showver.rb
84
88
  - examples/ssl/SSL.md
85
89
  - examples/ssl/misc/ssl_ctxoptions.rb
86
90
  - examples/ssl/misc/ssl_newparm.rb
@@ -91,8 +95,10 @@ files:
91
95
  - examples/ssl/uc1/ssl_uc1_ciphers.rb
92
96
  - examples/ssl/uc2/ssl_uc2.rb
93
97
  - examples/ssl/uc2/ssl_uc2_ciphers.rb
94
- - examples/ssl/uc3/ssl_uc3.rb
95
- - examples/ssl/uc3/ssl_uc3_ciphers.rb
98
+ - examples/ssl/uc3/ssl_uc3_from_files.rb
99
+ - examples/ssl/uc3/ssl_uc3_from_files_ciphers.rb
100
+ - examples/ssl/uc3/ssl_uc3_without_files.rb
101
+ - examples/ssl/uc3/ssl_uc3_without_files_ciphers.rb
96
102
  - examples/ssl/uc4/ssl_uc4.rb
97
103
  - examples/ssl/uc4/ssl_uc4_ciphers.rb
98
104
  - examples/stomp_common.rb