r2corba 1.5.4 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -1
  3. data/ext/extload/extload.c +5 -6
  4. data/ext/libr2tao/object.cpp +4 -4
  5. data/ext/libr2tao/orb.cpp +8 -8
  6. data/ext/libr2tao/r2tao_ext.h +0 -12
  7. data/ext/libr2tao/required.cpp +2 -2
  8. data/ext/libr2tao/required.h +9 -11
  9. data/ext/libr2tao/values.cpp +5 -5
  10. data/ext/libr2tao/values.h +19 -19
  11. data/ext/librpoa/iortable.cpp +3 -3
  12. data/ext/librpoa/poa.cpp +7 -7
  13. data/ext/librpoa/servant.cpp +15 -90
  14. data/ext/librpoa/servant.h +13 -35
  15. data/lib/corba/cbase/ORB.rb +7 -7
  16. data/lib/corba/cbase/Streams.rb +2 -2
  17. data/lib/corba/cbase/Typecode.rb +6 -6
  18. data/lib/corba/cbase/exception.rb +2 -2
  19. data/lib/corba/cbase/policies.rb +1 -1
  20. data/lib/corba/cmds/base.rb +1 -1
  21. data/lib/corba/common/Any.rb +1 -1
  22. data/lib/corba/common/ORB.rb +1 -1
  23. data/lib/corba/common/Object.rb +0 -1
  24. data/lib/corba/common/Stub.rb +1 -1
  25. data/lib/corba/common/Typecode.rb +34 -34
  26. data/lib/corba/common/const.rb +2 -2
  27. data/lib/corba/common/version.rb +1 -1
  28. data/lib/corba/jbase/Any.rb +23 -23
  29. data/lib/corba/jbase/ORB.rb +3 -3
  30. data/lib/corba/jbase/Request.rb +5 -5
  31. data/lib/corba/jbase/Servant.rb +10 -10
  32. data/lib/corba/jbase/ServerRequest.rb +7 -7
  33. data/lib/corba/jbase/Streams.rb +3 -3
  34. data/lib/corba/jbase/Typecode.rb +14 -14
  35. data/lib/corba/jbase/exception.rb +1 -1
  36. data/lib/corba/jbase/poa.rb +2 -2
  37. data/lib/corba/jbase/policies.rb +3 -3
  38. data/lib/corba/poa.rb +1 -1
  39. data/lib/corba/policies.rb +1 -1
  40. data/lib/corba/require.rb +2 -2
  41. data/lib/corba/svcs/ins/cos_naming.rb +27 -27
  42. data/lib/corba/svcs/ins/ins.rb +17 -17
  43. data/lib/corba/svcs/ins/naming_service.rb +2 -2
  44. data/lib/ridlbe/ruby/config.rb +10 -10
  45. data/lib/ridlbe/ruby/walker.rb +21 -21
  46. data/mkrf_conf_srcgem.rb +5 -5
  47. data/rakelib/bin.rake +1 -1
  48. data/rakelib/bin.rb +3 -3
  49. data/rakelib/build.rake +15 -15
  50. data/rakelib/config.rb +13 -13
  51. data/rakelib/ext.rake +3 -5
  52. data/rakelib/ext.rb +13 -13
  53. data/rakelib/ext_r2tao.rb +12 -18
  54. data/rakelib/gem.rake +5 -5
  55. data/rakelib/gem.rb +5 -5
  56. data/test/BiDirectional/client.rb +3 -3
  57. data/test/BiDirectional/run_test.rb +1 -1
  58. data/test/BiDirectional/server.rb +4 -5
  59. data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -5
  60. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -1
  61. data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -4
  62. data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -3
  63. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -1
  64. data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -10
  65. data/test/CORBA_Services/Naming/Simple/client.rb +4 -4
  66. data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -1
  67. data/test/CORBA_Services/Naming/Simple/server.rb +4 -4
  68. data/test/Collocation/test.rb +2 -2
  69. data/test/Connect_Timeout/client.rb +3 -4
  70. data/test/DII/client.rb +5 -5
  71. data/test/DII/run_test.rb +1 -1
  72. data/test/DII/server.rb +3 -3
  73. data/test/DSI/client.rb +3 -3
  74. data/test/DSI/run_test.rb +1 -1
  75. data/test/DSI/server.rb +3 -3
  76. data/test/Exceptions/client.rb +4 -4
  77. data/test/Exceptions/run_test.rb +1 -1
  78. data/test/Exceptions/server.rb +3 -3
  79. data/test/Hello/client.rb +3 -3
  80. data/test/Hello/run_test.rb +1 -1
  81. data/test/Hello/server.rb +3 -3
  82. data/test/IDL_Test/client.rb +3 -3
  83. data/test/IDL_Test/run_test.rb +1 -1
  84. data/test/IDL_Test/server.rb +3 -3
  85. data/test/IORMap/client.rb +3 -3
  86. data/test/IORMap/run_test.rb +1 -1
  87. data/test/IORMap/server.rb +4 -4
  88. data/test/IORTable/client.rb +3 -3
  89. data/test/IORTable/run_test.rb +1 -1
  90. data/test/IORTable/server.rb +4 -4
  91. data/test/Implicit_Conversion/client.rb +4 -4
  92. data/test/Implicit_Conversion/run_test.rb +1 -1
  93. data/test/Implicit_Conversion/server.rb +3 -3
  94. data/test/Multi_Threading/Multiple_ORB/client.rb +3 -3
  95. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
  96. data/test/Multi_Threading/Multiple_ORB/server.rb +3 -3
  97. data/test/Multi_Threading/Simple/client.rb +4 -4
  98. data/test/Multi_Threading/Simple/run_test.rb +1 -1
  99. data/test/Multi_Threading/Simple/server.rb +3 -3
  100. data/test/Multi_Threading/Threads/client.rb +3 -3
  101. data/test/Multi_Threading/Threads/run_test.rb +1 -1
  102. data/test/Multi_Threading/Threads/server.rb +4 -4
  103. data/test/Multi_Threading/Threads/watchdog.rb +3 -3
  104. data/test/Multiple_Servant_Interfaces/client.rb +3 -3
  105. data/test/Multiple_Servant_Interfaces/run_test.rb +1 -1
  106. data/test/Multiple_Servant_Interfaces/server.rb +3 -3
  107. data/test/Nil/test.rb +3 -4
  108. data/test/OBV/AbstractInterface/client.rb +3 -3
  109. data/test/OBV/AbstractInterface/run_test.rb +1 -1
  110. data/test/OBV/AbstractInterface/server.rb +3 -3
  111. data/test/OBV/Custom/client.rb +3 -3
  112. data/test/OBV/Custom/run_test.rb +1 -1
  113. data/test/OBV/Custom/server.rb +3 -3
  114. data/test/OBV/Simple/client.rb +3 -3
  115. data/test/OBV/Simple/run_test.rb +1 -1
  116. data/test/OBV/Simple/server.rb +3 -3
  117. data/test/OBV/Simple_Event/client.rb +3 -3
  118. data/test/OBV/Simple_Event/run_test.rb +1 -1
  119. data/test/OBV/Simple_Event/server.rb +3 -3
  120. data/test/OBV/Supports/client.rb +3 -3
  121. data/test/OBV/Supports/run_test.rb +1 -1
  122. data/test/OBV/Supports/server.rb +3 -3
  123. data/test/OBV/Tree/client.rb +3 -3
  124. data/test/OBV/Tree/run_test.rb +1 -1
  125. data/test/OBV/Tree/server.rb +3 -3
  126. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -1
  127. data/test/OBV/Truncatable/client.rb +4 -4
  128. data/test/OBV/Truncatable/run_test.rb +1 -1
  129. data/test/OBV/Truncatable/server.rb +3 -3
  130. data/test/OBV/ValueBox/client.rb +44 -44
  131. data/test/OBV/ValueBox/run_test.rb +1 -1
  132. data/test/OBV/ValueBox/server.rb +29 -29
  133. data/test/Object/client.rb +4 -4
  134. data/test/Object/run_test.rb +1 -1
  135. data/test/Object/server.rb +3 -3
  136. data/test/POA/test.rb +3 -3
  137. data/test/Param_Test/client.rb +6 -6
  138. data/test/Param_Test/run_test.rb +1 -1
  139. data/test/Param_Test/server.rb +6 -6
  140. data/test/Performance/Simple/client.rb +3 -3
  141. data/test/Performance/Simple/run_test.rb +1 -1
  142. data/test/Performance/Simple/server.rb +3 -3
  143. data/test/Policies/test.rb +2 -3
  144. data/test/Timeout/client.rb +6 -6
  145. data/test/Timeout/run_test.rb +1 -1
  146. data/test/Timeout/server.rb +4 -4
  147. data/test/lib/assert.rb +0 -1
  148. data/test/lib/test.rb +14 -15
  149. data/test/test_runner.rb +5 -6
  150. metadata +4 -6
  151. data/ext/librpoa/srvreq_fix.cpp +0 -282
  152. data/ext/librpoa/srvreq_fix.h +0 -148
@@ -65,7 +65,7 @@ module R2CORBA
65
65
  end
66
66
 
67
67
  begin
68
- File.open(self.pidfile, File::CREAT|File::EXCL|File::WRONLY) do |f|
68
+ File.open(self.pidfile, File::CREAT | File::EXCL | File::WRONLY) do |f|
69
69
  f.write Process.pid
70
70
  end
71
71
  report "INS - PID \##{Process.pid} written to '#{self.pidfile}'"
@@ -217,7 +217,7 @@ module R2CORBA
217
217
  end
218
218
 
219
219
  begin
220
- File.open(self.pidfile, File::CREAT|File::EXCL|File::WRONLY) do |f|
220
+ File.open(self.pidfile, File::CREAT | File::EXCL | File::WRONLY) do |f|
221
221
  f.write Process.pid
222
222
  end
223
223
  report "INS - PID \##{Process.pid} written to '#{self.pidfile}'"
@@ -385,12 +385,12 @@ module R2CORBA
385
385
  def INS.parse_arg
386
386
  script_name = File.basename($0, '.bat')
387
387
  if not script_name =~ /rins/
388
- script_name = "ruby "+$0
388
+ script_name = "ruby " + $0
389
389
  end
390
390
 
391
391
  @@command = ARGV.shift.to_sym unless ARGV.empty?
392
392
  unless COMMANDS.include?(@@command)
393
- STDERR.puts "ERROR: Invalid command [#{command}]!\n"+
393
+ STDERR.puts "ERROR: Invalid command [#{command}]!\n" +
394
394
  "Usage: #{script_name} #{COMMANDS.join('|')} [options]\n"
395
395
  exit 1
396
396
  end
@@ -429,42 +429,42 @@ module R2CORBA
429
429
 
430
430
  opts.on("-i FILE", "--ior=FILE", String,
431
431
  "Specifies filename (incl. path) to write IOR to.",
432
- "Default: ./ins.ior") { |v| OPTIONS[:iorfile]=v }
432
+ "Default: ./ins.ior") { |v| OPTIONS[:iorfile] = v }
433
433
  unless IS_WIN32
434
434
  opts.on("-p DIR", "--pid=DIR", String,
435
435
  "Specifies path to write pidfile to.",
436
- "Default: ./") { |v| OPTIONS[:piddir]=v }
436
+ "Default: ./") { |v| OPTIONS[:piddir] = v }
437
437
  unless IS_JRUBY
438
438
  opts.on("-o DIR", "--output=DIR", String,
439
439
  "Specifies filename to write logfile to.",
440
- "Default: <piddir>") { |v| OPTIONS[:logdir]=v }
440
+ "Default: <piddir>") { |v| OPTIONS[:logdir] = v }
441
441
  end
442
442
  else
443
443
  opts.on("-o DIR", "--output=DIR", String,
444
444
  "Specifies path to write logfile to.",
445
- "Default: ./") { |v| OPTIONS[:logdir]=v }
445
+ "Default: ./") { |v| OPTIONS[:logdir] = v }
446
446
  end
447
447
  opts.on("-l PORTNUM", "--listen=PORTNUM", Integer,
448
448
  "Specifies port number for service endpoint.",
449
- "Default: none") { |v| OPTIONS[:port]=v }
450
- if (IS_JRUBY or R2CORBA::TAO::RUBY_THREAD_SUPPORT)
449
+ "Default: none") { |v| OPTIONS[:port] = v }
450
+ if IS_JRUBY or R2CORBA::TAO::RUBY_THREAD_SUPPORT
451
451
  opts.on("-t THREADNUM", "--threads=THREADNUM", Integer,
452
452
  "Specifies (minimum) number of threads for service.",
453
- "Default: 5") { |v| OPTIONS[:threads]=v }
453
+ "Default: 5") { |v| OPTIONS[:threads] = v }
454
454
  end
455
455
 
456
456
  unless IS_JRUBY || !INS.daemons_installed
457
457
  opts.on("-d", "--daemon",
458
458
  "Run as daemon.",
459
- "Default: off") { |v| OPTIONS[:daemon]=v }
459
+ "Default: off") { |v| OPTIONS[:daemon] = v }
460
460
  end
461
461
  opts.on("-v", "--verbose",
462
462
  "Run verbose.",
463
- "Default: off") { |v| OPTIONS[:verbose]=v }
463
+ "Default: off") { |v| OPTIONS[:verbose] = v }
464
464
 
465
465
  opts.on("--debug=LVL", Integer,
466
466
  "Specifies debug level.",
467
- "Default: 0") { |v| OPTIONS[:debug]=v }
467
+ "Default: 0") { |v| OPTIONS[:debug] = v }
468
468
 
469
469
  opts.separator ""
470
470
 
@@ -483,18 +483,18 @@ module R2CORBA
483
483
  unless IS_WIN32
484
484
  opts.on("-p DIR", "--pid=DIR", String,
485
485
  "Specifies path where pidfile is stored.",
486
- "Default: ./") { |v| OPTIONS[:piddir]=v }
486
+ "Default: ./") { |v| OPTIONS[:piddir] = v }
487
487
  end
488
488
 
489
489
  unless @@command == 'status'
490
490
  OPTIONS[:daemon] = true unless IS_JRUBY || !INS.daemons_installed
491
491
  opts.on("--[no-]daemon",
492
492
  "Do not run in daemon mode.",
493
- "Default: #{OPTIONS[:daemon] ? 'on' : 'off'}") { |v| OPTIONS[:daemon]=v }
493
+ "Default: #{OPTIONS[:daemon] ? 'on' : 'off'}") { |v| OPTIONS[:daemon] = v }
494
494
  end
495
495
  opts.on("-v", "--verbose",
496
496
  "Run verbose.",
497
- "Default: off") { |v| OPTIONS[:verbose]=v }
497
+ "Default: off") { |v| OPTIONS[:verbose] = v }
498
498
 
499
499
  opts.separator ""
500
500
 
@@ -35,7 +35,7 @@ module R2CORBA
35
35
  #
36
36
  if defined?(JRUBY_VERSION)
37
37
  @options[:orbprop]['jacorb.poa.thread_pool_min'] = @options[:threads]
38
- @options[:orbprop]['jacorb.poa.thread_pool_max'] = @options[:threads]*4
38
+ @options[:orbprop]['jacorb.poa.thread_pool_max'] = @options[:threads] * 4
39
39
  if @options[:debug] > 0
40
40
  @options[:orbprop]['jacorb.log.default.verbosity'] = case
41
41
  when @options[:debug] < 2
@@ -93,7 +93,7 @@ module R2CORBA
93
93
 
94
94
  def run
95
95
  STDERR.puts "INS - starting service run" if @options[:verbose]
96
- if (defined?(JRUBY_VERSION) or !R2CORBA::TAO::RUBY_THREAD_SUPPORT)
96
+ if defined?(JRUBY_VERSION) or !R2CORBA::TAO::RUBY_THREAD_SUPPORT
97
97
  STDERR.puts "INS - running ORB" if @options[:verbose]
98
98
  @orb.run
99
99
  else
@@ -31,7 +31,7 @@ module IDL
31
31
  private
32
32
  def RIDL.merge_params(params)
33
33
  opts = IDL::OPTIONS.dup
34
- params.each do |k,v|
34
+ params.each do |k, v|
35
35
  case opts[k]
36
36
  when Array
37
37
  opts[k] = opts[k] + (Array === v ? v : [v])
@@ -50,7 +50,7 @@ module IDL
50
50
  parser.parse(src)
51
51
  s = ::IDL::StrOStream.new
52
52
  s.clear
53
- IDL::Ruby.process_input(parser,params,s)
53
+ IDL::Ruby.process_input(parser, params, s)
54
54
  s
55
55
  end
56
56
  def RIDL.parse(src, params)
@@ -194,7 +194,7 @@ module IDL
194
194
  # in options - initialized option hash
195
195
  #
196
196
  becfg.on_process_input do |parser, options|
197
- IDL::Ruby.process_input(parser,options)
197
+ IDL::Ruby.process_input(parser, options)
198
198
  end # becfg.on_process_input
199
199
 
200
200
  end # Backend.configure
@@ -205,7 +205,7 @@ module IDL
205
205
 
206
206
  # determine output file path for client stub code
207
207
  unless fixed_output || options[:idlfile].nil?
208
- options[:output] = options[:outputdir]+'/'+File.basename(options[:idlfile], '.idl')+options[:stub_pfx]+'.rb'
208
+ options[:output] = options[:outputdir] + '/' + File.basename(options[:idlfile], '.idl') + options[:stub_pfx] + '.rb'
209
209
  end
210
210
  # generate client stubs if requested
211
211
  if options[:client_stubs]
@@ -231,7 +231,7 @@ module IDL
231
231
  options[:srv_output] = if fixed_output
232
232
  options[:output]
233
233
  else
234
- options[:outputdir]+'/'+File.basename(options[:idlfile], '.idl')+options[:srv_pfx]+'.rb'
234
+ options[:outputdir] + '/' + File.basename(options[:idlfile], '.idl') + options[:srv_pfx] + '.rb'
235
235
  end
236
236
  if fixed_output && options[:client_stubs]
237
237
  co
@@ -282,13 +282,13 @@ module IDL
282
282
  IDL::AST::Member,
283
283
  IDL::AST::UnionMember
284
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)
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
287
  else
288
288
  # class/module names
289
- ret = ret[0,1].upcase + ret[1,ret.size].to_s
289
+ ret = ret[0, 1].upcase + ret[1, ret.size].to_s
290
290
  is_scoped = @enclosure && !@enclosure.scopes.empty?
291
- ret = 'R_'+ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
291
+ ret = 'R_' + ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
292
292
  end
293
293
  @lm_name = ret
294
294
  end
@@ -319,7 +319,7 @@ module IDL
319
319
 
320
320
  def chk_identifier(ident)
321
321
  # prefix Ruby keywords with 'r_'
322
- RUBYKW.include?(ident.to_sym) ? 'r_'+ident : ident
322
+ RUBYKW.include?(ident.to_sym) ? 'r_' + ident : ident
323
323
  end
324
324
 
325
325
  end # module ScannerMixin
@@ -79,7 +79,7 @@ module IDL
79
79
  end
80
80
 
81
81
  def visit_include(node)
82
- printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/,@params[:stub_pfx])))
82
+ printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/, @params[:stub_pfx])))
83
83
  println()
84
84
  end
85
85
 
@@ -133,7 +133,7 @@ module IDL
133
133
  println()
134
134
  @nest += 1
135
135
 
136
- if node.bases.size>0
136
+ if node.bases.size > 0
137
137
  node.bases.each do |n|
138
138
  printiln("include #{n.scoped_rubyname}")
139
139
  end
@@ -146,7 +146,7 @@ module IDL
146
146
  println(",")
147
147
  printi(" 'IDL:omg.org/CORBA/AbstractBase:1.0'")
148
148
  end
149
- if node.bases.size>0
149
+ if node.bases.size > 0
150
150
  node.bases.each do |n|
151
151
  println(",")
152
152
  printi(" #{n.scoped_rubyname}::Id")
@@ -519,7 +519,7 @@ module IDL
519
519
 
520
520
  ## validate data for IN/INOUT args
521
521
  ##
522
- if _parm.size>0
522
+ if _parm.size > 0
523
523
  _parm.each do |p|
524
524
  if p.attribute != IDL::AST::Parameter::OUT
525
525
  printiln("#{p.rubyname} = #{get_typecode(p.idltype)}.validate(#{p.rubyname})")
@@ -536,7 +536,7 @@ module IDL
536
536
  end
537
537
 
538
538
  newln = ""
539
- if _parm.size>0
539
+ if _parm.size > 0
540
540
  println(newln)
541
541
  nest do
542
542
  printi(":arg_list => [")
@@ -565,7 +565,7 @@ module IDL
565
565
  newln = ","
566
566
  end
567
567
 
568
- if node.raises.size>0
568
+ if node.raises.size > 0
569
569
  println(newln)
570
570
  nest {
571
571
  printi(":exc_list => [")
@@ -612,7 +612,7 @@ module IDL
612
612
 
613
613
  printiln("_ret = self._invoke('_get_#{node.name}', {")
614
614
  nest { printi(":result_type => #{get_typecode(node.idltype)}") }
615
- if node.get_raises.size>0
615
+ if node.get_raises.size > 0
616
616
  println(',')
617
617
  nest {
618
618
  printi(":exc_list => [")
@@ -656,7 +656,7 @@ module IDL
656
656
  printiln("['val', CORBA::ARG_IN, #{get_typecode(node.idltype)}, val]],");
657
657
  }
658
658
  printi(":result_type => CORBA._tc_void")
659
- if node.set_raises.size>0
659
+ if node.set_raises.size > 0
660
660
  println(',')
661
661
  printi(":exc_list => [")
662
662
  pfx = ""
@@ -689,7 +689,7 @@ module IDL
689
689
  s = _type.class.name.split("::") # IDL::Type::Octet -> [IDL, Type, Octet]
690
690
  s = s[s.length - 1]
691
691
  s.downcase!
692
- format("CORBA._tc_%s",s)
692
+ format("CORBA._tc_%s", s)
693
693
 
694
694
  when Type::Object
695
695
  "CORBA._tc_Object"
@@ -712,7 +712,7 @@ module IDL
712
712
  scoped_type = _type.node.idltype
713
713
  if scoped_type.is_a?(IDL::Type::Interface) && scoped_type.node.is_forward?()
714
714
  node = scoped_type.node
715
- "(CORBA::TypeCode.typecode_for_id('#{node.repository_id}') || "+
715
+ "(CORBA::TypeCode.typecode_for_id('#{node.repository_id}') || " +
716
716
  "CORBA::TypeCode::ObjectRef.new('#{node.repository_id}', '#{node.rubyname}', #{node.scoped_rubyname}))"
717
717
  else
718
718
  _type.node.scoped_rubyname + '._tc'
@@ -893,7 +893,7 @@ module IDL
893
893
  printiln(format("attr_accessor :%s", m.rubyname))
894
894
  end
895
895
 
896
- if struct_members_.size>0
896
+ if struct_members_.size > 0
897
897
  printiln('def initialize(*param_)')
898
898
  nest {
899
899
  struct_members_.each do |m|
@@ -934,7 +934,7 @@ module IDL
934
934
  printiln(format("@@tc_%s ||= CORBA::TypeCode::Union.new('%s'.freeze, '%s',",
935
935
  node.rubyname, node.repository_id, node.rubyname))
936
936
  printi(" #{get_typecode(node.switchtype)}")
937
- if node.members.size>0
937
+ if node.members.size > 0
938
938
  pfx = " ["
939
939
  node.members.each do |m|
940
940
  m.labels.each do |lbl|
@@ -958,7 +958,7 @@ module IDL
958
958
  printiln("end")
959
959
  printiln("self._tc # register typecode");
960
960
  ix = 0
961
- if node.members.size>0
961
+ if node.members.size > 0
962
962
  node.members.each do |m|
963
963
  printiln(format("def %s; @value; end", m.rubyname))
964
964
  printiln(format("def %s=(val); _set_value(%d, val); end", m.rubyname, ix))
@@ -1123,7 +1123,7 @@ module IDL
1123
1123
  idleval = @params[:idl_eval] || false
1124
1124
  println("require 'corba/poa.rb'") if @params[:libinit]
1125
1125
  if !@params[:expand_includes]
1126
- println("require '"+@params[:idlfile].sub(/\.[^\.]*$/,@params[:stub_pfx])+"'")
1126
+ println("require '" + @params[:idlfile].sub(/\.[^\.]*$/, @params[:stub_pfx]) + "'")
1127
1127
  end
1128
1128
  println()
1129
1129
  printiln("module POA")
@@ -1147,7 +1147,7 @@ module IDL
1147
1147
  end
1148
1148
 
1149
1149
  def visit_include(node)
1150
- printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/,@params[:srv_pfx])))
1150
+ printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/, @params[:srv_pfx])))
1151
1151
  println()
1152
1152
  end
1153
1153
 
@@ -1207,7 +1207,7 @@ module IDL
1207
1207
  printiln("Id = Intf::Id")
1208
1208
  println()
1209
1209
 
1210
- if node.bases.size>0
1210
+ if node.bases.size > 0
1211
1211
  node.bases.each do |n|
1212
1212
  printiln("include_interface(#{n.scoped_rubyname}::Intf)")
1213
1213
  end
@@ -1264,7 +1264,7 @@ module IDL
1264
1264
 
1265
1265
  printi("Operations.store(:#{node.name}, {")
1266
1266
  newln = ""
1267
- if _parm.size>0
1267
+ if _parm.size > 0
1268
1268
  println(newln)
1269
1269
  nest do
1270
1270
  printi(":arg_list => [")
@@ -1289,7 +1289,7 @@ module IDL
1289
1289
  newln = ","
1290
1290
  end
1291
1291
 
1292
- if node.raises.size>0
1292
+ if node.raises.size > 0
1293
1293
  println(newln)
1294
1294
  nest {
1295
1295
  printi(":exc_list => [")
@@ -1339,7 +1339,7 @@ module IDL
1339
1339
  nest {
1340
1340
  nest {
1341
1341
  printiln(":result_type => #{get_typecode(node.idltype)},")
1342
- if node.get_raises.size>0
1342
+ if node.get_raises.size > 0
1343
1343
  printi(":exc_list => [")
1344
1344
  pfx = ""
1345
1345
  nest {
@@ -1374,7 +1374,7 @@ module IDL
1374
1374
  printiln("['val', CORBA::ARG_IN, #{get_typecode(node.idltype)}]],");
1375
1375
  }
1376
1376
  printiln(":result_type => CORBA._tc_void,")
1377
- if node.set_raises.size>0
1377
+ if node.set_raises.size > 0
1378
1378
  printi(":exc_list => [")
1379
1379
  pfx = ""
1380
1380
  nest {
@@ -1414,7 +1414,7 @@ module IDL
1414
1414
  s = _type.class.name.split("::") # IDL::Type::Octet -> [IDL, Type, Octet]
1415
1415
  s = s[s.length - 1]
1416
1416
  s.downcase!
1417
- format("CORBA._tc_%s",s)
1417
+ format("CORBA._tc_%s", s)
1418
1418
 
1419
1419
  when Type::Object
1420
1420
  "CORBA._tc_Object"
data/mkrf_conf_srcgem.rb CHANGED
@@ -33,7 +33,7 @@ require 'optparse'
33
33
 
34
34
  if defined?(JRUBY_VERSION)
35
35
 
36
- usage_text =<<-__EOT
36
+ usage_text = <<-__EOT
37
37
  Make sure you have provided a JACORB_HOME definition pointing at a valid JacORB installation
38
38
  with all required .jar files located at JACORB_HOME\lib. You can do this either by setting
39
39
  the JACORB_HOME environment variable or by providing the --jacorb-home buildflag to the
@@ -51,13 +51,13 @@ __EOT
51
51
 
52
52
  # check for proper JacORB installation
53
53
  if jacorb_home
54
- jar_files = Dir.glob(File.join(jacorb_home, 'lib', 'jacorb.jar'))+
54
+ jar_files = Dir.glob(File.join(jacorb_home, 'lib', 'jacorb.jar')) +
55
55
  Dir.glob(File.join(jacorb_home, 'lib', 'jacorb-services.jar')) +
56
56
  Dir.glob(File.join(jacorb_home, 'lib', 'slf4j*.jar')) +
57
57
  Dir.glob(File.join(jacorb_home, 'lib', 'antlr*.jar'))
58
58
  if jar_files.size == 5
59
59
  # run configure with appropriate settings
60
- puts "Valid JacORB installation found.\n"+
60
+ puts "Valid JacORB installation found.\n" +
61
61
  "Running 'ruby -S rake -- configure --without-jacorb --jacorb-home=#{jacorb_home}'"
62
62
  unless system("ruby -S rake -- configure --without-jacorb --jacorb-home=#{jacorb_home}")
63
63
  puts 'Failed to configure R2CORBA'
@@ -90,7 +90,7 @@ else
90
90
  COMMON_HEADERS.slice!(/./)
91
91
  end
92
92
 
93
- usage_txt =<<-__EOT
93
+ usage_txt = <<-__EOT
94
94
  Please define a valid ACE/TAO build environment either by defining the ACE_ROOT and (optionally)
95
95
  the TAO_ROOT (defaults to ACE_ROOT/TAO) and MPC_ROOT (defaults to ACE_ROOT/MPC) environment
96
96
  variable OR by providing the --aceroot and (optionally) --taoroot and --mpcroot build flags to
@@ -138,7 +138,7 @@ __EOT
138
138
  end
139
139
  inst = Gem::DependencyInstaller.new
140
140
  begin
141
- inst.install "taosource", ">= 6.5.7"
141
+ inst.install "taosource", ">= 7.0.0"
142
142
  rescue
143
143
  $stderr.puts 'Failed to install taosource gem.'
144
144
  exit(1)
data/rakelib/bin.rake CHANGED
@@ -44,7 +44,7 @@ namespace :r2corba do
44
44
  R2CORBA::Bin.binaries.each do |bin|
45
45
  if File.exist?(File.join('bin', bin))
46
46
  content = IO.read(File.join('bin', bin))
47
- rm_f(File.join('bin', bin)) unless content == R2CORBA::Bin.__send__(bin.gsub('.','_').to_sym)
47
+ rm_f(File.join('bin', bin)) unless content == R2CORBA::Bin.__send__(bin.gsub('.', '_').to_sym)
48
48
  end
49
49
  end
50
50
  end
data/rakelib/bin.rb CHANGED
@@ -18,7 +18,7 @@ module R2CORBA
18
18
 
19
19
  def self.ridlc
20
20
  <<_SH_TXT
21
- #!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
21
+ #!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
22
22
  #---------------------------------
23
23
  # This file is generated
24
24
  #---------------------------------
@@ -86,7 +86,7 @@ _BAT_TXT
86
86
 
87
87
  def self.rins
88
88
  <<_SH_TXT
89
- #!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
89
+ #!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
90
90
  #---------------------------------
91
91
  # This file is generated
92
92
  #---------------------------------
@@ -98,7 +98,7 @@ _SH_TXT
98
98
 
99
99
  def self.r2corba
100
100
  <<_SH_TXT
101
- #!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
101
+ #!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
102
102
  #---------------------------------
103
103
  # This file is generated
104
104
  #---------------------------------