r2corba 1.5.5-x64-mingw32 → 1.6.0-x64-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. checksums.yaml +5 -5
  2. data/lib/corba.rb +1 -1
  3. data/lib/corba/cbase/ORB.rb +19 -16
  4. data/lib/corba/cbase/Request.rb +3 -3
  5. data/lib/corba/cbase/Values.rb +4 -2
  6. data/lib/corba/cbase/exception.rb +4 -2
  7. data/lib/corba/cbase/poa.rb +1 -1
  8. data/lib/corba/cbase/policies.rb +1 -1
  9. data/lib/corba/cbase/require.rb +8 -1
  10. data/lib/corba/common/Any.rb +2 -1
  11. data/lib/corba/common/IDL.rb +1 -1
  12. data/lib/corba/common/ORB.rb +21 -21
  13. data/lib/corba/common/Object.rb +14 -13
  14. data/lib/corba/common/Servant.rb +4 -4
  15. data/lib/corba/common/Stub.rb +6 -6
  16. data/lib/corba/common/Typecode.rb +35 -8
  17. data/lib/corba/common/Union.rb +5 -0
  18. data/lib/corba/common/Values.rb +1 -0
  19. data/lib/corba/common/const.rb +1 -1
  20. data/lib/corba/common/exception.rb +2 -1
  21. data/lib/corba/common/version.rb +2 -2
  22. data/lib/corba/idl/IDL.rb +1 -1
  23. data/lib/corba/jbase/Any.rb +6 -4
  24. data/lib/corba/jbase/ORB.rb +2 -2
  25. data/lib/corba/jbase/Object.rb +13 -13
  26. data/lib/corba/jbase/Request.rb +3 -3
  27. data/lib/corba/jbase/Streams.rb +64 -0
  28. data/lib/corba/jbase/Typecode.rb +3 -2
  29. data/lib/corba/jbase/Values.rb +2 -0
  30. data/lib/corba/jbase/exception.rb +1 -0
  31. data/lib/corba/jbase/poa.rb +18 -18
  32. data/lib/corba/jbase/policies.rb +29 -29
  33. data/lib/corba/jbase/require.rb +4 -0
  34. data/lib/corba/svcs/ins/cos_naming.rb +10 -1
  35. data/lib/corba/svcs/ins/ins.rb +45 -45
  36. data/lib/corba/svcs/ins/naming_service.rb +6 -6
  37. data/lib/ridlbe/ruby/config.rb +27 -20
  38. data/lib/ridlbe/ruby/walker.rb +276 -253
  39. data/mkrf_conf_bingem.rb +4 -4
  40. data/rakelib/build.rake +1 -1
  41. data/rakelib/config.rake +1 -1
  42. data/rakelib/config.rb +9 -9
  43. data/rakelib/ext.rake +6 -65
  44. data/rakelib/ext_r2tao.rb +2 -39
  45. data/rakelib/gem.rake +20 -20
  46. data/rakelib/gem.rb +1 -1
  47. data/rakelib/package.rake +1 -1
  48. data/test/BiDirectional/client.rb +16 -16
  49. data/test/BiDirectional/run_test.rb +10 -10
  50. data/test/BiDirectional/server.rb +20 -20
  51. data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
  52. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
  53. data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
  54. data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
  55. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
  56. data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
  57. data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
  58. data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
  59. data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
  60. data/test/Collocation/run_test.rb +10 -10
  61. data/test/Collocation/test.rb +26 -19
  62. data/test/Connect_Timeout/client.rb +15 -15
  63. data/test/Connect_Timeout/run_test.rb +10 -10
  64. data/test/DII/client.rb +27 -27
  65. data/test/DII/run_test.rb +10 -10
  66. data/test/DII/server.rb +15 -15
  67. data/test/DSI/client.rb +15 -15
  68. data/test/DSI/run_test.rb +10 -10
  69. data/test/DSI/server.rb +16 -16
  70. data/test/Exceptions/client.rb +19 -19
  71. data/test/Exceptions/run_test.rb +10 -10
  72. data/test/Exceptions/server.rb +15 -15
  73. data/test/Hello/client.rb +15 -15
  74. data/test/Hello/run_test.rb +10 -10
  75. data/test/Hello/server.rb +16 -16
  76. data/test/IDL_Test/client.rb +20 -20
  77. data/test/IDL_Test/run_test.rb +10 -10
  78. data/test/IDL_Test/server.rb +18 -18
  79. data/test/IORMap/client.rb +14 -14
  80. data/test/IORMap/run_test.rb +10 -10
  81. data/test/IORMap/server.rb +22 -22
  82. data/test/IORTable/client.rb +14 -14
  83. data/test/IORTable/run_test.rb +10 -10
  84. data/test/IORTable/server.rb +22 -22
  85. data/test/Implicit_Conversion/client.rb +19 -16
  86. data/test/Implicit_Conversion/run_test.rb +10 -10
  87. data/test/Implicit_Conversion/server.rb +15 -15
  88. data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
  89. data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
  90. data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
  91. data/test/Multi_Threading/Simple/client.rb +15 -15
  92. data/test/Multi_Threading/Simple/run_test.rb +10 -10
  93. data/test/Multi_Threading/Simple/server.rb +15 -15
  94. data/test/Multi_Threading/Threads/client.rb +15 -15
  95. data/test/Multi_Threading/Threads/run_test.rb +10 -10
  96. data/test/Multi_Threading/Threads/server.rb +17 -17
  97. data/test/Multi_Threading/Threads/watchdog.rb +15 -15
  98. data/test/Multiple_Servant_Interfaces/client.rb +13 -13
  99. data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
  100. data/test/Multiple_Servant_Interfaces/server.rb +17 -17
  101. data/test/Nil/run_test.rb +10 -10
  102. data/test/Nil/test.rb +13 -13
  103. data/test/OBV/AbstractInterface/client.rb +13 -13
  104. data/test/OBV/AbstractInterface/run_test.rb +10 -10
  105. data/test/OBV/AbstractInterface/server.rb +19 -18
  106. data/test/OBV/Custom/OBV_impl.rb +2 -0
  107. data/test/OBV/Custom/client.rb +13 -13
  108. data/test/OBV/Custom/run_test.rb +10 -10
  109. data/test/OBV/Custom/server.rb +15 -15
  110. data/test/OBV/Simple/OBV_impl.rb +1 -0
  111. data/test/OBV/Simple/client.rb +13 -13
  112. data/test/OBV/Simple/run_test.rb +10 -10
  113. data/test/OBV/Simple/server.rb +15 -15
  114. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  115. data/test/OBV/Simple_Event/client.rb +13 -13
  116. data/test/OBV/Simple_Event/run_test.rb +10 -10
  117. data/test/OBV/Simple_Event/server.rb +15 -15
  118. data/test/OBV/Supports/client.rb +18 -18
  119. data/test/OBV/Supports/run_test.rb +10 -10
  120. data/test/OBV/Supports/server.rb +14 -14
  121. data/test/OBV/Supports/supports_impl.rb +3 -0
  122. data/test/OBV/Tree/client.rb +13 -13
  123. data/test/OBV/Tree/run_test.rb +10 -10
  124. data/test/OBV/Tree/server.rb +18 -18
  125. data/test/OBV/Truncatable/client.rb +56 -56
  126. data/test/OBV/Truncatable/run_test.rb +10 -10
  127. data/test/OBV/Truncatable/server.rb +14 -14
  128. data/test/OBV/ValueBox/client.rb +148 -147
  129. data/test/OBV/ValueBox/run_test.rb +10 -10
  130. data/test/OBV/ValueBox/server.rb +15 -15
  131. data/test/Object/client.rb +13 -13
  132. data/test/Object/run_test.rb +10 -10
  133. data/test/Object/server.rb +18 -18
  134. data/test/POA/run_test.rb +10 -10
  135. data/test/POA/test.rb +15 -15
  136. data/test/Param_Test/client.rb +47 -47
  137. data/test/Param_Test/run_test.rb +10 -10
  138. data/test/Param_Test/server.rb +55 -55
  139. data/test/Performance/Simple/client.rb +15 -15
  140. data/test/Performance/Simple/run_test.rb +10 -10
  141. data/test/Performance/Simple/server.rb +15 -15
  142. data/test/Policies/run_test.rb +10 -10
  143. data/test/Policies/test.rb +23 -23
  144. data/test/Timeout/client.rb +17 -17
  145. data/test/Timeout/run_test.rb +10 -10
  146. data/test/Timeout/server.rb +18 -18
  147. data/test/lib/test.rb +13 -7
  148. data/test/test_runner.rb +19 -19
  149. metadata +8 -8
@@ -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
@@ -22,25 +22,25 @@ ARGV.options do |opts|
22
22
  script_name = File.basename($0)
23
23
  opts.banner = "Usage: ruby #{script_name} [options]"
24
24
 
25
- opts.separator ""
25
+ opts.separator ''
26
26
 
27
- opts.on("--o IORFILE",
28
- "Set IOR filename.",
27
+ opts.on('--o IORFILE',
28
+ 'Set IOR filename.',
29
29
  "Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
30
- opts.on("--p PORT",
31
- "Set endpoint port.",
32
- "Default: 3456") { |v| OPTIONS[:listenport] = v }
33
- opts.on("--d LVL",
34
- "Set ORBDebugLevel value.",
35
- "Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
36
- opts.on("--use-implement",
37
- "Load IDL through CORBA.implement() instead of precompiled code.",
38
- "Default: off") { |v| OPTIONS[:use_implement] = v }
30
+ opts.on('--p PORT',
31
+ 'Set endpoint port.',
32
+ 'Default: 3456') { |v| OPTIONS[:listenport] = v }
33
+ opts.on('--d LVL',
34
+ 'Set ORBDebugLevel value.',
35
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
36
+ opts.on('--use-implement',
37
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
38
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
39
39
 
40
- opts.separator ""
40
+ opts.separator ''
41
41
 
42
- opts.on("-h", "--help",
43
- "Show this help message.") { puts opts; exit }
42
+ opts.on('-h', '--help',
43
+ 'Show this help message.') { puts opts; exit }
44
44
 
45
45
  opts.parse!
46
46
  end
@@ -67,7 +67,7 @@ class MyHello < POA::Test::Hello
67
67
  def shutdown()
68
68
  @orb.shutdown()
69
69
  end
70
- end #of servant MyHello
70
+ end # of servant MyHello
71
71
 
72
72
  class MyLocator
73
73
  include IORTable::Locator
@@ -83,7 +83,7 @@ class MyLocator
83
83
  end
84
84
  end
85
85
 
86
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel], "-ORBListenEndpoints", "iiop://localhost:#{OPTIONS[:listenport]}"], 'myORB')
86
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel], '-ORBListenEndpoints', "iiop://localhost:#{OPTIONS[:listenport]}"], 'myORB')
87
87
 
88
88
  obj = orb.resolve_initial_references('RootPOA')
89
89
 
@@ -97,28 +97,28 @@ obj = orb.resolve_initial_references('IORTable')
97
97
 
98
98
  iortbl = IORTable::Table._narrow(obj)
99
99
 
100
- hello_srv = MyHello.new(orb, "Hello")
100
+ hello_srv = MyHello.new(orb, 'Hello')
101
101
 
102
102
  hello_obj = hello_srv._this()
103
103
 
104
104
  hello_ior = orb.object_to_string(hello_obj)
105
105
 
106
- iortbl.bind("Hello", hello_ior)
106
+ iortbl.bind('Hello', hello_ior)
107
107
 
108
- hello_srv = MyHello.new(orb, "Hello2")
108
+ hello_srv = MyHello.new(orb, 'Hello2')
109
109
 
110
110
  hello_obj = hello_srv._this()
111
111
 
112
112
  hello_ior = orb.object_to_string(hello_obj)
113
113
 
114
- iortbl.set_locator(MyLocator.new("Hello2", hello_ior))
114
+ iortbl.set_locator(MyLocator.new('Hello2', hello_ior))
115
115
 
116
116
  open(OPTIONS[:iorfile], 'w') { |io|
117
117
  io.write hello_ior
118
118
  }
119
119
 
120
120
  Signal.trap('INT') do
121
- puts "SIGINT - shutting down ORB..."
121
+ puts 'SIGINT - shutting down ORB...'
122
122
  orb.shutdown()
123
123
  end
124
124
 
@@ -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://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
@@ -54,6 +54,7 @@ class MyMsg
54
54
  def initialize(txt)
55
55
  @txt = txt
56
56
  end
57
+
57
58
  def to_str
58
59
  @txt
59
60
  end
@@ -63,6 +64,7 @@ class MyLong
63
64
  def initialize(i)
64
65
  @i = i
65
66
  end
67
+
66
68
  def to_int
67
69
  @i
68
70
  end
@@ -73,12 +75,13 @@ class MyArray
73
75
  @arr = []
74
76
  len.times {|i| @arr << MyLong.new(i) }
75
77
  end
78
+
76
79
  def to_ary
77
80
  @arr
78
81
  end
79
82
  end
80
83
 
81
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
84
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
82
85
 
83
86
  begin
84
87
 
@@ -90,13 +93,13 @@ begin
90
93
 
91
94
  puts "string returned <#{the_string}>"
92
95
 
93
- assert "echo failed", the_string == msg.to_str
96
+ assert 'echo failed', the_string == msg.to_str
94
97
 
95
98
  the_seq = hello_obj.echo_seq(arr = MyArray.new(10))
96
99
 
97
- puts "sequence returned " + the_seq.inspect
100
+ puts 'sequence returned ' + the_seq.inspect
98
101
 
99
- assert "echo_seq failed" do
102
+ assert 'echo_seq failed' do
100
103
  [arr.to_ary.collect {|l| l.to_int }, the_seq].transpose.all? {|t| t.first == t.last}
101
104
  end
102
105
 
@@ -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
@@ -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.",
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR filename.',
28
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 }
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
@@ -64,9 +64,9 @@ class MyHello < POA::Test::Hello
64
64
  def shutdown()
65
65
  @orb.shutdown()
66
66
  end
67
- end #of servant MyHello
67
+ end # of servant MyHello
68
68
 
69
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
69
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
70
70
 
71
71
  obj = orb.resolve_initial_references('RootPOA')
72
72
 
@@ -87,7 +87,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
87
87
  }
88
88
 
89
89
  Signal.trap('INT') do
90
- puts "SIGINT - shutting down ORB..."
90
+ puts 'SIGINT - shutting down ORB...'
91
91
  orb.shutdown()
92
92
  end
93
93
 
@@ -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 base.",
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR base.',
30
30
  "Default: 'file://server'") { |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
@@ -50,7 +50,7 @@ else
50
50
  require 'TestC.rb'
51
51
  end
52
52
 
53
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
53
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
54
54
 
55
55
  begin
56
56
 
@@ -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
@@ -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 base filename.",
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR base filename.',
28
28
  "Default: 'server'") { |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 }
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
@@ -61,12 +61,12 @@ class MyHello < POA::Test::Hello
61
61
  def shutdown()
62
62
  @orb.shutdown()
63
63
  end
64
- end #of servant MyHello
64
+ end # of servant MyHello
65
65
 
66
66
  orb_trds = []
67
67
 
68
68
  Signal.trap('INT') do
69
- puts "SIGINT - shutting down ORB..."
69
+ puts 'SIGINT - shutting down ORB...'
70
70
  orb_trds.each { |t| t[:orb].shutdown() }
71
71
  end
72
72
 
@@ -76,7 +76,7 @@ end
76
76
 
77
77
  orb_trds.concat((0..1).collect do |i|
78
78
  Thread.new(i) do |sid|
79
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], "myORB#{sid}")
79
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], "myORB#{sid}")
80
80
 
81
81
  Thread.current[:orb] = orb # TSS
82
82
 
@@ -96,7 +96,7 @@ orb_trds.concat((0..1).collect do |i|
96
96
 
97
97
  hello_ior = orb.object_to_string(hello_obj)
98
98
 
99
- open("#{OPTIONS[:iorfile]}#{sid}.ior" , 'w') { |io|
99
+ open("#{OPTIONS[:iorfile]}#{sid}.ior", 'w') { |io|
100
100
  io.write hello_ior
101
101
  }
102
102
 
@@ -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://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
@@ -50,7 +50,7 @@ else
50
50
  require 'TestC.rb'
51
51
  end
52
52
 
53
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
53
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
54
54
 
55
55
  begin
56
56
 
@@ -79,11 +79,11 @@ begin
79
79
 
80
80
  hello_obj.shutdown()
81
81
 
82
- assert_not "ERROR: Object is reported nil!", CORBA::is_nil(hello_obj)
82
+ assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
83
83
 
84
84
  hello_obj._free_ref()
85
85
 
86
- assert "ERROR: Object is reported non-nil!", CORBA::is_nil(hello_obj)
86
+ assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
87
87
 
88
88
  ensure
89
89