rjack-qpid-client 0.14.1-java → 0.14.2-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.14.2 (2012-11-9)
2
+ * Fix nil access on lookup of a destination not configured. Now
3
+ correctly raises NameNotFoundException (#2)
4
+
1
5
  === 0.14.1 (2012-9-15)
2
6
  * Upgrade/broaden to slf4j [1.6.5,1.8), logback ~> 1.2 (dev)
3
7
 
@@ -21,7 +21,7 @@ module RJack
21
21
  QPID_VERSION = '0.14'
22
22
 
23
23
  # rjack gem version
24
- VERSION = QPID_VERSION + '.1'
24
+ VERSION = QPID_VERSION + '.2'
25
25
 
26
26
  LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
27
27
  end
@@ -128,10 +128,11 @@ module RJack::QpidClient
128
128
  #
129
129
  # Throws javax.naming.NamingException
130
130
  def lookup_destination( name )
131
+ dest = context.lookup( name )
131
132
  @log.info( "Lookup of destinations[ '%s' ] =\n %s" %
132
133
  [ name,
133
134
  address_serialize( name, @destinations[ name ] ) ] )
134
- context.lookup( name )
135
+ dest
135
136
  rescue NativeException => x
136
137
  raise x.cause
137
138
  end
@@ -165,7 +166,7 @@ module RJack::QpidClient
165
166
  # Serialize destination
166
167
  # {Addresses}[http://qpid.apache.org/books/0.14/Programming-In-Apache-Qpid/html/ch02s04.html]
167
168
  # (new format). Reference: section 2.4.3.5
168
- def address_serialize( name, opts = nil )
169
+ def address_serialize( name, opts = {} )
169
170
  opts = opts.dup
170
171
  out = ( opts.delete( :address ) || name ).to_s
171
172
  subject = opts.delete( :subject )
@@ -74,6 +74,15 @@ class TestQpidClient < MiniTest::Unit::TestCase
74
74
  con.close if con
75
75
  end
76
76
 
77
+ def test_destination_not_found
78
+ con = nil
79
+ with_context do |ctx|
80
+ assert_raises( Java::javax.naming.NameNotFoundException ) do
81
+ ctx.lookup_destination( 'no-existe' )
82
+ end
83
+ end
84
+ end
85
+
77
86
  def test_dest_exchange
78
87
  con = nil
79
88
  with_context do |ctx|
metadata CHANGED
@@ -1,135 +1,161 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rjack-qpid-client
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.14.1
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.14.2
6
6
  platform: java
7
- authors:
8
- - David Kellum
9
- autorequire:
7
+ authors:
8
+ - David Kellum
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-09-15 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rjack-jms
17
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.0.0
23
- - - <
24
- - !ruby/object:Gem::Version
25
- version: "1.2"
26
- requirement: *id001
27
- prerelease: false
28
- type: :runtime
29
- - !ruby/object:Gem::Dependency
30
- name: rjack-slf4j
31
- version_requirements: &id002 !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 1.6.5
37
- - - <
38
- - !ruby/object:Gem::Version
39
- version: "1.8"
40
- requirement: *id002
41
- prerelease: false
42
- type: :runtime
43
- - !ruby/object:Gem::Dependency
44
- name: rjack-logback
45
- version_requirements: &id003 !ruby/object:Gem::Requirement
46
- none: false
47
- requirements:
48
- - - ~>
49
- - !ruby/object:Gem::Version
50
- version: "1.2"
51
- requirement: *id003
52
- prerelease: false
53
- type: :development
54
- - !ruby/object:Gem::Dependency
55
- name: minitest
56
- version_requirements: &id004 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: "2.2"
62
- requirement: *id004
63
- prerelease: false
64
- type: :development
65
- - !ruby/object:Gem::Dependency
66
- name: rjack-tarpit
67
- version_requirements: &id005 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ~>
71
- - !ruby/object:Gem::Version
72
- version: "2.0"
73
- requirement: *id005
74
- prerelease: false
75
- type: :development
76
- description:
77
- email:
78
- - dek-oss@gravitext.com
12
+ date: 2012-11-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rjack-jms
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: 1.0.0
21
+ - - <
22
+ - !ruby/object:Gem::Version
23
+ version: '1.2'
24
+ none: false
25
+ requirement: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.0
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '1.2'
33
+ none: false
34
+ prerelease: false
35
+ type: :runtime
36
+ - !ruby/object:Gem::Dependency
37
+ name: rjack-slf4j
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: 1.6.5
43
+ - - <
44
+ - !ruby/object:Gem::Version
45
+ version: '1.8'
46
+ none: false
47
+ requirement: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: 1.6.5
52
+ - - <
53
+ - !ruby/object:Gem::Version
54
+ version: '1.8'
55
+ none: false
56
+ prerelease: false
57
+ type: :runtime
58
+ - !ruby/object:Gem::Dependency
59
+ name: rjack-logback
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '1.2'
65
+ none: false
66
+ requirement: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: '1.2'
71
+ none: false
72
+ prerelease: false
73
+ type: :development
74
+ - !ruby/object:Gem::Dependency
75
+ name: minitest
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '2.2'
81
+ none: false
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: '2.2'
87
+ none: false
88
+ prerelease: false
89
+ type: :development
90
+ - !ruby/object:Gem::Dependency
91
+ name: rjack-tarpit
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '2.0'
97
+ none: false
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ version: '2.0'
103
+ none: false
104
+ prerelease: false
105
+ type: :development
106
+ description:
107
+ email:
108
+ - dek-oss@gravitext.com
79
109
  executables: []
80
-
81
110
  extensions: []
82
-
83
- extra_rdoc_files:
84
- - History.rdoc
85
- - README.rdoc
86
- files:
87
- - History.rdoc
88
- - Manifest.txt
89
- - NOTICE.txt
90
- - README.rdoc
91
- - Rakefile
92
- - assembly.xml
93
- - pom.xml
94
- - lib/rjack-qpid-client/base.rb
95
- - lib/rjack-qpid-client.rb
96
- - lib/rjack-qpid-client/qpid_jms_context.rb
97
- - test/test_qpid_client.rb
98
- - lib/rjack-qpid-client/qpid-client-0.14.jar
99
- - lib/rjack-qpid-client/qpid-common-0.14.jar
111
+ extra_rdoc_files:
112
+ - History.rdoc
113
+ - README.rdoc
114
+ files:
115
+ - History.rdoc
116
+ - Manifest.txt
117
+ - NOTICE.txt
118
+ - README.rdoc
119
+ - Rakefile
120
+ - assembly.xml
121
+ - pom.xml
122
+ - lib/rjack-qpid-client/base.rb
123
+ - lib/rjack-qpid-client.rb
124
+ - lib/rjack-qpid-client/qpid_jms_context.rb
125
+ - test/test_qpid_client.rb
126
+ - lib/rjack-qpid-client/qpid-client-0.14.jar
127
+ - lib/rjack-qpid-client/qpid-common-0.14.jar
100
128
  homepage: http://rjack.rubyforge.org/qpid-client
101
129
  licenses: []
102
-
103
- post_install_message:
104
- rdoc_options:
105
- - --main
106
- - README.rdoc
107
- require_paths:
108
- - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
130
+ post_install_message:
131
+ rdoc_options:
132
+ - --main
133
+ - README.rdoc
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ segments:
142
+ - 0
143
+ hash: 2
110
144
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 2
115
- segments:
116
- - 0
117
- version: "0"
118
- required_rubygems_version: !ruby/object:Gem::Requirement
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ segments:
151
+ - 0
152
+ hash: 2
119
153
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 2
124
- segments:
125
- - 0
126
- version: "0"
127
154
  requirements: []
128
-
129
- rubyforge_project:
130
- rubygems_version: 1.8.15
131
- signing_key:
155
+ rubyforge_project:
156
+ rubygems_version: 1.8.24
157
+ signing_key:
132
158
  specification_version: 3
133
159
  summary: A gem packaging of the Qpid AMQP Java Client.
134
160
  test_files: []
135
-
161
+ ...