r2corba 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -5
  3. data/ext/libr2tao/any.cpp +12 -11
  4. data/ext/libr2tao/exception.cpp +6 -8
  5. data/ext/libr2tao/exception.h +1 -2
  6. data/ext/libr2tao/longdouble.cpp +5 -9
  7. data/ext/libr2tao/object.cpp +37 -53
  8. data/ext/libr2tao/orb.cpp +46 -73
  9. data/ext/libr2tao/r2tao_export.h +1 -1
  10. data/ext/libr2tao/r2tao_ext.h +8 -19
  11. data/ext/libr2tao/required.cpp +4 -28
  12. data/ext/libr2tao/required.h +23 -80
  13. data/ext/libr2tao/values.cpp +97 -98
  14. data/ext/libr2tao/values.h +36 -40
  15. data/ext/librpoa/iortable.cpp +6 -7
  16. data/ext/librpoa/poa.cpp +29 -32
  17. data/ext/librpoa/servant.cpp +39 -113
  18. data/ext/librpoa/servant.h +18 -40
  19. data/lib/corba.rb +1 -1
  20. data/lib/corba/cbase/ORB.rb +26 -23
  21. data/lib/corba/cbase/Request.rb +3 -3
  22. data/lib/corba/cbase/Streams.rb +2 -2
  23. data/lib/corba/cbase/Typecode.rb +6 -6
  24. data/lib/corba/cbase/Values.rb +4 -2
  25. data/lib/corba/cbase/exception.rb +6 -4
  26. data/lib/corba/cbase/poa.rb +1 -1
  27. data/lib/corba/cbase/policies.rb +2 -2
  28. data/lib/corba/cbase/require.rb +8 -1
  29. data/lib/corba/cmds/base.rb +1 -1
  30. data/lib/corba/common/Any.rb +3 -2
  31. data/lib/corba/common/IDL.rb +4 -7
  32. data/lib/corba/common/ORB.rb +22 -22
  33. data/lib/corba/common/Object.rb +14 -14
  34. data/lib/corba/common/Servant.rb +4 -4
  35. data/lib/corba/common/Stub.rb +6 -6
  36. data/lib/corba/common/Typecode.rb +72 -45
  37. data/lib/corba/common/Union.rb +5 -0
  38. data/lib/corba/common/Values.rb +1 -0
  39. data/lib/corba/common/const.rb +2 -2
  40. data/lib/corba/common/exception.rb +2 -1
  41. data/lib/corba/common/require.rb +8 -0
  42. data/lib/corba/common/version.rb +2 -2
  43. data/lib/corba/idl/IDL.rb +1 -1
  44. data/lib/corba/jbase/Any.rb +28 -26
  45. data/lib/corba/jbase/ORB.rb +5 -5
  46. data/lib/corba/jbase/Object.rb +13 -13
  47. data/lib/corba/jbase/Request.rb +8 -8
  48. data/lib/corba/jbase/Servant.rb +10 -10
  49. data/lib/corba/jbase/ServerRequest.rb +7 -7
  50. data/lib/corba/jbase/Streams.rb +67 -3
  51. data/lib/corba/jbase/Typecode.rb +17 -16
  52. data/lib/corba/jbase/Values.rb +2 -0
  53. data/lib/corba/jbase/exception.rb +2 -1
  54. data/lib/corba/jbase/poa.rb +20 -20
  55. data/lib/corba/jbase/policies.rb +32 -32
  56. data/lib/corba/jbase/require.rb +4 -0
  57. data/lib/corba/poa.rb +1 -1
  58. data/lib/corba/policies.rb +1 -1
  59. data/lib/corba/require.rb +2 -2
  60. data/lib/corba/svcs/ins/cos_naming.rb +37 -28
  61. data/lib/corba/svcs/ins/ins.rb +51 -51
  62. data/lib/corba/svcs/ins/naming_service.rb +8 -8
  63. data/lib/ridlbe/ruby/config.rb +78 -72
  64. data/lib/ridlbe/ruby/walker.rb +295 -272
  65. data/mkrf_conf_srcgem.rb +6 -6
  66. data/rakelib/bin.rake +1 -1
  67. data/rakelib/bin.rb +3 -3
  68. data/rakelib/build.rake +16 -16
  69. data/rakelib/config.rake +1 -1
  70. data/rakelib/config.rb +24 -25
  71. data/rakelib/ext.rake +7 -68
  72. data/rakelib/ext.rb +13 -13
  73. data/rakelib/ext_r2tao.rb +11 -54
  74. data/rakelib/gem.rake +40 -24
  75. data/rakelib/gem.rb +6 -6
  76. data/rakelib/package.rake +1 -1
  77. data/test/BiDirectional/client.rb +17 -17
  78. data/test/BiDirectional/run_test.rb +11 -11
  79. data/test/BiDirectional/server.rb +24 -25
  80. data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -17
  81. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -13
  82. data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -19
  83. data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -15
  84. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -13
  85. data/test/CORBA_Services/Naming/Corbaname/server.rb +30 -30
  86. data/test/CORBA_Services/Naming/Simple/client.rb +16 -16
  87. data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -13
  88. data/test/CORBA_Services/Naming/Simple/server.rb +19 -19
  89. data/test/Collocation/run_test.rb +10 -10
  90. data/test/Collocation/test.rb +27 -20
  91. data/test/Connect_Timeout/client.rb +16 -17
  92. data/test/Connect_Timeout/run_test.rb +10 -10
  93. data/test/DII/client.rb +30 -30
  94. data/test/DII/run_test.rb +11 -11
  95. data/test/DII/server.rb +16 -16
  96. data/test/DSI/client.rb +16 -16
  97. data/test/DSI/run_test.rb +11 -11
  98. data/test/DSI/server.rb +17 -17
  99. data/test/Exceptions/client.rb +21 -21
  100. data/test/Exceptions/run_test.rb +11 -11
  101. data/test/Exceptions/server.rb +16 -16
  102. data/test/Hello/client.rb +16 -16
  103. data/test/Hello/run_test.rb +11 -11
  104. data/test/Hello/server.rb +17 -17
  105. data/test/IDL_Test/client.rb +21 -21
  106. data/test/IDL_Test/run_test.rb +11 -11
  107. data/test/IDL_Test/server.rb +19 -19
  108. data/test/IORMap/client.rb +14 -14
  109. data/test/IORMap/run_test.rb +11 -11
  110. data/test/IORMap/server.rb +26 -26
  111. data/test/IORTable/client.rb +14 -14
  112. data/test/IORTable/run_test.rb +11 -11
  113. data/test/IORTable/server.rb +26 -26
  114. data/test/Implicit_Conversion/client.rb +20 -17
  115. data/test/Implicit_Conversion/run_test.rb +11 -11
  116. data/test/Implicit_Conversion/server.rb +16 -16
  117. data/test/Multi_Threading/Multiple_ORB/client.rb +14 -14
  118. data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -12
  119. data/test/Multi_Threading/Multiple_ORB/server.rb +17 -17
  120. data/test/Multi_Threading/Simple/client.rb +17 -17
  121. data/test/Multi_Threading/Simple/run_test.rb +11 -11
  122. data/test/Multi_Threading/Simple/server.rb +16 -16
  123. data/test/Multi_Threading/Threads/client.rb +16 -16
  124. data/test/Multi_Threading/Threads/run_test.rb +11 -11
  125. data/test/Multi_Threading/Threads/server.rb +22 -22
  126. data/test/Multi_Threading/Threads/watchdog.rb +16 -16
  127. data/test/Multiple_Servant_Interfaces/client.rb +14 -14
  128. data/test/Multiple_Servant_Interfaces/run_test.rb +11 -11
  129. data/test/Multiple_Servant_Interfaces/server.rb +18 -18
  130. data/test/Nil/run_test.rb +10 -10
  131. data/test/Nil/test.rb +22 -19
  132. data/test/OBV/AbstractInterface/client.rb +14 -14
  133. data/test/OBV/AbstractInterface/run_test.rb +11 -11
  134. data/test/OBV/AbstractInterface/server.rb +20 -19
  135. data/test/OBV/Custom/OBV_impl.rb +2 -0
  136. data/test/OBV/Custom/client.rb +14 -14
  137. data/test/OBV/Custom/run_test.rb +11 -11
  138. data/test/OBV/Custom/server.rb +16 -16
  139. data/test/OBV/Simple/OBV_impl.rb +1 -0
  140. data/test/OBV/Simple/client.rb +14 -14
  141. data/test/OBV/Simple/run_test.rb +11 -11
  142. data/test/OBV/Simple/server.rb +16 -16
  143. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  144. data/test/OBV/Simple_Event/client.rb +14 -14
  145. data/test/OBV/Simple_Event/run_test.rb +11 -11
  146. data/test/OBV/Simple_Event/server.rb +16 -16
  147. data/test/OBV/Supports/client.rb +19 -19
  148. data/test/OBV/Supports/run_test.rb +11 -11
  149. data/test/OBV/Supports/server.rb +15 -15
  150. data/test/OBV/Supports/supports_impl.rb +3 -0
  151. data/test/OBV/Tree/client.rb +14 -14
  152. data/test/OBV/Tree/run_test.rb +11 -11
  153. data/test/OBV/Tree/server.rb +19 -19
  154. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -1
  155. data/test/OBV/Truncatable/client.rb +57 -57
  156. data/test/OBV/Truncatable/run_test.rb +11 -11
  157. data/test/OBV/Truncatable/server.rb +15 -15
  158. data/test/OBV/ValueBox/client.rb +154 -153
  159. data/test/OBV/ValueBox/run_test.rb +11 -11
  160. data/test/OBV/ValueBox/server.rb +42 -42
  161. data/test/Object/client.rb +15 -15
  162. data/test/Object/run_test.rb +11 -11
  163. data/test/Object/server.rb +19 -19
  164. data/test/POA/run_test.rb +10 -10
  165. data/test/POA/test.rb +16 -16
  166. data/test/Param_Test/client.rb +51 -51
  167. data/test/Param_Test/run_test.rb +11 -11
  168. data/test/Param_Test/server.rb +59 -59
  169. data/test/Performance/Simple/client.rb +16 -16
  170. data/test/Performance/Simple/run_test.rb +11 -11
  171. data/test/Performance/Simple/server.rb +16 -16
  172. data/test/Policies/run_test.rb +10 -10
  173. data/test/Policies/test.rb +23 -24
  174. data/test/Timeout/client.rb +21 -21
  175. data/test/Timeout/run_test.rb +11 -11
  176. data/test/Timeout/server.rb +22 -22
  177. data/test/lib/assert.rb +0 -1
  178. data/test/lib/test.rb +27 -22
  179. data/test/test_runner.rb +20 -21
  180. metadata +11 -13
  181. data/ext/extload/extload.c +0 -60
  182. data/ext/librpoa/srvreq_fix.cpp +0 -282
  183. data/ext/librpoa/srvreq_fix.h +0 -148
@@ -20,19 +20,19 @@ ARGV.options do |opts|
20
20
  script_name = File.basename($0)
21
21
  opts.banner = "Usage: ruby #{script_name} [options]"
22
22
 
23
- opts.separator ""
23
+ opts.separator ''
24
24
 
25
- opts.on("-d",
26
- "Run with debugging output.",
27
- "Default: false") { OPTIONS[:debug_opt] = '--d 10' }
28
- opts.on("--use-stubs",
29
- "Use stubs generated by RIDL.",
30
- "Default: false (uses embedded IDL)") { OPTIONS[:use_implement] = '' }
25
+ opts.on('-d',
26
+ 'Run with debugging output.',
27
+ 'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
28
+ opts.on('--use-stubs',
29
+ 'Use stubs generated by RIDL.',
30
+ 'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
31
31
 
32
- opts.separator ""
32
+ opts.separator ''
33
33
 
34
- opts.on("-h", "--help",
35
- "Show this help message.") { puts opts; exit }
34
+ opts.on('-h', '--help',
35
+ 'Show this help message.') { puts opts; exit }
36
36
 
37
37
  opts.parse!
38
38
  end
@@ -59,7 +59,7 @@ end
59
59
 
60
60
  exrc = clt.wait(400)
61
61
 
62
- if exrc ==0
62
+ if exrc == 0
63
63
  srv.wait(400)
64
64
  else
65
65
  srv.wait_term(400)
@@ -21,22 +21,22 @@ ARGV.options do |opts|
21
21
  script_name = File.basename($0)
22
22
  opts.banner = "Usage: ruby #{script_name} [options]"
23
23
 
24
- opts.separator ""
24
+ opts.separator ''
25
25
 
26
- opts.on("--o IORFILE",
27
- "Set IOR filename.",
28
- "Default: 'server.ior'") { |v| OPTIONS[:iorfile]=v }
29
- opts.on("--d LVL",
30
- "Set ORBDebugLevel value.",
31
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
32
- opts.on("--use-implement",
33
- "Load IDL through CORBA.implement() instead of precompiled code.",
34
- "Default: off") { |v| OPTIONS[:use_implement]=v }
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR filename.',
28
+ "Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
29
+ opts.on('--d LVL',
30
+ 'Set ORBDebugLevel value.',
31
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
32
+ opts.on('--use-implement',
33
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
34
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
35
35
 
36
- opts.separator ""
36
+ opts.separator ''
37
37
 
38
- opts.on("-h", "--help",
39
- "Show this help message.") { puts opts; exit }
38
+ opts.on('-h', '--help',
39
+ 'Show this help message.') { puts opts; exit }
40
40
 
41
41
  opts.parse!
42
42
  end
@@ -62,9 +62,9 @@ class Checkpoint_i < POA::Checkpoint
62
62
  def shutdown()
63
63
  @orb.shutdown()
64
64
  end
65
- end #of servant MyHello
65
+ end # of servant MyHello
66
66
 
67
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
67
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
68
68
 
69
69
  # make sure valuetype factory is registered
70
70
  Event_factory.get_factory(orb)
@@ -88,7 +88,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
88
88
  }
89
89
 
90
90
  Signal.trap('INT') do
91
- puts "SIGINT - shutting down ORB..."
91
+ puts 'SIGINT - shutting down ORB...'
92
92
  orb.shutdown()
93
93
  end
94
94
 
@@ -13,6 +13,7 @@ class Event_impl < Event
13
13
  def initialize(val = nil)
14
14
  self.value_ = val
15
15
  end
16
+
16
17
  def do_print(loc)
17
18
  STDERR.puts("@#{loc} (value #{self.value_})")
18
19
  end
@@ -23,22 +23,22 @@ ARGV.options do |opts|
23
23
  script_name = File.basename($0)
24
24
  opts.banner = "Usage: ruby #{script_name} [options]"
25
25
 
26
- opts.separator ""
26
+ opts.separator ''
27
27
 
28
- opts.on("--k IORFILE",
29
- "Set IOR.",
30
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
31
- opts.on("--d LVL",
32
- "Set ORBDebugLevel value.",
33
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
34
- opts.on("--use-implement",
35
- "Load IDL through CORBA.implement() instead of precompiled code.",
36
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
+ "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
31
+ opts.on('--d LVL',
32
+ 'Set ORBDebugLevel value.',
33
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
34
+ opts.on('--use-implement',
35
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
36
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
37
37
 
38
- opts.separator ""
38
+ opts.separator ''
39
39
 
40
- opts.on("-h", "--help",
41
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
42
42
 
43
43
  opts.parse!
44
44
  end
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  require 'OBV_impl'
54
54
 
55
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
55
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
56
56
 
57
57
  begin
58
58
  # make sure valuetype factory is registered
@@ -20,19 +20,19 @@ ARGV.options do |opts|
20
20
  script_name = File.basename($0)
21
21
  opts.banner = "Usage: ruby #{script_name} [options]"
22
22
 
23
- opts.separator ""
23
+ opts.separator ''
24
24
 
25
- opts.on("-d",
26
- "Run with debugging output.",
27
- "Default: false") { OPTIONS[:debug_opt] = '--d 10' }
28
- opts.on("--use-stubs",
29
- "Use stubs generated by RIDL.",
30
- "Default: false (uses embedded IDL)") { OPTIONS[:use_implement] = '' }
25
+ opts.on('-d',
26
+ 'Run with debugging output.',
27
+ 'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
28
+ opts.on('--use-stubs',
29
+ 'Use stubs generated by RIDL.',
30
+ 'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
31
31
 
32
- opts.separator ""
32
+ opts.separator ''
33
33
 
34
- opts.on("-h", "--help",
35
- "Show this help message.") { puts opts; exit }
34
+ opts.on('-h', '--help',
35
+ 'Show this help message.') { puts opts; exit }
36
36
 
37
37
  opts.parse!
38
38
  end
@@ -59,7 +59,7 @@ end
59
59
 
60
60
  exrc = clt.wait(400)
61
61
 
62
- if exrc ==0
62
+ if exrc == 0
63
63
  srv.wait(400)
64
64
  else
65
65
  srv.wait_term(400)
@@ -21,22 +21,22 @@ ARGV.options do |opts|
21
21
  script_name = File.basename($0)
22
22
  opts.banner = "Usage: ruby #{script_name} [options]"
23
23
 
24
- opts.separator ""
24
+ opts.separator ''
25
25
 
26
- opts.on("--o IORFILE",
27
- "Set IOR filename.",
28
- "Default: 'server.ior'") { |v| OPTIONS[:iorfile]=v }
29
- opts.on("--d LVL",
30
- "Set ORBDebugLevel value.",
31
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
32
- opts.on("--use-implement",
33
- "Load IDL through CORBA.implement() instead of precompiled code.",
34
- "Default: off") { |v| OPTIONS[:use_implement]=v }
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR filename.',
28
+ "Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
29
+ opts.on('--d LVL',
30
+ 'Set ORBDebugLevel value.',
31
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
32
+ opts.on('--use-implement',
33
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
34
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
35
35
 
36
- opts.separator ""
36
+ opts.separator ''
37
37
 
38
- opts.on("-h", "--help",
39
- "Show this help message.") { puts opts; exit }
38
+ opts.on('-h', '--help',
39
+ 'Show this help message.') { puts opts; exit }
40
40
 
41
41
  opts.parse!
42
42
  end
@@ -62,9 +62,9 @@ class Checkpoint_i < POA::Checkpoint
62
62
  def shutdown()
63
63
  @orb.shutdown()
64
64
  end
65
- end #of servant MyHello
65
+ end # of servant MyHello
66
66
 
67
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
67
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
68
68
 
69
69
  # make sure valuetype factory is registered
70
70
  Event_factory.get_factory(orb)
@@ -88,7 +88,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
88
88
  }
89
89
 
90
90
  Signal.trap('INT') do
91
- puts "SIGINT - shutting down ORB..."
91
+ puts 'SIGINT - shutting down ORB...'
92
92
  orb.shutdown()
93
93
  end
94
94
 
@@ -13,6 +13,7 @@ class Event_impl < Event
13
13
  def initialize(val = nil)
14
14
  self.value_ = val
15
15
  end
16
+
16
17
  def do_print(loc)
17
18
  STDERR.puts("@#{loc} (value #{self.value_})")
18
19
  end
@@ -23,22 +23,22 @@ ARGV.options do |opts|
23
23
  script_name = File.basename($0)
24
24
  opts.banner = "Usage: ruby #{script_name} [options]"
25
25
 
26
- opts.separator ""
26
+ opts.separator ''
27
27
 
28
- opts.on("--k IORFILE",
29
- "Set IOR.",
30
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
31
- opts.on("--d LVL",
32
- "Set ORBDebugLevel value.",
33
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
34
- opts.on("--use-implement",
35
- "Load IDL through CORBA.implement() instead of precompiled code.",
36
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
+ "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
31
+ opts.on('--d LVL',
32
+ 'Set ORBDebugLevel value.',
33
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
34
+ opts.on('--use-implement',
35
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
36
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
37
37
 
38
- opts.separator ""
38
+ opts.separator ''
39
39
 
40
- opts.on("-h", "--help",
41
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
42
42
 
43
43
  opts.parse!
44
44
  end
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  require 'Event_impl'
54
54
 
55
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
55
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
56
56
 
57
57
  begin
58
58
  # make sure valuetype factory is registered
@@ -20,19 +20,19 @@ ARGV.options do |opts|
20
20
  script_name = File.basename($0)
21
21
  opts.banner = "Usage: ruby #{script_name} [options]"
22
22
 
23
- opts.separator ""
23
+ opts.separator ''
24
24
 
25
- opts.on("-d",
26
- "Run with debugging output.",
27
- "Default: false") { OPTIONS[:debug_opt] = '--d 10' }
28
- opts.on("--use-stubs",
29
- "Use stubs generated by RIDL.",
30
- "Default: false (uses embedded IDL)") { OPTIONS[:use_implement] = '' }
25
+ opts.on('-d',
26
+ 'Run with debugging output.',
27
+ 'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
28
+ opts.on('--use-stubs',
29
+ 'Use stubs generated by RIDL.',
30
+ 'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
31
31
 
32
- opts.separator ""
32
+ opts.separator ''
33
33
 
34
- opts.on("-h", "--help",
35
- "Show this help message.") { puts opts; exit }
34
+ opts.on('-h', '--help',
35
+ 'Show this help message.') { puts opts; exit }
36
36
 
37
37
  opts.parse!
38
38
  end
@@ -59,7 +59,7 @@ end
59
59
 
60
60
  exrc = clt.wait(400)
61
61
 
62
- if exrc ==0
62
+ if exrc == 0
63
63
  srv.wait(400)
64
64
  else
65
65
  srv.wait_term(400)
@@ -21,22 +21,22 @@ ARGV.options do |opts|
21
21
  script_name = File.basename($0)
22
22
  opts.banner = "Usage: ruby #{script_name} [options]"
23
23
 
24
- opts.separator ""
24
+ opts.separator ''
25
25
 
26
- opts.on("--o IORFILE",
27
- "Set IOR filename.",
28
- "Default: 'server.ior'") { |v| OPTIONS[:iorfile]=v }
29
- opts.on("--d LVL",
30
- "Set ORBDebugLevel value.",
31
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
32
- opts.on("--use-implement",
33
- "Load IDL through CORBA.implement() instead of precompiled code.",
34
- "Default: off") { |v| OPTIONS[:use_implement]=v }
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR filename.',
28
+ "Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
29
+ opts.on('--d LVL',
30
+ 'Set ORBDebugLevel value.',
31
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
32
+ opts.on('--use-implement',
33
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
34
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
35
35
 
36
- opts.separator ""
36
+ opts.separator ''
37
37
 
38
- opts.on("-h", "--help",
39
- "Show this help message.") { puts opts; exit }
38
+ opts.on('-h', '--help',
39
+ 'Show this help message.') { puts opts; exit }
40
40
 
41
41
  opts.parse!
42
42
  end
@@ -62,9 +62,9 @@ class Checkpoint_i < POA::Checkpoint
62
62
  def shutdown()
63
63
  @orb.shutdown()
64
64
  end
65
- end #of servant MyHello
65
+ end # of servant MyHello
66
66
 
67
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
67
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
68
68
 
69
69
  # make sure valuetype factory is registered
70
70
  Event_factory.get_factory(orb)
@@ -88,7 +88,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
88
88
  }
89
89
 
90
90
  Signal.trap('INT') do
91
- puts "SIGINT - shutting down ORB..."
91
+ puts 'SIGINT - shutting down ORB...'
92
92
  orb.shutdown()
93
93
  end
94
94
 
@@ -23,22 +23,22 @@ ARGV.options do |opts|
23
23
  script_name = File.basename($0)
24
24
  opts.banner = "Usage: ruby #{script_name} [options]"
25
25
 
26
- opts.separator ""
26
+ opts.separator ''
27
27
 
28
- opts.on("--k IORFILE",
29
- "Set IOR.",
30
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
31
- opts.on("--d LVL",
32
- "Set ORBDebugLevel value.",
33
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
34
- opts.on("--use-implement",
35
- "Load IDL through CORBA.implement() instead of precompiled code.",
36
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
+ "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
31
+ opts.on('--d LVL',
32
+ 'Set ORBDebugLevel value.',
33
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
34
+ opts.on('--use-implement',
35
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
36
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
37
37
 
38
- opts.separator ""
38
+ opts.separator ''
39
39
 
40
- opts.on("-h", "--help",
41
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
42
42
 
43
43
  opts.parse!
44
44
  end
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  require 'supports_impl'
54
54
 
55
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
55
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
56
56
 
57
57
  begin
58
58
  # make sure valuetype factory is registered
@@ -64,7 +64,7 @@ begin
64
64
 
65
65
  account = Account._narrow(obj)
66
66
 
67
- STDERR.puts "* get start balance"
67
+ STDERR.puts '* get start balance'
68
68
 
69
69
  balance = account.get_balance();
70
70
 
@@ -72,7 +72,7 @@ begin
72
72
 
73
73
  account.print_it()
74
74
 
75
- STDERR.puts "* local deposit"
75
+ STDERR.puts '* local deposit'
76
76
 
77
77
  balance.deposit(10.5)
78
78
 
@@ -80,7 +80,7 @@ begin
80
80
 
81
81
  account.print_it()
82
82
 
83
- STDERR.puts "* remote deposit"
83
+ STDERR.puts '* remote deposit'
84
84
 
85
85
  account.deposit(10.77)
86
86
 
@@ -88,7 +88,7 @@ begin
88
88
 
89
89
  account.print_it()
90
90
 
91
- STDERR.puts "* remote withdrawal"
91
+ STDERR.puts '* remote withdrawal'
92
92
 
93
93
  account.withdraw(3.33)
94
94
 
@@ -96,7 +96,7 @@ begin
96
96
 
97
97
  account.print_it()
98
98
 
99
- STDERR.puts "* update balance"
99
+ STDERR.puts '* update balance'
100
100
 
101
101
  balance = account.get_balance();
102
102