r2corba 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +6 -4
- data/lib/corba/common/IDL.rb +3 -6
- data/lib/corba/common/Typecode.rb +3 -3
- data/lib/corba/common/require.rb +8 -0
- data/lib/corba/common/version.rb +1 -1
- data/lib/corba/svcs/ins/ins.rb +1 -1
- data/lib/ridlbe/ruby/config.rb +43 -44
- data/lib/ridlbe/ruby/walker.rb +1 -1
- data/rakelib/config.rb +2 -2
- data/rakelib/gem.rake +28 -12
- data/test/Nil/test.rb +8 -4
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e97f90895b0ba227ee8ec57b59aaed32b1598f0eb39d81addeb2929f8c7db9b
|
4
|
+
data.tar.gz: 2e0b712d33258178e9d0f6fd63ee0d1a6518aafe9351c68c41391ef391f10f71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748458c46255969a38efccabe6b48c5169daa874c5f5935ae2b45dac9dac247db0b55306f4171775f7d726a3a56e254795115b71d5a8fbca35a86795e128a541
|
7
|
+
data.tar.gz: 0b67467fb0f85b6b09212777c40ed28a7b5eac0ee2a1e4c9a2022311a0b4a41fa4a0605f2baf4ec23c61103e955e231a6abd1700761c8c861605282ec79c5070
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{<img src="https://badge.fury.io/rb/r2corba.svg" alt="Gem Version" />}[https://badge.fury.io/rb/r2corba]
|
2
|
-
{<img src="https://dev.azure.com/remedyit/r2corba/_apis/build/status/r2corba?branchName=master" alt="Azure pipeline" />}[https://dev.azure.com/remedyit/r2corba/_build?definitionId=3&_a=summary]
|
3
2
|
{<img src="https://www.codefactor.io/repository/github/remedyit/r2corba/badge" alt="CodeFactor" />}[https://www.codefactor.io/repository/github/remedyit/r2corba]
|
3
|
+
{<img src="https://github.com/RemedyIT/r2corba/workflows/linux/badge.svg" alt="Linux CI" />}[https://github.com/RemedyIT/r2corba/actions?query=workflow%3Alinux]
|
4
4
|
|
5
5
|
= R2CORBA
|
6
6
|
|
@@ -35,17 +35,17 @@ to install R2CORBA as a gem.
|
|
35
35
|
|
36
36
|
== Bugs
|
37
37
|
|
38
|
-
If you find a bug, please report it at the R2CORBA project's {
|
38
|
+
If you find a bug, please report it at the R2CORBA project's {issue tracker}[https://github.com/RemedyIT/r2corba/issues].
|
39
39
|
|
40
40
|
== License
|
41
41
|
|
42
|
-
R2CORBA is Copyright (c) 2007-
|
42
|
+
R2CORBA is Copyright (c) 2007-2020 Remedy IT Expertise BV, The Netherlands.
|
43
43
|
|
44
44
|
It is free software, and may be redistributed under the terms specified in the link:LICENSE file.
|
45
45
|
|
46
46
|
== Acknowledgments
|
47
47
|
|
48
|
-
See the
|
48
|
+
See the link:THANKS file.
|
49
49
|
|
50
50
|
== Warranty
|
51
51
|
|
@@ -53,6 +53,8 @@ This software is provided "as is" and without any express or implied warranties,
|
|
53
53
|
|
54
54
|
== Releasing new r2corba gems
|
55
55
|
|
56
|
+
A new r2corba ruby gem release can be made by incrementing the R2CORBA version in link:lib/corba/common/version.rb and create a new release on {github}[https://github.com/RemedyIT/r2corba/releases] matching the new version (for example v1.6.0). The github {Ruby Gem Release}[https://github.com/RemedyIT/r2corba/actions?query=workflow%3A%22Ruby+Gem+Release%22] action will automatically create a new {r2corba}[https://www.rubygems.org/gems/r2corba] and {taosource}[https://www.rubygems.org/gems/taosource] gem and push these to Rubygems.org.
|
57
|
+
|
56
58
|
A new R2CORBA taosource gem can be created by executing
|
57
59
|
|
58
60
|
rake r2corba:gem:taogem
|
data/lib/corba/common/IDL.rb
CHANGED
@@ -10,17 +10,14 @@
|
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
11
|
#--------------------------------------------------------------------
|
12
12
|
|
13
|
-
# hardwire RIDL to embedded state for Ruby language mapping
|
14
|
-
module IDL
|
15
|
-
@@embedded = true
|
16
|
-
@@be_name = :ruby
|
17
|
-
end
|
18
|
-
|
19
13
|
begin
|
20
14
|
require 'rubygems'
|
21
15
|
rescue LoadError
|
22
16
|
# ignore error, RIDL may be installed locally not as gem
|
23
17
|
end
|
18
|
+
# hardwire R2CORBA :ruby RIDL backend
|
19
|
+
ENV['RIDL_BE_SELECT'] = 'ruby'
|
20
|
+
# load RIDL
|
24
21
|
require 'ridl/ridl'
|
25
22
|
|
26
23
|
module R2CORBA
|
@@ -309,9 +309,9 @@ module R2CORBA
|
|
309
309
|
def get_type
|
310
310
|
@type ||= case self.kind
|
311
311
|
when TK_SHORT, TK_LONG, TK_USHORT, TK_ULONG
|
312
|
-
|
312
|
+
FIXNUM_KLASS
|
313
313
|
when TK_LONGLONG, TK_ULONGLONG
|
314
|
-
|
314
|
+
BIGNUM_KLASS
|
315
315
|
when TK_FLOAT, TK_DOUBLE
|
316
316
|
::Float
|
317
317
|
when TK_LONGDOUBLE
|
@@ -321,7 +321,7 @@ module R2CORBA
|
|
321
321
|
when TK_CHAR, TK_STRING
|
322
322
|
::String
|
323
323
|
when TK_WCHAR, TK_OCTET
|
324
|
-
|
324
|
+
FIXNUM_KLASS
|
325
325
|
when TK_VOID, TK_NULL
|
326
326
|
::NilClass
|
327
327
|
when TK_ANY
|
data/lib/corba/common/require.rb
CHANGED
@@ -10,6 +10,14 @@
|
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
11
|
#--------------------------------------------------------------------
|
12
12
|
|
13
|
+
module R2CORBA
|
14
|
+
|
15
|
+
# from Ruby 2.4 Fixnum and Bignum are deprecated
|
16
|
+
FIXNUM_KLASS = (1.class == ::Integer ? ::Integer : ::Fixnum)
|
17
|
+
BIGNUM_KLASS = (1.class == ::Integer ? ::Integer : ::Bignum)
|
18
|
+
|
19
|
+
end
|
20
|
+
|
13
21
|
[ 'version',
|
14
22
|
'const',
|
15
23
|
'IDL',
|
data/lib/corba/common/version.rb
CHANGED
data/lib/corba/svcs/ins/ins.rb
CHANGED
@@ -417,7 +417,7 @@ module R2CORBA
|
|
417
417
|
puts " provides help for the specified command\n\n"
|
418
418
|
exit
|
419
419
|
when :version
|
420
|
-
puts "R2CORBA
|
420
|
+
puts "R2CORBA Interoperable Naming Service (INS) #{INS_VERSION_MAJOR}.#{INS_VERSION_MINOR}.#{INS_VERSION_RELEASE}"
|
421
421
|
puts INS_COPYRIGHT
|
422
422
|
puts ''
|
423
423
|
exit
|
data/lib/ridlbe/ruby/config.rb
CHANGED
@@ -254,28 +254,45 @@ module IDL
|
|
254
254
|
|
255
255
|
module LeafMixin
|
256
256
|
|
257
|
-
RESERVED_RUBY_CONST =
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
'Regexp', 'String', 'Struct', 'Symbol', 'Thread', 'ThreadGroup', 'Time', 'TrueClass',
|
262
|
-
'UnboundMethod', 'Comparable', 'Enumerable', 'Errno', 'FileTest', 'GC', 'Kernel',
|
263
|
-
'Marshal', 'Math', 'ObjectSpace', 'Signal'
|
264
|
-
]
|
257
|
+
RESERVED_RUBY_CONST = %w(Array Bignum Binding Class Continuation Dir Exception FalseClass File
|
258
|
+
Fixnum Float Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Process
|
259
|
+
Range Regexp String Struct Symbol Thread ThreadGroup Time TrueClass UnboundMethod Comparable
|
260
|
+
Enumerable Errno FileTest GC Kernel Marshal Math ObjectSpace Signal)
|
265
261
|
|
266
|
-
RESERVED_RUBY_MEMBER =
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
]
|
262
|
+
RESERVED_RUBY_MEMBER = %w(untaint id instance_variable_get inspect taint public_methods
|
263
|
+
__send__ to_a display instance_eval extend clone protected_methods hash freeze type
|
264
|
+
instance_variable_set methods instance_variables to_s method dup private_methods object_id
|
265
|
+
send __id__ singleton_methods proc readline global_variables singleton_method_removed callcc
|
266
|
+
syscall fail untrace_var load srand puts catch chomp initialize_copy format scan print abort
|
267
|
+
fork gsub trap test select initialize method_missing lambda readlines local_variables
|
268
|
+
singleton_method_undefined system open caller eval set_trace_func require rand
|
269
|
+
singleton_method_added throw gets binding raise warn getc exec trace_var irb_binding at_exit
|
270
|
+
split putc loop chop sprintf p remove_instance_variable exit printf sleep sub autoload)
|
276
271
|
|
277
|
-
def
|
278
|
-
|
272
|
+
def ruby_lm_name
|
273
|
+
unless @lm_name
|
274
|
+
ret = @name.checked_name.dup
|
275
|
+
case self
|
276
|
+
when IDL::AST::Port,
|
277
|
+
IDL::AST::StateMember,
|
278
|
+
IDL::AST::Initializer,
|
279
|
+
IDL::AST::Parameter,
|
280
|
+
IDL::AST::Operation,
|
281
|
+
IDL::AST::Attribute,
|
282
|
+
IDL::AST::Member,
|
283
|
+
IDL::AST::UnionMember
|
284
|
+
# member names
|
285
|
+
ret = ret[0,1].downcase + ret[1,ret.size].to_s
|
286
|
+
ret = 'r_'+ret if IDL::Ruby::LeafMixin::RESERVED_RUBY_MEMBER.include?(ret)
|
287
|
+
else
|
288
|
+
# class/module names
|
289
|
+
ret = ret[0,1].upcase + ret[1,ret.size].to_s
|
290
|
+
is_scoped = @enclosure && !@enclosure.scopes.empty?
|
291
|
+
ret = 'R_'+ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
|
292
|
+
end
|
293
|
+
@lm_name = ret
|
294
|
+
end
|
295
|
+
@lm_name
|
279
296
|
end
|
280
297
|
|
281
298
|
def rubyname
|
@@ -285,38 +302,20 @@ module IDL
|
|
285
302
|
def scoped_rubyname
|
286
303
|
scoped_lm_name
|
287
304
|
end
|
288
|
-
|
289
|
-
module ClassMethods
|
290
|
-
def mk_name(nm, is_scoped)
|
291
|
-
ret = nm.dup
|
292
|
-
case self::NAMETYPE
|
293
|
-
when :class
|
294
|
-
ret = ret[0,1].upcase + ret[1,ret.size].to_s
|
295
|
-
ret = 'R_'+ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
|
296
|
-
when :member
|
297
|
-
ret = ret[0,1].downcase + ret[1,ret.size].to_s
|
298
|
-
ret = 'r_'+ret if IDL::Ruby::LeafMixin::RESERVED_RUBY_MEMBER.include?(ret)
|
299
|
-
else
|
300
|
-
raise "invalid nametype for #{self.class}: #{self::NAMETYPE}"
|
301
|
-
end
|
302
|
-
ret
|
303
|
-
end
|
304
|
-
end
|
305
305
|
end # module LeafMixin
|
306
306
|
|
307
307
|
IDL::AST::Leaf.class_eval do
|
308
308
|
include LeafMixin
|
309
|
+
|
310
|
+
alias :base_lm_name :lm_name
|
311
|
+
alias :lm_name :ruby_lm_name
|
309
312
|
end
|
310
313
|
|
311
314
|
module ScannerMixin
|
312
315
|
|
313
|
-
RUBYKW =
|
314
|
-
|
315
|
-
|
316
|
-
'BEGIN', 'break', 'do', 'false', 'next', 'rescue', 'then', 'when',
|
317
|
-
'END', 'case', 'else', 'for', 'nil', 'retry', 'true', 'while',
|
318
|
-
'alias', 'class', 'elsif', 'if', 'not', 'return', 'undef', 'yield',
|
319
|
-
].collect! { |w| w.to_sym }
|
316
|
+
RUBYKW = %w(__FILE__ and def end in or self unless __LINE__ begin defined? ensure module redo
|
317
|
+
super until BEGIN break do false next rescue then when END case else for nil retry true while
|
318
|
+
alias class elsif if not return undef yield).collect! { |w| w.to_sym }
|
320
319
|
|
321
320
|
def chk_identifier(ident)
|
322
321
|
# prefix Ruby keywords with 'r_'
|
data/lib/ridlbe/ruby/walker.rb
CHANGED
@@ -977,7 +977,7 @@ module IDL
|
|
977
977
|
end
|
978
978
|
|
979
979
|
def visit_enum(node)
|
980
|
-
printiln(format("class %s < ::
|
980
|
+
printiln(format("class %s < ::R2CORBA::FIXNUM_KLASS", node.rubyname))
|
981
981
|
nest {
|
982
982
|
printiln(format("def %s._tc", node.rubyname))
|
983
983
|
nest {
|
data/rakelib/config.rb
CHANGED
@@ -273,7 +273,7 @@ module R2CORBA
|
|
273
273
|
@@is_osx
|
274
274
|
end
|
275
275
|
|
276
|
-
@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : 1)
|
276
|
+
@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : (ENV['NUMBER_OF_PROCESSORS'] || 1).to_i)
|
277
277
|
|
278
278
|
def self.cpu_cores
|
279
279
|
@@cpu_cores
|
@@ -540,4 +540,4 @@ end
|
|
540
540
|
include R2CORBA::AccessMethods
|
541
541
|
|
542
542
|
# load current config (if any)
|
543
|
-
R2CORBA::Config.load
|
543
|
+
R2CORBA::Config.load
|
data/rakelib/gem.rake
CHANGED
@@ -68,7 +68,7 @@ namespace :r2corba do
|
|
68
68
|
gem.description = %Q{TAO sourcecode for building R2CORBA.}
|
69
69
|
gem.email = 'mcorino@remedy.nl'
|
70
70
|
gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
|
71
|
-
gem.authors = ['Martin Corino']
|
71
|
+
gem.authors = ['Martin Corino', 'Johnny Willemsen']
|
72
72
|
gem.files = Dir['lib/taosource/**/*']
|
73
73
|
gem.files.concat(Dir["src/ACE+TAO-src-#{_ace_ver}.tar.gz"])
|
74
74
|
gem.files << 'mkrf_conf_taogem.rb'
|
@@ -77,6 +77,10 @@ namespace :r2corba do
|
|
77
77
|
gem.executables = []
|
78
78
|
gem.required_ruby_version = '>= 2.0'
|
79
79
|
gem.licenses = ['DOC']
|
80
|
+
gem.metadata = {
|
81
|
+
"bug_tracker_uri" => "https://github.com/DOCGroup/ACE_TAO/issues",
|
82
|
+
"source_code_uri" => "https://github.com/DOCGroup/ACE_TAO"
|
83
|
+
}
|
80
84
|
end
|
81
85
|
R2CORBA::Gem.build_gem(gemspec)
|
82
86
|
end
|
@@ -91,7 +95,7 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
91
95
|
gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
|
92
96
|
gem.email = 'mcorino@remedy.nl'
|
93
97
|
gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
|
94
|
-
gem.authors = ['Martin Corino']
|
98
|
+
gem.authors = ['Martin Corino', 'Johnny Willemsen']
|
95
99
|
gem.files = R2CORBA::Gem.manifest
|
96
100
|
gem.extensions = ['mkrf_conf_srcgem.rb']
|
97
101
|
gem.require_paths = %w{lib}
|
@@ -99,8 +103,8 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
99
103
|
gem.required_ruby_version = '>= 2.0'
|
100
104
|
gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
|
101
105
|
gem.require_paths << 'ext'
|
102
|
-
gem.add_dependency 'ridl', '~> 2.
|
103
|
-
gem.add_dependency 'rake', '~>
|
106
|
+
gem.add_dependency 'ridl', '~> 2.8'
|
107
|
+
gem.add_dependency 'rake', '~> 12.3.3'
|
104
108
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
105
109
|
gem.metadata = {
|
106
110
|
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
@@ -130,14 +134,18 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
130
134
|
gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. (extension binaries)}
|
131
135
|
gem.email = 'mcorino@remedy.nl'
|
132
136
|
gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
|
133
|
-
gem.authors = ['Martin Corino']
|
137
|
+
gem.authors = ['Martin Corino', 'Johnny Willemsen']
|
134
138
|
gem.files = R2CORBA::Gem.manifest(:extbin)
|
135
139
|
gem.extensions = []
|
136
140
|
gem.require_paths = %w{ext}
|
137
141
|
gem.executables = []
|
138
|
-
gem.required_ruby_version = '>= 2.0
|
142
|
+
gem.required_ruby_version = '>= 2.0'
|
139
143
|
gem.licenses = ['Nonstandard', 'DOC']
|
140
144
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
|
145
|
+
gem.metadata = {
|
146
|
+
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
147
|
+
"source_code_uri" => "https://github.com/RemedyIT/r2corba"
|
148
|
+
}
|
141
149
|
end
|
142
150
|
R2CORBA::Gem.build_gem(gemspec)
|
143
151
|
ensure
|
@@ -169,24 +177,28 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
169
177
|
gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
|
170
178
|
gem.email = 'mcorino@remedy.nl'
|
171
179
|
gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
|
172
|
-
gem.authors = ['Martin Corino']
|
180
|
+
gem.authors = ['Martin Corino', 'Johnny Willemsen']
|
173
181
|
gem.files = R2CORBA::Gem.manifest(:bin)
|
174
182
|
gem.require_paths = %w{lib}
|
175
183
|
gem.executables = %w{ridlc rins r2corba}
|
176
184
|
gem.extensions = ['mkrf_conf_bingem.rb']
|
177
185
|
if defined?(JRUBY_VERSION)
|
178
186
|
gem.require_paths << 'jacorb/lib'
|
179
|
-
gem.required_ruby_version = '>=
|
187
|
+
gem.required_ruby_version = '>= 2.0'
|
180
188
|
gem.licenses = ['Nonstandard', 'GPL-2.0']
|
181
189
|
else
|
182
190
|
gem.files << File.join('ext', '.keep') unless ENV['FULL_BINGEM'] # to force installation of ext folder if libs are left out
|
183
|
-
gem.required_ruby_version = '>=
|
191
|
+
gem.required_ruby_version = '>= 2.0'
|
184
192
|
gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
|
185
193
|
gem.require_paths << 'ext'
|
186
194
|
end
|
187
|
-
gem.add_dependency 'ridl', '~> 2.
|
188
|
-
gem.add_dependency 'rake', '~>
|
195
|
+
gem.add_dependency 'ridl', '~> 2.8'
|
196
|
+
gem.add_dependency 'rake', '~> 12.3.3'
|
189
197
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
198
|
+
gem.metadata = {
|
199
|
+
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
200
|
+
"source_code_uri" => "https://github.com/RemedyIT/r2corba"
|
201
|
+
}
|
190
202
|
end
|
191
203
|
R2CORBA::Gem.build_gem(gemspec)
|
192
204
|
ensure
|
@@ -208,13 +220,17 @@ unless defined?(JRUBY_VERSION) || !R2CORBA::Config.is_win32
|
|
208
220
|
gem.description = %Q{Fake Devkit loader to satisfy stupid RubyInstaller pre-install hook. }
|
209
221
|
gem.email = 'mcorino@remedy.nl'
|
210
222
|
gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
|
211
|
-
gem.authors = ['Martin Corino']
|
223
|
+
gem.authors = ['Martin Corino', 'Johnny Willemsen']
|
212
224
|
gem.files = 'lib/rubygems_plugin.rb'
|
213
225
|
gem.require_paths = %w{lib}
|
214
226
|
gem.executables = []
|
215
227
|
gem.extensions = []
|
216
228
|
gem.required_ruby_version = '>= 2.0'
|
217
229
|
gem.licenses = ['Nonstandard']
|
230
|
+
gem.metadata = {
|
231
|
+
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
232
|
+
"source_code_uri" => "https://github.com/RemedyIT/r2corba"
|
233
|
+
}
|
218
234
|
end
|
219
235
|
R2CORBA::Gem.build_gem(gemspec)
|
220
236
|
end
|
data/test/Nil/test.rb
CHANGED
@@ -16,7 +16,7 @@ include TestUtil::Assertions
|
|
16
16
|
OPTIONS = {
|
17
17
|
:use_implement => false,
|
18
18
|
:orb_debuglevel => 0,
|
19
|
-
:ior => '
|
19
|
+
:ior => 'foo'
|
20
20
|
}
|
21
21
|
|
22
22
|
ARGV.options do |opts|
|
@@ -53,11 +53,15 @@ end
|
|
53
53
|
orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
|
54
54
|
|
55
55
|
begin
|
56
|
-
|
56
|
+
begin
|
57
|
+
tmp = orb.string_to_object(OPTIONS[:ior])
|
57
58
|
|
58
|
-
|
59
|
+
assert 'No Nil object reference returned on invalid IOR', CORBA.is_nil(tmp)
|
59
60
|
|
60
|
-
|
61
|
+
assert 'No Nil object returned on invalid IOR', tmp.nil?
|
62
|
+
rescue CORBA::INV_OBJREF
|
63
|
+
tmp = nil
|
64
|
+
end
|
61
65
|
|
62
66
|
assert 'No Nil object reference returned on #_narrow of nil', CORBA.is_nil(Test::Hello._narrow(tmp))
|
63
67
|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r2corba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Corino
|
8
|
+
- Johnny Willemsen
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2020-10-07 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: ridl
|
@@ -16,28 +17,28 @@ dependencies:
|
|
16
17
|
requirements:
|
17
18
|
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
20
|
+
version: '2.8'
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - "~>"
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
27
|
+
version: '2.8'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rake
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
version: 12.3.3
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - "~>"
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
+
version: 12.3.3
|
41
42
|
description: 'OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby.
|
42
43
|
Depends on ridl gem for providing native Ruby IDL compiler. '
|
43
44
|
email: mcorino@remedy.nl
|
@@ -327,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
328
|
- !ruby/object:Gem::Version
|
328
329
|
version: '0'
|
329
330
|
requirements: []
|
330
|
-
rubygems_version: 3.
|
331
|
+
rubygems_version: 3.1.4
|
331
332
|
signing_key:
|
332
333
|
specification_version: 4
|
333
334
|
summary: CORBA language mapping implementation for Ruby
|