r2corba 1.6.2 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +5 -5
  3. data/ext/libr2tao/orb.cpp +4 -4
  4. data/ext/libr2tao/values.cpp +14 -14
  5. data/ext/libr2tao/values.h +21 -57
  6. data/lib/corba/cbase/ORB.rb +9 -8
  7. data/lib/corba/cbase/Request.rb +10 -12
  8. data/lib/corba/cbase/Streams.rb +20 -20
  9. data/lib/corba/cbase/Typecode.rb +12 -41
  10. data/lib/corba/cbase/Values.rb +1 -4
  11. data/lib/corba/cbase/exception.rb +0 -2
  12. data/lib/corba/cbase/poa.rb +2 -2
  13. data/lib/corba/cbase/policies.rb +9 -8
  14. data/lib/corba/cbase/require.rb +1 -1
  15. data/lib/corba/cmds/base.rb +1 -2
  16. data/lib/corba/common/Any.rb +2 -3
  17. data/lib/corba/common/IDL.rb +3 -7
  18. data/lib/corba/common/ORB.rb +19 -19
  19. data/lib/corba/common/Object.rb +32 -22
  20. data/lib/corba/common/Request.rb +0 -2
  21. data/lib/corba/common/Servant.rb +4 -9
  22. data/lib/corba/common/Stub.rb +9 -7
  23. data/lib/corba/common/Typecode.rb +44 -27
  24. data/lib/corba/common/Values.rb +4 -5
  25. data/lib/corba/common/require.rb +1 -3
  26. data/lib/corba/common/version.rb +2 -4
  27. data/lib/corba/idl/IDL.rb +0 -2
  28. data/lib/corba/idl/require.rb +2 -2
  29. data/lib/corba/jbase/Any.rb +34 -35
  30. data/lib/corba/jbase/ORB.rb +5 -6
  31. data/lib/corba/jbase/Object.rb +10 -10
  32. data/lib/corba/jbase/Request.rb +8 -9
  33. data/lib/corba/jbase/Servant.rb +32 -36
  34. data/lib/corba/jbase/ServerRequest.rb +10 -8
  35. data/lib/corba/jbase/Streams.rb +80 -78
  36. data/lib/corba/jbase/Stub.rb +1 -1
  37. data/lib/corba/jbase/Typecode.rb +18 -46
  38. data/lib/corba/jbase/Values.rb +0 -1
  39. data/lib/corba/jbase/exception.rb +2 -1
  40. data/lib/corba/jbase/poa.rb +18 -17
  41. data/lib/corba/jbase/policies.rb +42 -45
  42. data/lib/corba/jbase/require.rb +3 -3
  43. data/lib/corba/naming_service.rb +1 -1
  44. data/lib/corba/poa.rb +1 -1
  45. data/lib/corba/policies.rb +2 -2
  46. data/lib/corba/svcs/ins/cos_naming.rb +29 -18
  47. data/lib/corba/svcs/ins/ins.rb +38 -38
  48. data/lib/corba/svcs/ins/naming_service.rb +6 -6
  49. data/lib/corba.rb +1 -1
  50. data/lib/ridlbe/ruby/config.rb +2 -8
  51. data/lib/ridlbe/ruby/walker.rb +94 -108
  52. data/rakelib/config.rb +9 -6
  53. data/rakelib/ext.rake +1 -1
  54. data/rakelib/ext_r2tao.rb +1 -1
  55. data/rakelib/gem.rake +0 -30
  56. data/test/BiDirectional/client.rb +7 -7
  57. data/test/BiDirectional/run_test.rb +2 -2
  58. data/test/BiDirectional/server.rb +13 -13
  59. data/test/CORBA_Services/Naming/BindingIterator/client.rb +9 -9
  60. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +2 -2
  61. data/test/CORBA_Services/Naming/BindingIterator/server.rb +6 -6
  62. data/test/CORBA_Services/Naming/Corbaname/client.rb +6 -6
  63. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +2 -2
  64. data/test/CORBA_Services/Naming/Corbaname/server.rb +8 -8
  65. data/test/CORBA_Services/Naming/Simple/client.rb +6 -6
  66. data/test/CORBA_Services/Naming/Simple/run_test.rb +2 -2
  67. data/test/CORBA_Services/Naming/Simple/server.rb +6 -6
  68. data/test/Collocation/run_test.rb +2 -2
  69. data/test/Collocation/test.rb +1 -1
  70. data/test/Connect_Timeout/client.rb +7 -7
  71. data/test/Connect_Timeout/run_test.rb +2 -2
  72. data/test/DII/client.rb +10 -10
  73. data/test/DII/run_test.rb +2 -2
  74. data/test/DII/server.rb +7 -7
  75. data/test/DSI/client.rb +6 -6
  76. data/test/DSI/run_test.rb +2 -2
  77. data/test/DSI/server.rb +9 -9
  78. data/test/Exceptions/client.rb +6 -6
  79. data/test/Exceptions/run_test.rb +2 -2
  80. data/test/Exceptions/server.rb +7 -7
  81. data/test/Hello/client.rb +7 -7
  82. data/test/Hello/run_test.rb +2 -2
  83. data/test/Hello/server.rb +7 -7
  84. data/test/IDL_Test/client.rb +9 -9
  85. data/test/IDL_Test/run_test.rb +2 -2
  86. data/test/IDL_Test/server.rb +7 -7
  87. data/test/IORMap/client.rb +7 -7
  88. data/test/IORMap/run_test.rb +2 -2
  89. data/test/IORMap/server.rb +9 -9
  90. data/test/IORTable/client.rb +7 -7
  91. data/test/IORTable/run_test.rb +2 -2
  92. data/test/IORTable/server.rb +10 -10
  93. data/test/Implicit_Conversion/client.rb +5 -5
  94. data/test/Implicit_Conversion/run_test.rb +2 -2
  95. data/test/Implicit_Conversion/server.rb +7 -7
  96. data/test/Multi_Threading/Multiple_ORB/client.rb +6 -6
  97. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
  98. data/test/Multi_Threading/Multiple_ORB/server.rb +5 -5
  99. data/test/Multi_Threading/Simple/client.rb +6 -6
  100. data/test/Multi_Threading/Simple/run_test.rb +2 -2
  101. data/test/Multi_Threading/Simple/server.rb +8 -8
  102. data/test/Multi_Threading/Threads/client.rb +6 -6
  103. data/test/Multi_Threading/Threads/run_test.rb +2 -2
  104. data/test/Multi_Threading/Threads/server.rb +9 -9
  105. data/test/Multi_Threading/Threads/watchdog.rb +7 -7
  106. data/test/Multiple_Servant_Interfaces/client.rb +7 -7
  107. data/test/Multiple_Servant_Interfaces/run_test.rb +2 -2
  108. data/test/Multiple_Servant_Interfaces/server.rb +7 -7
  109. data/test/Nil/run_test.rb +2 -2
  110. data/test/Nil/test.rb +4 -4
  111. data/test/OBV/AbstractInterface/client.rb +9 -9
  112. data/test/OBV/AbstractInterface/run_test.rb +2 -2
  113. data/test/OBV/AbstractInterface/server.rb +7 -7
  114. data/test/OBV/Custom/client.rb +5 -5
  115. data/test/OBV/Custom/run_test.rb +2 -2
  116. data/test/OBV/Custom/server.rb +7 -7
  117. data/test/OBV/Simple/client.rb +5 -5
  118. data/test/OBV/Simple/run_test.rb +2 -2
  119. data/test/OBV/Simple/server.rb +7 -7
  120. data/test/OBV/Simple_Event/client.rb +5 -5
  121. data/test/OBV/Simple_Event/run_test.rb +2 -2
  122. data/test/OBV/Simple_Event/server.rb +7 -7
  123. data/test/OBV/Supports/client.rb +17 -17
  124. data/test/OBV/Supports/run_test.rb +2 -2
  125. data/test/OBV/Supports/server.rb +7 -7
  126. data/test/OBV/Tree/client.rb +6 -6
  127. data/test/OBV/Tree/run_test.rb +2 -2
  128. data/test/OBV/Tree/server.rb +7 -7
  129. data/test/OBV/Truncatable/client.rb +5 -5
  130. data/test/OBV/Truncatable/run_test.rb +2 -2
  131. data/test/OBV/Truncatable/server.rb +6 -6
  132. data/test/OBV/ValueBox/client.rb +20 -20
  133. data/test/OBV/ValueBox/run_test.rb +2 -2
  134. data/test/OBV/ValueBox/server.rb +8 -8
  135. data/test/Object/client.rb +6 -6
  136. data/test/Object/run_test.rb +2 -2
  137. data/test/Object/server.rb +9 -9
  138. data/test/POA/run_test.rb +2 -2
  139. data/test/POA/test.rb +4 -4
  140. data/test/Param_Test/client.rb +6 -6
  141. data/test/Param_Test/run_test.rb +2 -2
  142. data/test/Param_Test/server.rb +6 -6
  143. data/test/Performance/Simple/client.rb +6 -6
  144. data/test/Performance/Simple/run_test.rb +2 -2
  145. data/test/Performance/Simple/server.rb +7 -7
  146. data/test/Policies/run_test.rb +2 -2
  147. data/test/Policies/test.rb +4 -4
  148. data/test/Timeout/client.rb +11 -11
  149. data/test/Timeout/run_test.rb +2 -2
  150. data/test/Timeout/server.rb +9 -9
  151. data/test/lib/test.rb +5 -5
  152. data/test/test_runner.rb +8 -7
  153. metadata +2 -2
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -60,7 +60,7 @@ class Checkpoint_i < POA::Checkpoint
60
60
  end
61
61
 
62
62
  def shutdown()
63
- @orb.shutdown()
63
+ @orb.shutdown
64
64
  end
65
65
  end # of servant MyHello
66
66
 
@@ -79,17 +79,17 @@ poa_man.activate
79
79
 
80
80
  checkpoint = Checkpoint_i.new(orb)
81
81
 
82
- obj = checkpoint._this()
82
+ obj = checkpoint._this
83
83
 
84
84
  ior = orb.object_to_string(obj)
85
85
 
86
- open(OPTIONS[:iorfile], 'w') { |io|
86
+ File.open(OPTIONS[:iorfile], 'w') { |io|
87
87
  io.write ior
88
88
  }
89
89
 
90
90
  Signal.trap('INT') do
91
91
  puts 'SIGINT - shutting down ORB...'
92
- orb.shutdown()
92
+ orb.shutdown
93
93
  end
94
94
 
95
95
  if Signal.list.has_key?('USR2')
@@ -14,9 +14,9 @@ require 'lib/assert.rb'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'file://server.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://server.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -66,50 +66,50 @@ begin
66
66
 
67
67
  STDERR.puts '* get start balance'
68
68
 
69
- balance = account.get_balance();
69
+ balance = account.get_balance;
70
70
 
71
- balance.print_it()
71
+ balance.print_it
72
72
 
73
- account.print_it()
73
+ account.print_it
74
74
 
75
75
  STDERR.puts '* local deposit'
76
76
 
77
77
  balance.deposit(10.5)
78
78
 
79
- balance.print_it()
79
+ balance.print_it
80
80
 
81
- account.print_it()
81
+ account.print_it
82
82
 
83
83
  STDERR.puts '* remote deposit'
84
84
 
85
85
  account.deposit(10.77)
86
86
 
87
- balance.print_it()
87
+ balance.print_it
88
88
 
89
- account.print_it()
89
+ account.print_it
90
90
 
91
91
  STDERR.puts '* remote withdrawal'
92
92
 
93
93
  account.withdraw(3.33)
94
94
 
95
- balance.print_it()
95
+ balance.print_it
96
96
 
97
- account.print_it()
97
+ account.print_it
98
98
 
99
99
  STDERR.puts '* update balance'
100
100
 
101
- balance = account.get_balance();
101
+ balance = account.get_balance;
102
102
 
103
- balance.print_it()
103
+ balance.print_it
104
104
 
105
- account.print_it()
105
+ account.print_it
106
106
 
107
107
  # shutdown Account service
108
108
 
109
- account.shutdown()
109
+ account.shutdown
110
110
 
111
111
  ensure
112
112
 
113
- orb.destroy()
113
+ orb.destroy
114
114
 
115
115
  end
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -59,7 +59,7 @@ class BalancedAccount_i < POA::BalancedAccount
59
59
  end
60
60
 
61
61
  def shutdown()
62
- @orb.shutdown()
62
+ @orb.shutdown
63
63
  end
64
64
 
65
65
  def print_it()
@@ -82,17 +82,17 @@ poa_man.activate
82
82
 
83
83
  account = BalancedAccount_i.new(orb)
84
84
 
85
- obj = account._this()
85
+ obj = account._this
86
86
 
87
87
  ior = orb.object_to_string(obj)
88
88
 
89
- open(OPTIONS[:iorfile], 'w') { |io|
89
+ File.open(OPTIONS[:iorfile], 'w') { |io|
90
90
  io.write ior
91
91
  }
92
92
 
93
93
  Signal.trap('INT') do
94
94
  puts 'SIGINT - shutting down ORB...'
95
- orb.shutdown()
95
+ orb.shutdown
96
96
  end
97
97
 
98
98
  if Signal.list.has_key?('USR2')
@@ -14,9 +14,9 @@ require 'lib/assert.rb'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'file://server.ior',
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://server.ior',
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -98,7 +98,7 @@ begin
98
98
  StringNodeFactory.get_factory(orb)
99
99
  TreeControllerFactory.get_factory(orb)
100
100
 
101
- package = passer.pass_tree()
101
+ package = passer.pass_tree
102
102
  if CORBA::is_nil(package)
103
103
  STDERR.puts "ERROR: passer.pass_state returned nil 'out' arg (#{package})"
104
104
  end
@@ -106,10 +106,10 @@ begin
106
106
  test_state(package)
107
107
  # shutdown passer service
108
108
 
109
- passer.shutdown()
109
+ passer.shutdown
110
110
 
111
111
  ensure
112
112
 
113
- orb.destroy()
113
+ orb.destroy
114
114
 
115
115
  end
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -75,7 +75,7 @@ class Passer_i < POA::Passer
75
75
  end
76
76
 
77
77
  def shutdown ()
78
- @orb.shutdown()
78
+ @orb.shutdown
79
79
  end
80
80
  end # of servant Passer_i
81
81
 
@@ -96,17 +96,17 @@ poa_man.activate
96
96
 
97
97
  passer = Passer_i.new(orb)
98
98
 
99
- obj = passer._this()
99
+ obj = passer._this
100
100
 
101
101
  ior = orb.object_to_string(obj)
102
102
 
103
- open(OPTIONS[:iorfile], 'w') { |io|
103
+ File.open(OPTIONS[:iorfile], 'w') { |io|
104
104
  io.write ior
105
105
  }
106
106
 
107
107
  Signal.trap('INT') do
108
108
  puts 'SIGINT - shutting down ORB...'
109
- orb.shutdown()
109
+ orb.shutdown
110
110
  end
111
111
 
112
112
  if Signal.list.has_key?('USR2')
@@ -14,9 +14,9 @@ require 'lib/assert.rb'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'file://server.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://server.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -269,10 +269,10 @@ begin
269
269
 
270
270
  # shutdown tester service
271
271
 
272
- tester.shutdown()
272
+ tester.shutdown
273
273
 
274
274
  ensure
275
275
 
276
- orb.destroy()
276
+ orb.destroy
277
277
 
278
278
  end
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -68,17 +68,17 @@ poa_man.activate
68
68
 
69
69
  tester = Test_impl.new(orb)
70
70
 
71
- obj = tester._this()
71
+ obj = tester._this
72
72
 
73
73
  ior = orb.object_to_string(obj)
74
74
 
75
- open(OPTIONS[:iorfile], 'w') { |io|
75
+ File.open(OPTIONS[:iorfile], 'w') { |io|
76
76
  io.write ior
77
77
  }
78
78
 
79
79
  Signal.trap('INT') do
80
80
  puts 'SIGINT - shutting down ORB...'
81
- orb.shutdown()
81
+ orb.shutdown
82
82
  end
83
83
 
84
84
  if Signal.list.has_key?('USR2')
@@ -14,9 +14,9 @@ require 'lib/assert.rb'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'file://server.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://server.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -189,13 +189,13 @@ module Test
189
189
  retval = nil
190
190
  retval, p2_out, p3_out = test.seq_op1(p1, p2)
191
191
 
192
- p2.value().each_with_index do |e, i|
192
+ p2.value.each_with_index do |e, i|
193
193
  assert 'boxed_sequence_invocations:2 failed', (p2_out[i] == e * 3)
194
194
  end
195
- p2.value().each_with_index do |e, i|
195
+ p2.value.each_with_index do |e, i|
196
196
  assert 'boxed_sequence_invocations:2 failed', (p3_out[i] == e * 5)
197
197
  end
198
- p1.value().each_with_index do |e, i|
198
+ p1.value.each_with_index do |e, i|
199
199
  assert 'boxed_sequence_invocations:2 failed', (retval[i] == e)
200
200
  end
201
201
 
@@ -204,10 +204,10 @@ module Test
204
204
  p3_out = nil
205
205
  p2_out, p3_out = test.seq_op2(p1.value, p2.value)
206
206
 
207
- p2.value().each_with_index do |e, i|
207
+ p2.value.each_with_index do |e, i|
208
208
  assert 'boxed_sequence_invocations:3 failed', (p2_out[i] == e * 3)
209
209
  end
210
- p2.value().each_with_index do |e, i|
210
+ p2.value.each_with_index do |e, i|
211
211
  assert 'boxed_sequence_invocations:3 failed', (p3_out[i] == e * 5)
212
212
  end
213
213
  end
@@ -312,13 +312,13 @@ module Test
312
312
  retval = nil
313
313
  retval, p2_out, p3_out = test.array_op1(p1, p2)
314
314
 
315
- p2.value().each_with_index do |e, i|
315
+ p2.value.each_with_index do |e, i|
316
316
  assert 'boxed_array_invocations:2 failed', (p2_out[i] == e * 3)
317
317
  end
318
- p2.value().each_with_index do |e, i|
318
+ p2.value.each_with_index do |e, i|
319
319
  assert 'boxed_array_invocations:2 failed', (p3_out[i] == e * 3)
320
320
  end
321
- p1.value().each_with_index do |e, i|
321
+ p1.value.each_with_index do |e, i|
322
322
  assert 'boxed_array_invocations:2 failed', (retval[i] == e)
323
323
  end
324
324
 
@@ -327,10 +327,10 @@ module Test
327
327
  p3_out = nil
328
328
  p2_out, p3_out = test.array_op2(p1.value, p2.value)
329
329
 
330
- p2.value().each_with_index do |e, i|
330
+ p2.value.each_with_index do |e, i|
331
331
  assert 'boxed_array_invocations:3 failed', (p2_out[i] == e * 3)
332
332
  end
333
- p1.value().each_with_index do |e, i|
333
+ p1.value.each_with_index do |e, i|
334
334
  assert 'boxed_array_invocations:3 failed', (p3_out[i] == e)
335
335
  end
336
336
 
@@ -345,13 +345,13 @@ module Test
345
345
  retval = nil
346
346
  retval, p2_out, p3_out = test.array_op3(p1, p2)
347
347
 
348
- p2.value().each_with_index do |e, i|
348
+ p2.value.each_with_index do |e, i|
349
349
  assert 'boxed_array_invocations:5 failed', (p2_out[i] == '1inout string')
350
350
  end
351
- p2.value().each_with_index do |e, i|
351
+ p2.value.each_with_index do |e, i|
352
352
  assert 'boxed_array_invocations:5 failed', (p3_out[i] == '1inout string')
353
353
  end
354
- p1.value().each_with_index do |e, i|
354
+ p1.value.each_with_index do |e, i|
355
355
  assert 'boxed_array_invocations:5 failed', (retval[i] == e)
356
356
  end
357
357
 
@@ -360,10 +360,10 @@ module Test
360
360
  p3_out = nil
361
361
  p2_out, p3_out = test.array_op4(p1.value, p2.value)
362
362
 
363
- p2.value().each_with_index do |e, i|
363
+ p2.value.each_with_index do |e, i|
364
364
  assert 'boxed_array_invocations:6 failed', (p2_out[i] == '1inout string')
365
365
  end
366
- p1.value().each_with_index do |e, i|
366
+ p1.value.each_with_index do |e, i|
367
367
  assert 'boxed_array_invocations:6 failed', (p3_out[i] == e)
368
368
  end
369
369
  end
@@ -488,10 +488,10 @@ begin
488
488
 
489
489
  # shutdown test service
490
490
 
491
- test.shutdown()
491
+ test.shutdown
492
492
 
493
493
  ensure
494
494
 
495
- orb.destroy()
495
+ orb.destroy
496
496
 
497
497
  end
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -13,9 +13,9 @@
13
13
  require 'optparse'
14
14
 
15
15
  OPTIONS = {
16
- :use_implement => false,
17
- :orb_debuglevel => 0,
18
- :iorfile => 'server.ior'
16
+ use_implement: false,
17
+ orb_debuglevel: 0,
18
+ iorfile: 'server.ior'
19
19
  }
20
20
 
21
21
  ARGV.options do |opts|
@@ -61,7 +61,7 @@ class Test_impl < POA::Test
61
61
  def basic_op1(p1, p2)
62
62
  p3 = p2 * 5
63
63
  p2 = p2 * 3
64
- retval = p1.nil?() ? nil : p1 * 3
64
+ retval = p1.nil? ? nil : p1 * 3
65
65
  [retval, p2, p3]
66
66
  end
67
67
 
@@ -235,7 +235,7 @@ class Test_impl < POA::Test
235
235
  end
236
236
 
237
237
  def shutdown()
238
- @orb.shutdown()
238
+ @orb.shutdown
239
239
  end
240
240
  end # of servant Test_impl
241
241
 
@@ -251,17 +251,17 @@ poa_man.activate
251
251
 
252
252
  test_srv = Test_impl.new(orb)
253
253
 
254
- test_obj = test_srv._this()
254
+ test_obj = test_srv._this
255
255
 
256
256
  ior = orb.object_to_string(test_obj)
257
257
 
258
- open(OPTIONS[:iorfile], 'w') { |io|
258
+ File.open(OPTIONS[:iorfile], 'w') { |io|
259
259
  io.write ior
260
260
  }
261
261
 
262
262
  Signal.trap('INT') do
263
263
  puts 'SIGINT - shutting down ORB...'
264
- orb.shutdown()
264
+ orb.shutdown
265
265
  end
266
266
 
267
267
  if Signal.list.has_key?('USR2')
@@ -14,9 +14,9 @@ require 'lib/assert.rb'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'file://server.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://server.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -76,7 +76,7 @@ begin
76
76
 
77
77
  assert 'incorrect repository id returned (2)', id == Test::Hello._tc.id
78
78
 
79
- the_string = hello_obj.get_string()
79
+ the_string = hello_obj.get_string
80
80
 
81
81
  puts "string returned <#{the_string}>"
82
82
 
@@ -102,10 +102,10 @@ begin
102
102
  hello2_obj = Test::Hello._narrow(obj)
103
103
  end
104
104
 
105
- hello2_obj.shutdown()
105
+ hello2_obj.shutdown
106
106
 
107
107
  ensure
108
108
 
109
- orb.destroy()
109
+ orb.destroy
110
110
 
111
111
  end
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -58,7 +58,7 @@ class MyHello < POA::Test::Hello
58
58
  end
59
59
 
60
60
  def shutdown()
61
- @orb.shutdown()
61
+ @orb.shutdown
62
62
  end
63
63
 
64
64
  ## overrides for standard CORBA::Object methods
@@ -67,7 +67,7 @@ class MyHello < POA::Test::Hello
67
67
  # create second servant and
68
68
  hello_srv = MyHello2.new(@orb)
69
69
  # activate and return object ref
70
- hello_srv._this()
70
+ hello_srv._this
71
71
  end
72
72
  end # of servant MyHello
73
73
 
@@ -81,7 +81,7 @@ class MyHello2 < POA::Test::Hello
81
81
  end
82
82
 
83
83
  def shutdown()
84
- @orb.shutdown()
84
+ @orb.shutdown
85
85
  end
86
86
 
87
87
  ## overrides for standard CORBA::Object methods
@@ -105,17 +105,17 @@ poa_man.activate
105
105
 
106
106
  hello_srv = MyHello.new(orb)
107
107
 
108
- hello_obj = hello_srv._this()
108
+ hello_obj = hello_srv._this
109
109
 
110
110
  hello_ior = orb.object_to_string(hello_obj)
111
111
 
112
- open(OPTIONS[:iorfile], 'w') { |io|
112
+ File.open(OPTIONS[:iorfile], 'w') { |io|
113
113
  io.write hello_ior
114
114
  }
115
115
 
116
116
  Signal.trap('INT') do
117
117
  puts 'SIGINT - shutting down ORB...'
118
- orb.shutdown()
118
+ orb.shutdown
119
119
  end
120
120
 
121
121
  if Signal.list.has_key?('USR2')
data/test/POA/run_test.rb CHANGED
@@ -10,8 +10,8 @@
10
10
  #--------------------------------------------------------------------
11
11
 
12
12
  OPTIONS = {
13
- :debug_opt => '',
14
- :use_implement => '--use-implement'
13
+ debug_opt: '',
14
+ use_implement: '--use-implement'
15
15
  }
16
16
 
17
17
  require 'optparse'
data/test/POA/test.rb CHANGED
@@ -14,9 +14,9 @@ require 'lib/assert'
14
14
  include TestUtil::Assertions
15
15
 
16
16
  OPTIONS = {
17
- :use_implement => false,
18
- :orb_debuglevel => 0,
19
- :iorfile => 'server.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'server.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -60,7 +60,7 @@ class MyHello < POA::Test::Hello
60
60
  end
61
61
 
62
62
  def shutdown()
63
- @orb.shutdown()
63
+ @orb.shutdown
64
64
  end
65
65
  end # of servant MyHello
66
66