r2corba 1.5.5 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/ext/libr2tao/any.cpp +11 -10
  3. data/ext/libr2tao/exception.cpp +6 -8
  4. data/ext/libr2tao/exception.h +1 -1
  5. data/ext/libr2tao/longdouble.cpp +5 -9
  6. data/ext/libr2tao/object.cpp +33 -49
  7. data/ext/libr2tao/orb.cpp +38 -65
  8. data/ext/libr2tao/r2tao_ext.h +8 -7
  9. data/ext/libr2tao/required.cpp +1 -6
  10. data/ext/libr2tao/required.h +9 -23
  11. data/ext/libr2tao/values.cpp +92 -93
  12. data/ext/libr2tao/values.h +28 -30
  13. data/ext/librpoa/iortable.cpp +3 -4
  14. data/ext/librpoa/poa.cpp +22 -25
  15. data/ext/librpoa/servant.cpp +24 -23
  16. data/ext/librpoa/servant.h +10 -10
  17. data/lib/corba.rb +1 -1
  18. data/lib/corba/cbase/ORB.rb +19 -16
  19. data/lib/corba/cbase/Request.rb +3 -3
  20. data/lib/corba/cbase/Values.rb +4 -2
  21. data/lib/corba/cbase/exception.rb +4 -2
  22. data/lib/corba/cbase/poa.rb +1 -1
  23. data/lib/corba/cbase/policies.rb +1 -1
  24. data/lib/corba/cbase/require.rb +8 -1
  25. data/lib/corba/common/Any.rb +2 -1
  26. data/lib/corba/common/IDL.rb +1 -1
  27. data/lib/corba/common/ORB.rb +21 -21
  28. data/lib/corba/common/Object.rb +14 -13
  29. data/lib/corba/common/Servant.rb +4 -4
  30. data/lib/corba/common/Stub.rb +6 -6
  31. data/lib/corba/common/Typecode.rb +35 -8
  32. data/lib/corba/common/Union.rb +5 -0
  33. data/lib/corba/common/Values.rb +1 -0
  34. data/lib/corba/common/const.rb +1 -1
  35. data/lib/corba/common/exception.rb +2 -1
  36. data/lib/corba/common/version.rb +2 -2
  37. data/lib/corba/idl/IDL.rb +1 -1
  38. data/lib/corba/jbase/Any.rb +6 -4
  39. data/lib/corba/jbase/ORB.rb +2 -2
  40. data/lib/corba/jbase/Object.rb +13 -13
  41. data/lib/corba/jbase/Request.rb +3 -3
  42. data/lib/corba/jbase/Streams.rb +64 -0
  43. data/lib/corba/jbase/Typecode.rb +3 -2
  44. data/lib/corba/jbase/Values.rb +2 -0
  45. data/lib/corba/jbase/exception.rb +1 -0
  46. data/lib/corba/jbase/poa.rb +18 -18
  47. data/lib/corba/jbase/policies.rb +29 -29
  48. data/lib/corba/jbase/require.rb +4 -0
  49. data/lib/corba/svcs/ins/cos_naming.rb +10 -1
  50. data/lib/corba/svcs/ins/ins.rb +45 -45
  51. data/lib/corba/svcs/ins/naming_service.rb +6 -6
  52. data/lib/ridlbe/ruby/config.rb +27 -20
  53. data/lib/ridlbe/ruby/walker.rb +276 -253
  54. data/mkrf_conf_srcgem.rb +2 -2
  55. data/rakelib/build.rake +1 -1
  56. data/rakelib/config.rake +1 -1
  57. data/rakelib/config.rb +9 -9
  58. data/rakelib/ext.rake +6 -65
  59. data/rakelib/ext_r2tao.rb +2 -39
  60. data/rakelib/gem.rake +20 -20
  61. data/rakelib/gem.rb +1 -1
  62. data/rakelib/package.rake +1 -1
  63. data/test/BiDirectional/client.rb +16 -16
  64. data/test/BiDirectional/run_test.rb +10 -10
  65. data/test/BiDirectional/server.rb +20 -20
  66. data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
  67. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
  68. data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
  69. data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
  70. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
  71. data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
  72. data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
  73. data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
  74. data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
  75. data/test/Collocation/run_test.rb +10 -10
  76. data/test/Collocation/test.rb +26 -19
  77. data/test/Connect_Timeout/client.rb +15 -15
  78. data/test/Connect_Timeout/run_test.rb +10 -10
  79. data/test/DII/client.rb +27 -27
  80. data/test/DII/run_test.rb +10 -10
  81. data/test/DII/server.rb +15 -15
  82. data/test/DSI/client.rb +15 -15
  83. data/test/DSI/run_test.rb +10 -10
  84. data/test/DSI/server.rb +16 -16
  85. data/test/Exceptions/client.rb +19 -19
  86. data/test/Exceptions/run_test.rb +10 -10
  87. data/test/Exceptions/server.rb +15 -15
  88. data/test/Hello/client.rb +15 -15
  89. data/test/Hello/run_test.rb +10 -10
  90. data/test/Hello/server.rb +16 -16
  91. data/test/IDL_Test/client.rb +20 -20
  92. data/test/IDL_Test/run_test.rb +10 -10
  93. data/test/IDL_Test/server.rb +18 -18
  94. data/test/IORMap/client.rb +14 -14
  95. data/test/IORMap/run_test.rb +10 -10
  96. data/test/IORMap/server.rb +22 -22
  97. data/test/IORTable/client.rb +14 -14
  98. data/test/IORTable/run_test.rb +10 -10
  99. data/test/IORTable/server.rb +22 -22
  100. data/test/Implicit_Conversion/client.rb +19 -16
  101. data/test/Implicit_Conversion/run_test.rb +10 -10
  102. data/test/Implicit_Conversion/server.rb +15 -15
  103. data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
  104. data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
  105. data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
  106. data/test/Multi_Threading/Simple/client.rb +15 -15
  107. data/test/Multi_Threading/Simple/run_test.rb +10 -10
  108. data/test/Multi_Threading/Simple/server.rb +15 -15
  109. data/test/Multi_Threading/Threads/client.rb +15 -15
  110. data/test/Multi_Threading/Threads/run_test.rb +10 -10
  111. data/test/Multi_Threading/Threads/server.rb +17 -17
  112. data/test/Multi_Threading/Threads/watchdog.rb +15 -15
  113. data/test/Multiple_Servant_Interfaces/client.rb +13 -13
  114. data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
  115. data/test/Multiple_Servant_Interfaces/server.rb +17 -17
  116. data/test/Nil/run_test.rb +10 -10
  117. data/test/Nil/test.rb +13 -13
  118. data/test/OBV/AbstractInterface/client.rb +13 -13
  119. data/test/OBV/AbstractInterface/run_test.rb +10 -10
  120. data/test/OBV/AbstractInterface/server.rb +19 -18
  121. data/test/OBV/Custom/OBV_impl.rb +2 -0
  122. data/test/OBV/Custom/client.rb +13 -13
  123. data/test/OBV/Custom/run_test.rb +10 -10
  124. data/test/OBV/Custom/server.rb +15 -15
  125. data/test/OBV/Simple/OBV_impl.rb +1 -0
  126. data/test/OBV/Simple/client.rb +13 -13
  127. data/test/OBV/Simple/run_test.rb +10 -10
  128. data/test/OBV/Simple/server.rb +15 -15
  129. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  130. data/test/OBV/Simple_Event/client.rb +13 -13
  131. data/test/OBV/Simple_Event/run_test.rb +10 -10
  132. data/test/OBV/Simple_Event/server.rb +15 -15
  133. data/test/OBV/Supports/client.rb +18 -18
  134. data/test/OBV/Supports/run_test.rb +10 -10
  135. data/test/OBV/Supports/server.rb +14 -14
  136. data/test/OBV/Supports/supports_impl.rb +3 -0
  137. data/test/OBV/Tree/client.rb +13 -13
  138. data/test/OBV/Tree/run_test.rb +10 -10
  139. data/test/OBV/Tree/server.rb +18 -18
  140. data/test/OBV/Truncatable/client.rb +56 -56
  141. data/test/OBV/Truncatable/run_test.rb +10 -10
  142. data/test/OBV/Truncatable/server.rb +14 -14
  143. data/test/OBV/ValueBox/client.rb +148 -147
  144. data/test/OBV/ValueBox/run_test.rb +10 -10
  145. data/test/OBV/ValueBox/server.rb +15 -15
  146. data/test/Object/client.rb +13 -13
  147. data/test/Object/run_test.rb +10 -10
  148. data/test/Object/server.rb +18 -18
  149. data/test/POA/run_test.rb +10 -10
  150. data/test/POA/test.rb +15 -15
  151. data/test/Param_Test/client.rb +47 -47
  152. data/test/Param_Test/run_test.rb +10 -10
  153. data/test/Param_Test/server.rb +55 -55
  154. data/test/Performance/Simple/client.rb +15 -15
  155. data/test/Performance/Simple/run_test.rb +10 -10
  156. data/test/Performance/Simple/server.rb +15 -15
  157. data/test/Policies/run_test.rb +10 -10
  158. data/test/Policies/test.rb +23 -23
  159. data/test/Timeout/client.rb +17 -17
  160. data/test/Timeout/run_test.rb +10 -10
  161. data/test/Timeout/server.rb +18 -18
  162. data/test/lib/test.rb +13 -7
  163. data/test/test_runner.rb +19 -19
  164. metadata +4 -5
  165. data/ext/extload/extload.c +0 -59
@@ -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.",
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
30
  "Default: 'file://ins.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 }
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
@@ -51,7 +51,7 @@ else
51
51
  end
52
52
  require 'corba/naming'
53
53
 
54
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
54
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
55
55
 
56
56
  begin
57
57
 
@@ -60,7 +60,7 @@ begin
60
60
 
61
61
  nc = CosNaming::NamingContextExt._narrow(obj)
62
62
 
63
- assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
63
+ assert_not 'ERROR: INS IOR resolved to nil object!', CORBA::is_nil(nc)
64
64
 
65
65
  # retrieve object reference for servant from Naming service
66
66
  name = [CosNaming::NameComponent.new('Hello', 'ior')]
@@ -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
@@ -42,7 +42,7 @@ include TestUtil
42
42
 
43
43
  def do_exit(rc)
44
44
  ins_stop = Test.new
45
- ins_stop.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", "-- stop --no-daemon")
45
+ ins_stop.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", '-- stop --no-daemon')
46
46
  ins_stop.wait(50)
47
47
  exit(rc)
48
48
  end
@@ -53,7 +53,7 @@ TestUtil.remove_file(ior_file)
53
53
 
54
54
  ins = Test.new
55
55
 
56
- exit(255) if !ins.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", "-- start")
56
+ exit(255) if !ins.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", '-- start')
57
57
 
58
58
  do_exit(255) if !TestUtil.wait_for_file(ior_file, 400)
59
59
 
@@ -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 INS IOR filename.",
28
+ opts.on('--k IORFILE',
29
+ 'Set INS IOR filename.',
30
30
  "Default: 'file://ins.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 }
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
@@ -57,23 +57,23 @@ class MyHello < POA::Test::Hello
57
57
  end
58
58
 
59
59
  def get_string()
60
- "Hello there!"
60
+ 'Hello there!'
61
61
  end
62
62
 
63
63
  def shutdown()
64
64
  @orb.shutdown()
65
65
  end
66
- end #of servant MyHello
66
+ end # of servant MyHello
67
67
 
68
68
  # initialize ORB
69
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
69
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
70
70
 
71
71
  # resolve NamingContext
72
72
  obj = orb.string_to_object(OPTIONS[:iorfile])
73
73
 
74
74
  nc = CosNaming::NamingContextExt._narrow(obj)
75
75
 
76
- assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
76
+ assert_not 'ERROR: INS IOR resolved to nil object!', CORBA::is_nil(nc)
77
77
 
78
78
  # initialize POA
79
79
  obj = orb.resolve_initial_references('RootPOA')
@@ -96,7 +96,7 @@ nc.bind(name, hello_obj)
96
96
 
97
97
  # initialize signal handling
98
98
  Signal.trap('INT') do
99
- puts "SIGINT - shutting down ORB..."
99
+ puts 'SIGINT - shutting down ORB...'
100
100
  orb.shutdown()
101
101
  end
102
102
 
@@ -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
@@ -36,19 +36,19 @@ ARGV.options do |opts|
36
36
  script_name = File.basename($0)
37
37
  opts.banner = "Usage: ruby #{script_name} [options]"
38
38
 
39
- opts.separator ""
39
+ opts.separator ''
40
40
 
41
- opts.on("--d LVL",
42
- "Set ORBDebugLevel value.",
43
- "Default: 0") { |dlvl| ORB_ARG << "-ORBDebugLevel" << dlvl }
44
- opts.on("--use-implement",
45
- "Load IDL through CORBA.implement() instead of precompiled code.",
46
- "Default: off") { |v| OPTIONS[:use_implement] = v }
41
+ opts.on('--d LVL',
42
+ 'Set ORBDebugLevel value.',
43
+ 'Default: 0') { |dlvl| ORB_ARG << '-ORBDebugLevel' << dlvl }
44
+ opts.on('--use-implement',
45
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
46
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
47
47
 
48
- opts.separator ""
48
+ opts.separator ''
49
49
 
50
- opts.on("-h", "--help",
51
- "Show this help message.") { puts opts; exit }
50
+ opts.on('-h', '--help',
51
+ 'Show this help message.') { puts opts; exit }
52
52
 
53
53
  opts.parse!
54
54
  end
@@ -63,26 +63,29 @@ end
63
63
 
64
64
  class Top < POA::Diamond::Top
65
65
  def shape
66
- "a point."
66
+ 'a point.'
67
67
  end
68
68
  end
69
69
 
70
70
  class Left < POA::Diamond::Left
71
71
  def shape
72
- "the left line"
72
+ 'the left line'
73
73
  end
74
+
74
75
  def color
75
- "black"
76
+ 'black'
76
77
  end
77
78
  end
78
79
 
79
80
  class Right < POA::Diamond::Right
80
81
  def shape
81
- "the right line"
82
+ 'the right line'
82
83
  end
84
+
83
85
  def color
84
- "red"
86
+ 'red'
85
87
  end
88
+
86
89
  def width
87
90
  0
88
91
  end
@@ -90,17 +93,21 @@ end
90
93
 
91
94
  class Buttom < POA::Diamond::Buttom
92
95
  def shape
93
- "a diamond"
96
+ 'a diamond'
94
97
  end
98
+
95
99
  def color
96
- "translucent"
100
+ 'translucent'
97
101
  end
102
+
98
103
  def name
99
- "Jubilee"
104
+ 'Jubilee'
100
105
  end
106
+
101
107
  def width
102
108
  100
103
109
  end
110
+
104
111
  def area(unit)
105
112
  case unit
106
113
  when Diamond::Buttom::MM
@@ -125,7 +132,7 @@ class Collocation_Test
125
132
  end
126
133
 
127
134
  def init(args = [])
128
- @orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
135
+ @orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
129
136
 
130
137
  obj = @orb.resolve_initial_references('RootPOA')
131
138
 
@@ -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 IOR",
29
- "Set IOR.",
28
+ opts.on('--k IOR',
29
+ 'Set IOR.',
30
30
  "Default: 'corbaloc:iiop:192.3.47/10007/RandomObject'") { |v| OPTIONS[:ior] = 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 }
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
@@ -63,7 +63,7 @@ def test_timeout(object)
63
63
  # First connection happens here..
64
64
  hello = Test::Hello._narrow(object)
65
65
 
66
- assert_not "Nil Test::Hello reference", CORBA::is_nil(hello)
66
+ assert_not 'Nil Test::Hello reference', CORBA::is_nil(hello)
67
67
 
68
68
  the_string = hello.get_string()
69
69
 
@@ -85,12 +85,12 @@ def test_timeout(object)
85
85
  end
86
86
 
87
87
 
88
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
88
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
89
89
 
90
90
  begin
91
91
  tmp = orb.string_to_object(OPTIONS[:ior])
92
92
 
93
- object = orb.resolve_initial_references("PolicyCurrent")
93
+ object = orb.resolve_initial_references('PolicyCurrent')
94
94
 
95
95
  policy_current = CORBA::PolicyCurrent::_narrow(object)
96
96
 
@@ -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
data/test/DII/client.rb CHANGED
@@ -23,39 +23,39 @@ 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.",
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
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 }
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
45
45
 
46
46
  require 'corba'
47
47
 
48
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
48
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
49
49
 
50
50
  begin
51
51
 
52
52
  obj = orb.string_to_object(OPTIONS[:iorfile])
53
53
 
54
- puts "***** Synchronous twoway DII"
55
- req = obj._request("echo")
54
+ puts '***** Synchronous twoway DII'
55
+ req = obj._request('echo')
56
56
  req.arguments = [
57
- ['method', CORBA::ARG_IN, CORBA::_tc_string, "sync twoway"],
58
- ['message', CORBA::ARG_IN, CORBA::_tc_string, "Hello world!"]
57
+ ['method', CORBA::ARG_IN, CORBA::_tc_string, 'sync twoway'],
58
+ ['message', CORBA::ARG_IN, CORBA::_tc_string, 'Hello world!']
59
59
  ]
60
60
  req.set_return_type(CORBA::_tc_string)
61
61
 
@@ -64,11 +64,11 @@ begin
64
64
  puts "string returned <#{the_string}>"
65
65
  puts
66
66
 
67
- puts "***** Deferred twoway DII (using get_response())"
68
- req = obj._request("echo")
67
+ puts '***** Deferred twoway DII (using get_response())'
68
+ req = obj._request('echo')
69
69
  req.arguments = [
70
- ['method', CORBA::ARG_IN, CORBA::_tc_string, "deferred twoway (1)"],
71
- ['message', CORBA::ARG_IN, CORBA::_tc_string, "Hello world!"]
70
+ ['method', CORBA::ARG_IN, CORBA::_tc_string, 'deferred twoway (1)'],
71
+ ['message', CORBA::ARG_IN, CORBA::_tc_string, 'Hello world!']
72
72
  ]
73
73
  req.set_return_type(CORBA::_tc_string)
74
74
 
@@ -84,11 +84,11 @@ begin
84
84
  (TAO::MAJOR_VERSION == 1 &&
85
85
  (TAO::MINOR_VERSION > 5 ||
86
86
  (TAO::MINOR_VERSION == 5 && TAO::MICRO_VERSION > 9)))
87
- puts "***** Deferred twoway DII (using poll_response())"
88
- req = obj._request("echo")
87
+ puts '***** Deferred twoway DII (using poll_response())'
88
+ req = obj._request('echo')
89
89
  req.arguments = [
90
- ['method', CORBA::ARG_IN, CORBA::_tc_string, "deferred twoway (2)"],
91
- ['message', CORBA::ARG_IN, CORBA::_tc_string, "Hello world!"]
90
+ ['method', CORBA::ARG_IN, CORBA::_tc_string, 'deferred twoway (2)'],
91
+ ['message', CORBA::ARG_IN, CORBA::_tc_string, 'Hello world!']
92
92
  ]
93
93
  req.set_return_type(CORBA::_tc_string)
94
94
 
@@ -103,8 +103,8 @@ begin
103
103
  puts
104
104
  end
105
105
 
106
- puts "***** Oneway shutdown"
107
- req = obj._request("shutdown")
106
+ puts '***** Oneway shutdown'
107
+ req = obj._request('shutdown')
108
108
  req.send_oneway()
109
109
 
110
110
  ensure