r2corba 1.5.5-universal-java → 1.6.0-universal-java

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 (147) hide show
  1. checksums.yaml +4 -4
  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/gem.rake +20 -20
  44. data/rakelib/gem.rb +1 -1
  45. data/rakelib/package.rake +1 -1
  46. data/test/BiDirectional/client.rb +16 -16
  47. data/test/BiDirectional/run_test.rb +10 -10
  48. data/test/BiDirectional/server.rb +20 -20
  49. data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
  50. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
  51. data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
  52. data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
  53. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
  54. data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
  55. data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
  56. data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
  57. data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
  58. data/test/Collocation/run_test.rb +10 -10
  59. data/test/Collocation/test.rb +26 -19
  60. data/test/Connect_Timeout/client.rb +15 -15
  61. data/test/Connect_Timeout/run_test.rb +10 -10
  62. data/test/DII/client.rb +27 -27
  63. data/test/DII/run_test.rb +10 -10
  64. data/test/DII/server.rb +15 -15
  65. data/test/DSI/client.rb +15 -15
  66. data/test/DSI/run_test.rb +10 -10
  67. data/test/DSI/server.rb +16 -16
  68. data/test/Exceptions/client.rb +19 -19
  69. data/test/Exceptions/run_test.rb +10 -10
  70. data/test/Exceptions/server.rb +15 -15
  71. data/test/Hello/client.rb +15 -15
  72. data/test/Hello/run_test.rb +10 -10
  73. data/test/Hello/server.rb +16 -16
  74. data/test/IDL_Test/client.rb +20 -20
  75. data/test/IDL_Test/run_test.rb +10 -10
  76. data/test/IDL_Test/server.rb +18 -18
  77. data/test/IORMap/client.rb +14 -14
  78. data/test/IORMap/run_test.rb +10 -10
  79. data/test/IORMap/server.rb +22 -22
  80. data/test/IORTable/client.rb +14 -14
  81. data/test/IORTable/run_test.rb +10 -10
  82. data/test/IORTable/server.rb +22 -22
  83. data/test/Implicit_Conversion/client.rb +19 -16
  84. data/test/Implicit_Conversion/run_test.rb +10 -10
  85. data/test/Implicit_Conversion/server.rb +15 -15
  86. data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
  87. data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
  88. data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
  89. data/test/Multi_Threading/Simple/client.rb +15 -15
  90. data/test/Multi_Threading/Simple/run_test.rb +10 -10
  91. data/test/Multi_Threading/Simple/server.rb +15 -15
  92. data/test/Multi_Threading/Threads/client.rb +15 -15
  93. data/test/Multi_Threading/Threads/run_test.rb +10 -10
  94. data/test/Multi_Threading/Threads/server.rb +17 -17
  95. data/test/Multi_Threading/Threads/watchdog.rb +15 -15
  96. data/test/Multiple_Servant_Interfaces/client.rb +13 -13
  97. data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
  98. data/test/Multiple_Servant_Interfaces/server.rb +17 -17
  99. data/test/Nil/run_test.rb +10 -10
  100. data/test/Nil/test.rb +13 -13
  101. data/test/OBV/AbstractInterface/client.rb +13 -13
  102. data/test/OBV/AbstractInterface/run_test.rb +10 -10
  103. data/test/OBV/AbstractInterface/server.rb +19 -18
  104. data/test/OBV/Custom/OBV_impl.rb +2 -0
  105. data/test/OBV/Custom/client.rb +13 -13
  106. data/test/OBV/Custom/run_test.rb +10 -10
  107. data/test/OBV/Custom/server.rb +15 -15
  108. data/test/OBV/Simple/OBV_impl.rb +1 -0
  109. data/test/OBV/Simple/client.rb +13 -13
  110. data/test/OBV/Simple/run_test.rb +10 -10
  111. data/test/OBV/Simple/server.rb +15 -15
  112. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  113. data/test/OBV/Simple_Event/client.rb +13 -13
  114. data/test/OBV/Simple_Event/run_test.rb +10 -10
  115. data/test/OBV/Simple_Event/server.rb +15 -15
  116. data/test/OBV/Supports/client.rb +18 -18
  117. data/test/OBV/Supports/run_test.rb +10 -10
  118. data/test/OBV/Supports/server.rb +14 -14
  119. data/test/OBV/Supports/supports_impl.rb +3 -0
  120. data/test/OBV/Tree/client.rb +13 -13
  121. data/test/OBV/Tree/run_test.rb +10 -10
  122. data/test/OBV/Tree/server.rb +18 -18
  123. data/test/OBV/Truncatable/client.rb +56 -56
  124. data/test/OBV/Truncatable/run_test.rb +10 -10
  125. data/test/OBV/Truncatable/server.rb +14 -14
  126. data/test/OBV/ValueBox/client.rb +148 -147
  127. data/test/OBV/ValueBox/run_test.rb +10 -10
  128. data/test/OBV/ValueBox/server.rb +15 -15
  129. data/test/Object/client.rb +13 -13
  130. data/test/Object/run_test.rb +10 -10
  131. data/test/Object/server.rb +18 -18
  132. data/test/POA/run_test.rb +10 -10
  133. data/test/POA/test.rb +15 -15
  134. data/test/Param_Test/client.rb +47 -47
  135. data/test/Param_Test/run_test.rb +10 -10
  136. data/test/Param_Test/server.rb +55 -55
  137. data/test/Performance/Simple/client.rb +15 -15
  138. data/test/Performance/Simple/run_test.rb +10 -10
  139. data/test/Performance/Simple/server.rb +15 -15
  140. data/test/Policies/run_test.rb +10 -10
  141. data/test/Policies/test.rb +23 -23
  142. data/test/Timeout/client.rb +17 -17
  143. data/test/Timeout/run_test.rb +10 -10
  144. data/test/Timeout/server.rb +18 -18
  145. data/test/lib/test.rb +13 -7
  146. data/test/test_runner.rb +19 -19
  147. metadata +6 -6
@@ -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,22 +22,22 @@ 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("--d LVL",
31
- "Set ORBDebugLevel value.",
32
- "Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
33
- opts.on("--use-implement",
34
- "Load IDL through CORBA.implement() instead of precompiled code.",
35
- "Default: off") { |v| OPTIONS[:use_implement] = v }
30
+ opts.on('--d LVL',
31
+ 'Set ORBDebugLevel value.',
32
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
33
+ opts.on('--use-implement',
34
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
35
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
36
36
 
37
- opts.separator ""
37
+ opts.separator ''
38
38
 
39
- opts.on("-h", "--help",
40
- "Show this help message.") { puts opts; exit }
39
+ opts.on('-h', '--help',
40
+ 'Show this help message.') { puts opts; exit }
41
41
 
42
42
  opts.parse!
43
43
  end
@@ -237,9 +237,9 @@ class Test_impl < POA::Test
237
237
  def shutdown()
238
238
  @orb.shutdown()
239
239
  end
240
- end #of servant Test_impl
240
+ end # of servant Test_impl
241
241
 
242
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
242
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
243
243
 
244
244
  obj = orb.resolve_initial_references('RootPOA')
245
245
 
@@ -260,7 +260,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
260
260
  }
261
261
 
262
262
  Signal.trap('INT') do
263
- puts "SIGINT - shutting down ORB..."
263
+ puts 'SIGINT - shutting down ORB...'
264
264
  orb.shutdown()
265
265
  end
266
266
 
@@ -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
 
@@ -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
@@ -54,7 +54,7 @@ class MyHello < POA::Test::Hello
54
54
  end
55
55
 
56
56
  def get_string()
57
- "Hello there!"
57
+ 'Hello there!'
58
58
  end
59
59
 
60
60
  def shutdown()
@@ -69,7 +69,7 @@ class MyHello < POA::Test::Hello
69
69
  # activate and return object ref
70
70
  hello_srv._this()
71
71
  end
72
- end #of servant MyHello
72
+ end # of servant MyHello
73
73
 
74
74
  class MyHello2 < POA::Test::Hello
75
75
  def initialize(orb)
@@ -77,7 +77,7 @@ class MyHello2 < POA::Test::Hello
77
77
  end
78
78
 
79
79
  def get_string()
80
- "Hello2 there!"
80
+ 'Hello2 there!'
81
81
  end
82
82
 
83
83
  def shutdown()
@@ -92,8 +92,8 @@ class MyHello2 < POA::Test::Hello
92
92
  def _is_a?(id)
93
93
  Intf::Ids.include?(id) or id == 'IDL:org.omg/custom.Test/Hello:1.0'
94
94
  end
95
- end #of servant MyHello
96
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
95
+ end # of servant MyHello
96
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
97
97
 
98
98
  obj = orb.resolve_initial_references('RootPOA')
99
99
 
@@ -114,7 +114,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
114
114
  }
115
115
 
116
116
  Signal.trap('INT') do
117
- puts "SIGINT - shutting down ORB..."
117
+ puts 'SIGINT - shutting down ORB...'
118
118
  orb.shutdown()
119
119
  end
120
120
 
data/test/POA/run_test.rb CHANGED
@@ -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/POA/test.rb CHANGED
@@ -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("--o IORFILE",
29
- "Set IOR filename.",
28
+ opts.on('--o IORFILE',
29
+ 'Set IOR filename.',
30
30
  "Default: '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
@@ -56,15 +56,15 @@ class MyHello < POA::Test::Hello
56
56
  end
57
57
 
58
58
  def get_string()
59
- "Hello there!"
59
+ 'Hello there!'
60
60
  end
61
61
 
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
  begin
70
70
  obj = orb.resolve_initial_references('RootPOA')
@@ -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
 
@@ -60,20 +60,20 @@ begin
60
60
 
61
61
  ## integer max/min values test
62
62
 
63
- [ :max_LongLong,
64
- :min_LongLong,
65
- :max_ULongLong,
66
- :min_ULongLong,
67
- :max_Long,
68
- :min_Long,
69
- :max_ULong,
70
- :min_ULong,
71
- :max_Short,
72
- :min_Short,
73
- :max_UShort,
74
- :min_UShort,
75
- :max_Octet,
76
- :min_Octet ].each do |att|
63
+ [:max_LongLong,
64
+ :min_LongLong,
65
+ :max_ULongLong,
66
+ :min_ULongLong,
67
+ :max_Long,
68
+ :min_Long,
69
+ :max_ULong,
70
+ :min_ULong,
71
+ :max_Short,
72
+ :min_Short,
73
+ :max_UShort,
74
+ :min_UShort,
75
+ :max_Octet,
76
+ :min_Octet].each do |att|
77
77
  att_val = hello_obj.send(att)
78
78
  assert "ERROR: value of attribute #{att} (#{att_val}) does not match expected value #{Test.const_get(att.to_s.capitalize)}", Test.const_get(att.to_s.capitalize) == att_val
79
79
  end
@@ -86,7 +86,7 @@ begin
86
86
 
87
87
  hello_obj.message = str
88
88
 
89
- assert "ERROR setting message attribute", str == hello_obj.message
89
+ assert 'ERROR setting message attribute', str == hello_obj.message
90
90
 
91
91
  ## sequence test
92
92
 
@@ -102,7 +102,7 @@ begin
102
102
 
103
103
  hello_obj.numbers = nums.collect { |i| i * 3 }
104
104
 
105
- assert_not "ERROR numbers attribute did not change while it should have", nums == hello_obj.numbers
105
+ assert_not 'ERROR numbers attribute did not change while it should have', nums == hello_obj.numbers
106
106
 
107
107
  doubles_list = hello_obj.list_of_doubles
108
108
 
@@ -123,7 +123,7 @@ begin
123
123
  hello_obj.structSeq = svseq
124
124
 
125
125
  ix = 0
126
- assert_not "ERROR setting attribute structSeq" do
126
+ assert_not 'ERROR setting attribute structSeq' do
127
127
  hello_obj.structSeq.any? { |sv|
128
128
  sv2 = svseq[ix]
129
129
  ix += 1
@@ -149,7 +149,7 @@ begin
149
149
 
150
150
  hello_obj.theCube = cube2
151
151
 
152
- assert_not "ERROR setting attribute theCube" do
152
+ assert_not 'ERROR setting attribute theCube' do
153
153
  cube2 != hello_obj.theCube || cube == hello_obj.theCube
154
154
  end
155
155
 
@@ -157,7 +157,7 @@ begin
157
157
 
158
158
  self_obj = hello_obj.selfref
159
159
 
160
- assert "ERROR with attribute selfref", self_obj.message == hello_obj.message
160
+ assert 'ERROR with attribute selfref', self_obj.message == hello_obj.message
161
161
 
162
162
  ## Any test
163
163
 
@@ -165,19 +165,19 @@ begin
165
165
 
166
166
  hello_obj.anyValue = 1
167
167
 
168
- assert_not "ERROR with attribute anyValue" do
168
+ assert_not 'ERROR with attribute anyValue' do
169
169
  any == hello_obj.anyValue || 1 == hello_obj.anyValue
170
170
  end
171
171
 
172
172
  hello_obj.anyValue = 2
173
173
 
174
- assert_not "ERROR with attribute anyValue" do
174
+ assert_not 'ERROR with attribute anyValue' do
175
175
  any == hello_obj.anyValue || 2 == hello_obj.anyValue
176
176
  end
177
177
 
178
178
  hello_obj.anyValue = 3
179
179
 
180
- assert_not "ERROR with attribute anyValue" do
180
+ assert_not 'ERROR with attribute anyValue' do
181
181
  any == hello_obj.anyValue || 3 == hello_obj.anyValue
182
182
  end
183
183
 
@@ -190,7 +190,7 @@ begin
190
190
 
191
191
  hello_obj.unionValue = uv2
192
192
 
193
- assert_not "ERROR with attribute unionValue" do
193
+ assert_not 'ERROR with attribute unionValue' do
194
194
  uv1._disc == hello_obj.unionValue._disc || uv1._value == hello_obj.unionValue._value
195
195
  end
196
196
 
@@ -201,47 +201,47 @@ begin
201
201
 
202
202
  hello_obj.unionValue2 = uv22
203
203
 
204
- assert_not "ERROR with attribute unionValue2" do
204
+ assert_not 'ERROR with attribute unionValue2' do
205
205
  uv21._disc == hello_obj.unionValue2._disc || uv21._value == hello_obj.unionValue2._value
206
206
  end
207
207
 
208
- assert_not "ERROR with attribute unionValue2" do
208
+ assert_not 'ERROR with attribute unionValue2' do
209
209
  uv21._disc == hello_obj.unionValue2._disc || uv21._value == hello_obj.unionValue2._value
210
210
  end
211
211
 
212
212
  uv3 = hello_obj.unionValue3
213
213
 
214
- assert_except "ERROR with attribute unionValue3", CORBA::BAD_PARAM do
214
+ assert_except 'ERROR with attribute unionValue3', CORBA::BAD_PARAM do
215
215
  uv3._disc = false
216
216
  end
217
217
 
218
218
  uv3._default # set implicit default
219
219
 
220
- assert "ERROR with implicit default union U3" do
220
+ assert 'ERROR with implicit default union U3' do
221
221
  uv3._disc == false
222
222
  end
223
223
 
224
224
  hello_obj.unionValue3 = uv3
225
225
 
226
- assert "ERROR with implicit default attribute unionValue3" do
226
+ assert 'ERROR with implicit default attribute unionValue3' do
227
227
  hello_obj.unionValue3._disc == false
228
228
  end
229
229
 
230
230
  uv4 = hello_obj.unionValue4
231
231
 
232
- assert_except "ERROR with attribute unionValue4", CORBA::BAD_PARAM do
232
+ assert_except 'ERROR with attribute unionValue4', CORBA::BAD_PARAM do
233
233
  uv4._disc = Test::TE_THIRD
234
234
  end
235
235
 
236
236
  uv4._default # set implicit default
237
237
 
238
- assert "ERROR with implicit default union U4" do
238
+ assert 'ERROR with implicit default union U4' do
239
239
  uv4._disc == Test::TE_THIRD
240
240
  end
241
241
 
242
242
  hello_obj.unionValue4 = uv4
243
243
 
244
- assert "ERROR with implicit default attribute unionValue4" do
244
+ assert 'ERROR with implicit default attribute unionValue4' do
245
245
  hello_obj.unionValue4._disc == Test::TE_THIRD
246
246
  end
247
247
 
@@ -255,15 +255,15 @@ begin
255
255
 
256
256
  hello_obj.s3Value = s3val
257
257
 
258
- assert_not "ERROR with attribute s3Value" do
258
+ assert_not 'ERROR with attribute s3Value' do
259
259
  s3val.m_seq.size != hello_obj.s3Value.m_seq.size || s3val.m_seq.first.m_has_more != hello_obj.s3Value.m_seq.first.m_has_more
260
260
  end
261
261
 
262
262
  ## in, inout, out test
263
263
 
264
- reslen, resinoutstr, resoutstr = hello_obj.run_test(instr = Test::TString.new("This is instr"), inoutstr = "This is inoutstr")
264
+ reslen, resinoutstr, resoutstr = hello_obj.run_test(instr = Test::TString.new('This is instr'), inoutstr = 'This is inoutstr')
265
265
 
266
- assert_not "ERROR with run_test" do
266
+ assert_not 'ERROR with run_test' do
267
267
  reslen != resoutstr.size || resinoutstr != instr || resoutstr != (instr + inoutstr)
268
268
  end
269
269