r2corba 1.6.2-universal-java → 1.7.0-universal-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +5 -5
  3. data/lib/corba/cbase/Request.rb +6 -6
  4. data/lib/corba/cmds/base.rb +1 -1
  5. data/lib/corba/common/Any.rb +1 -1
  6. data/lib/corba/common/Values.rb +4 -4
  7. data/lib/corba/common/version.rb +2 -2
  8. data/lib/corba/jbase/Servant.rb +4 -4
  9. data/lib/corba/svcs/ins/cos_naming.rb +6 -6
  10. data/lib/corba/svcs/ins/ins.rb +33 -33
  11. data/lib/corba/svcs/ins/naming_service.rb +5 -5
  12. data/rakelib/config.rb +9 -6
  13. data/test/BiDirectional/client.rb +7 -7
  14. data/test/BiDirectional/run_test.rb +2 -2
  15. data/test/BiDirectional/server.rb +13 -13
  16. data/test/CORBA_Services/Naming/BindingIterator/client.rb +9 -9
  17. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +2 -2
  18. data/test/CORBA_Services/Naming/BindingIterator/server.rb +6 -6
  19. data/test/CORBA_Services/Naming/Corbaname/client.rb +6 -6
  20. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +2 -2
  21. data/test/CORBA_Services/Naming/Corbaname/server.rb +8 -8
  22. data/test/CORBA_Services/Naming/Simple/client.rb +6 -6
  23. data/test/CORBA_Services/Naming/Simple/run_test.rb +2 -2
  24. data/test/CORBA_Services/Naming/Simple/server.rb +6 -6
  25. data/test/Collocation/run_test.rb +2 -2
  26. data/test/Collocation/test.rb +1 -1
  27. data/test/Connect_Timeout/client.rb +7 -7
  28. data/test/Connect_Timeout/run_test.rb +2 -2
  29. data/test/DII/client.rb +10 -10
  30. data/test/DII/run_test.rb +2 -2
  31. data/test/DII/server.rb +7 -7
  32. data/test/DSI/client.rb +6 -6
  33. data/test/DSI/run_test.rb +2 -2
  34. data/test/DSI/server.rb +9 -9
  35. data/test/Exceptions/client.rb +6 -6
  36. data/test/Exceptions/run_test.rb +2 -2
  37. data/test/Exceptions/server.rb +7 -7
  38. data/test/Hello/client.rb +7 -7
  39. data/test/Hello/run_test.rb +2 -2
  40. data/test/Hello/server.rb +7 -7
  41. data/test/IDL_Test/client.rb +9 -9
  42. data/test/IDL_Test/run_test.rb +2 -2
  43. data/test/IDL_Test/server.rb +7 -7
  44. data/test/IORMap/client.rb +7 -7
  45. data/test/IORMap/run_test.rb +2 -2
  46. data/test/IORMap/server.rb +9 -9
  47. data/test/IORTable/client.rb +7 -7
  48. data/test/IORTable/run_test.rb +2 -2
  49. data/test/IORTable/server.rb +10 -10
  50. data/test/Implicit_Conversion/client.rb +5 -5
  51. data/test/Implicit_Conversion/run_test.rb +2 -2
  52. data/test/Implicit_Conversion/server.rb +7 -7
  53. data/test/Multi_Threading/Multiple_ORB/client.rb +6 -6
  54. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
  55. data/test/Multi_Threading/Multiple_ORB/server.rb +5 -5
  56. data/test/Multi_Threading/Simple/client.rb +6 -6
  57. data/test/Multi_Threading/Simple/run_test.rb +2 -2
  58. data/test/Multi_Threading/Simple/server.rb +8 -8
  59. data/test/Multi_Threading/Threads/client.rb +6 -6
  60. data/test/Multi_Threading/Threads/run_test.rb +2 -2
  61. data/test/Multi_Threading/Threads/server.rb +9 -9
  62. data/test/Multi_Threading/Threads/watchdog.rb +7 -7
  63. data/test/Multiple_Servant_Interfaces/client.rb +7 -7
  64. data/test/Multiple_Servant_Interfaces/run_test.rb +2 -2
  65. data/test/Multiple_Servant_Interfaces/server.rb +7 -7
  66. data/test/Nil/run_test.rb +2 -2
  67. data/test/Nil/test.rb +4 -4
  68. data/test/OBV/AbstractInterface/client.rb +9 -9
  69. data/test/OBV/AbstractInterface/run_test.rb +2 -2
  70. data/test/OBV/AbstractInterface/server.rb +7 -7
  71. data/test/OBV/Custom/client.rb +5 -5
  72. data/test/OBV/Custom/run_test.rb +2 -2
  73. data/test/OBV/Custom/server.rb +7 -7
  74. data/test/OBV/Simple/client.rb +5 -5
  75. data/test/OBV/Simple/run_test.rb +2 -2
  76. data/test/OBV/Simple/server.rb +7 -7
  77. data/test/OBV/Simple_Event/client.rb +5 -5
  78. data/test/OBV/Simple_Event/run_test.rb +2 -2
  79. data/test/OBV/Simple_Event/server.rb +7 -7
  80. data/test/OBV/Supports/client.rb +17 -17
  81. data/test/OBV/Supports/run_test.rb +2 -2
  82. data/test/OBV/Supports/server.rb +7 -7
  83. data/test/OBV/Tree/client.rb +6 -6
  84. data/test/OBV/Tree/run_test.rb +2 -2
  85. data/test/OBV/Tree/server.rb +7 -7
  86. data/test/OBV/Truncatable/client.rb +5 -5
  87. data/test/OBV/Truncatable/run_test.rb +2 -2
  88. data/test/OBV/Truncatable/server.rb +6 -6
  89. data/test/OBV/ValueBox/client.rb +20 -20
  90. data/test/OBV/ValueBox/run_test.rb +2 -2
  91. data/test/OBV/ValueBox/server.rb +8 -8
  92. data/test/Object/client.rb +6 -6
  93. data/test/Object/run_test.rb +2 -2
  94. data/test/Object/server.rb +9 -9
  95. data/test/POA/run_test.rb +2 -2
  96. data/test/POA/test.rb +4 -4
  97. data/test/Param_Test/client.rb +6 -6
  98. data/test/Param_Test/run_test.rb +2 -2
  99. data/test/Param_Test/server.rb +6 -6
  100. data/test/Performance/Simple/client.rb +6 -6
  101. data/test/Performance/Simple/run_test.rb +2 -2
  102. data/test/Performance/Simple/server.rb +7 -7
  103. data/test/Policies/run_test.rb +2 -2
  104. data/test/Policies/test.rb +4 -4
  105. data/test/Timeout/client.rb +11 -11
  106. data/test/Timeout/run_test.rb +2 -2
  107. data/test/Timeout/server.rb +9 -9
  108. data/test/lib/test.rb +5 -5
  109. data/test/test_runner.rb +8 -7
  110. metadata +2 -2
data/test/Nil/test.rb CHANGED
@@ -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
- :ior => 'foo'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ ior: 'foo'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -76,5 +76,5 @@ begin
76
76
  assert 'Not nil returned for RootPOA.the_parent', CORBA.is_nil(rootpoa.the_parent) && rootpoa.the_parent.nil?
77
77
 
78
78
  ensure
79
- orb.destroy()
79
+ orb.destroy
80
80
  end
@@ -19,10 +19,10 @@ TEST_OPERATION = 2
19
19
  TEST_EXCEPTION = 3
20
20
 
21
21
  OPTIONS = {
22
- :use_implement => false,
23
- :orb_debuglevel => 0,
24
- :iorfile => 'file://server.ior',
25
- :test => TEST_ALL
22
+ use_implement: false,
23
+ orb_debuglevel: 0,
24
+ iorfile: 'file://server.ior',
25
+ test: TEST_ALL
26
26
  }
27
27
 
28
28
  ARGV.options do |opts|
@@ -137,7 +137,7 @@ begin
137
137
  StringNodeFactory.get_factory(orb)
138
138
  TreeControllerFactory.get_factory(orb)
139
139
 
140
- package = passer.pass_state()
140
+ package = passer.pass_state
141
141
  if CORBA::is_nil(package)
142
142
  STDERR.puts "ERROR: passer.pass_state returned nil 'out' arg (#{package})"
143
143
  end
@@ -146,7 +146,7 @@ begin
146
146
  end
147
147
 
148
148
  if OPTIONS[:test] != TEST_STATE
149
- package = passer.pass_ops()
149
+ package = passer.pass_ops
150
150
  if CORBA::is_nil(package)
151
151
  STDERR.puts "ERROR: passer.pass_ops returned nil 'out' arg (#{package})"
152
152
  end
@@ -161,7 +161,7 @@ begin
161
161
  end
162
162
 
163
163
  if OPTIONS[:test] == TEST_ALL
164
- package = passer.pass_nil()
164
+ package = passer.pass_nil
165
165
  unless CORBA::is_nil(package)
166
166
  STDERR.puts "ERROR: passer.pass_state did NOT return nil 'out' arg (#{package})"
167
167
  end
@@ -169,10 +169,10 @@ begin
169
169
 
170
170
  # shutdown passer service
171
171
 
172
- passer.shutdown()
172
+ passer.shutdown
173
173
 
174
174
  ensure
175
175
 
176
- orb.destroy()
176
+ orb.destroy
177
177
 
178
178
  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|
@@ -106,7 +106,7 @@ class Passer_i < POA::Passer
106
106
  end
107
107
 
108
108
  def shutdown ()
109
- @orb.shutdown()
109
+ @orb.shutdown
110
110
  end
111
111
  end # of servant Passer_i
112
112
 
@@ -127,17 +127,17 @@ poa_man.activate
127
127
 
128
128
  passer = Passer_i.new(orb, root_poa)
129
129
 
130
- obj = passer._this()
130
+ obj = passer._this
131
131
 
132
132
  ior = orb.object_to_string(obj)
133
133
 
134
- open(OPTIONS[:iorfile], 'w') { |io|
134
+ File.open(OPTIONS[:iorfile], 'w') { |io|
135
135
  io.write ior
136
136
  }
137
137
 
138
138
  Signal.trap('INT') do
139
139
  puts 'SIGINT - shutting down ORB...'
140
- orb.shutdown()
140
+ orb.shutdown
141
141
  end
142
142
 
143
143
  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,10 +76,10 @@ begin
76
76
 
77
77
  # shutdown checkpoint service
78
78
 
79
- checkpoint.shutdown()
79
+ checkpoint.shutdown
80
80
 
81
81
  ensure
82
82
 
83
- orb.destroy()
83
+ orb.destroy
84
84
 
85
85
  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|
@@ -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|
@@ -76,10 +76,10 @@ begin
76
76
 
77
77
  # shutdown checkpoint service
78
78
 
79
- checkpoint.shutdown()
79
+ checkpoint.shutdown
80
80
 
81
81
  ensure
82
82
 
83
- orb.destroy()
83
+ orb.destroy
84
84
 
85
85
  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|
@@ -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|
@@ -76,10 +76,10 @@ begin
76
76
 
77
77
  # shutdown checkpoint service
78
78
 
79
- checkpoint.shutdown()
79
+ checkpoint.shutdown
80
80
 
81
81
  ensure
82
82
 
83
- orb.destroy()
83
+ orb.destroy
84
84
 
85
85
  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|
@@ -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')