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
@@ -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://ins.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://ins.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -70,14 +70,14 @@ begin
70
70
  # narrow object ref and call
71
71
  hello_obj = Test::Hello._narrow(obj)
72
72
 
73
- the_string = hello_obj.get_string()
73
+ the_string = hello_obj.get_string
74
74
 
75
75
  puts "string returned <#{the_string}>"
76
76
 
77
- hello_obj.shutdown()
77
+ hello_obj.shutdown
78
78
 
79
79
  ensure
80
80
 
81
- orb.destroy()
81
+ orb.destroy
82
82
 
83
83
  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'
@@ -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://ins.ior'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ iorfile: 'file://ins.ior'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -61,7 +61,7 @@ class MyHello < POA::Test::Hello
61
61
  end
62
62
 
63
63
  def shutdown()
64
- @orb.shutdown()
64
+ @orb.shutdown
65
65
  end
66
66
  end # of servant MyHello
67
67
 
@@ -87,7 +87,7 @@ poa_man.activate
87
87
  # create and activate servant
88
88
  hello_srv = MyHello.new(orb)
89
89
 
90
- hello_obj = hello_srv._this()
90
+ hello_obj = hello_srv._this
91
91
 
92
92
  # register object reference with Naming service
93
93
  name = [CosNaming::NameComponent.new('Hello', 'ior')]
@@ -97,7 +97,7 @@ nc.bind(name, hello_obj)
97
97
  # initialize signal handling
98
98
  Signal.trap('INT') do
99
99
  puts 'SIGINT - shutting down ORB...'
100
- orb.shutdown()
100
+ orb.shutdown
101
101
  end
102
102
 
103
103
  if Signal.list.has_key?('USR2')
@@ -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,7 +12,7 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false
15
+ use_implement: false
16
16
  }
17
17
 
18
18
  ORB_ARG = []
@@ -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 => 'corbaloc:iiop:192.3.47.5/10007/RandomObject'
17
+ use_implement: false,
18
+ orb_debuglevel: 0,
19
+ ior: 'corbaloc:iiop:192.3.47.5/10007/RandomObject'
20
20
  }
21
21
 
22
22
  ARGV.options do |opts|
@@ -65,11 +65,11 @@ def test_timeout(object)
65
65
 
66
66
  assert_not 'Nil Test::Hello reference', CORBA::is_nil(hello)
67
67
 
68
- the_string = hello.get_string()
68
+ the_string = hello.get_string
69
69
 
70
70
  puts "string returned <#{the_string}>"
71
71
 
72
- hello.shutdown()
72
+ hello.shutdown
73
73
  rescue CORBA::Exception
74
74
  # Get the elampsed time
75
75
  el = Time.now - profile_timer
@@ -101,9 +101,9 @@ begin
101
101
  policy_current.set_policy_overrides(policy_list,
102
102
  CORBA::ADD_OVERRIDE)
103
103
 
104
- policy_list.each { |p| p.destroy() }
104
+ policy_list.each { |p| p.destroy }
105
105
 
106
106
  test_timeout(tmp)
107
107
  ensure
108
- orb.destroy()
108
+ orb.destroy
109
109
  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'
data/test/DII/client.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
- :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|
@@ -59,7 +59,7 @@ begin
59
59
  ]
60
60
  req.set_return_type(CORBA::_tc_string)
61
61
 
62
- the_string = req.invoke()
62
+ the_string = req.invoke
63
63
 
64
64
  puts "string returned <#{the_string}>"
65
65
  puts
@@ -72,9 +72,9 @@ begin
72
72
  ]
73
73
  req.set_return_type(CORBA::_tc_string)
74
74
 
75
- req.send_deferred()
75
+ req.send_deferred
76
76
  puts 'getting response...'
77
- req.get_response()
77
+ req.get_response
78
78
 
79
79
  puts "string returned <#{req.return_value}>"
80
80
  puts
@@ -92,12 +92,12 @@ begin
92
92
  ]
93
93
  req.set_return_type(CORBA::_tc_string)
94
94
 
95
- req.send_deferred()
95
+ req.send_deferred
96
96
  begin
97
97
  puts 'sleeping...'
98
98
  sleep(0.01)
99
99
  puts 'polling for response...'
100
- end while !req.poll_response()
100
+ end while !req.poll_response
101
101
 
102
102
  puts "string returned <#{req.return_value}>"
103
103
  puts
@@ -105,10 +105,10 @@ begin
105
105
 
106
106
  puts '***** Oneway shutdown'
107
107
  req = obj._request('shutdown')
108
- req.send_oneway()
108
+ req.send_oneway
109
109
 
110
110
  ensure
111
111
 
112
- orb.destroy()
112
+ orb.destroy
113
113
 
114
114
  end
data/test/DII/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/DII/server.rb CHANGED
@@ -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
  end # of servant MyHello
64
64
 
@@ -74,17 +74,17 @@ poa_man.activate
74
74
 
75
75
  hello_srv = MyHello.new(orb)
76
76
 
77
- hello_obj = hello_srv._this()
77
+ hello_obj = hello_srv._this
78
78
 
79
79
  hello_ior = orb.object_to_string(hello_obj)
80
80
 
81
- open(OPTIONS[:iorfile], 'w') { |io|
81
+ File.open(OPTIONS[:iorfile], 'w') { |io|
82
82
  io.write hello_ior
83
83
  }
84
84
 
85
85
  Signal.trap('INT') do
86
86
  puts 'SIGINT - shutting down ORB...'
87
- orb.shutdown()
87
+ orb.shutdown
88
88
  end
89
89
 
90
90
  if Signal.list.has_key?('USR2')
data/test/DSI/client.rb CHANGED
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'file://server.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'file://server.ior'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -50,7 +50,7 @@ end
50
50
 
51
51
  orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
52
52
 
53
- # #s = open(OPTIONS[:iorfile], 'r').read
53
+ # #s = File.open(OPTIONS[:iorfile], 'r').read
54
54
 
55
55
  obj = orb.string_to_object(OPTIONS[:iorfile])
56
56
 
@@ -60,6 +60,6 @@ the_string, the_length = hello_obj.echo('Hello world!')
60
60
 
61
61
  puts "string returned <#{the_string}>; length = #{the_length}"
62
62
 
63
- hello_obj.shutdown()
63
+ hello_obj.shutdown
64
64
 
65
- orb.destroy()
65
+ orb.destroy
data/test/DSI/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/DSI/server.rb CHANGED
@@ -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|
@@ -51,8 +51,8 @@ class MyHello < PortableServer::DynamicImplementation
51
51
 
52
52
  OPTABLE = {
53
53
  'echo' => {
54
- :result_type => CORBA._tc_string,
55
- :arg_list => [
54
+ result_type: CORBA._tc_string,
55
+ arg_list: [
56
56
  ['message', CORBA::ARG_IN, CORBA._tc_string],
57
57
  ['msglen', CORBA::ARG_OUT, CORBA._tc_long]] }
58
58
  }
@@ -69,7 +69,7 @@ class MyHello < PortableServer::DynamicImplementation
69
69
  end
70
70
 
71
71
  def shutdown()
72
- @orb.shutdown()
72
+ @orb.shutdown
73
73
  end
74
74
  end # of servant MyHello
75
75
 
@@ -85,17 +85,17 @@ poa_man.activate
85
85
 
86
86
  hello_srv = MyHello.new(orb)
87
87
 
88
- hello_obj = hello_srv._this()
88
+ hello_obj = hello_srv._this
89
89
 
90
90
  hello_ior = orb.object_to_string(hello_obj)
91
91
 
92
- open(OPTIONS[:iorfile], 'w') { |io|
92
+ File.open(OPTIONS[:iorfile], 'w') { |io|
93
93
  io.write hello_ior
94
94
  }
95
95
 
96
96
  Signal.trap('INT') do
97
97
  puts 'SIGINT - shutting down ORB...'
98
- orb.shutdown()
98
+ orb.shutdown
99
99
  end
100
100
 
101
101
  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|
@@ -102,16 +102,16 @@ begin
102
102
 
103
103
  assert 'ERROR', 99 == hello_obj.myResult
104
104
 
105
- hello_obj.shutdown()
105
+ hello_obj.shutdown
106
106
 
107
107
  assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
108
108
 
109
- hello_obj._free_ref()
109
+ hello_obj._free_ref
110
110
 
111
111
  assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
112
112
 
113
113
  ensure
114
114
 
115
- orb.destroy()
115
+ orb.destroy
116
116
 
117
117
  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|
@@ -92,7 +92,7 @@ class MyHello < POA::Test::Hello
92
92
  end
93
93
 
94
94
  def shutdown()
95
- @orb.shutdown()
95
+ @orb.shutdown
96
96
  end
97
97
  end # of servant MyHello
98
98
 
@@ -108,17 +108,17 @@ poa_man.activate
108
108
 
109
109
  hello_srv = MyHello.new(orb)
110
110
 
111
- hello_obj = hello_srv._this()
111
+ hello_obj = hello_srv._this
112
112
 
113
113
  hello_ior = orb.object_to_string(hello_obj)
114
114
 
115
- open(OPTIONS[:iorfile], 'w') { |io|
115
+ File.open(OPTIONS[:iorfile], 'w') { |io|
116
116
  io.write hello_ior
117
117
  }
118
118
 
119
119
  Signal.trap('INT') do
120
120
  puts 'SIGINT - shutting down ORB...'
121
- orb.shutdown()
121
+ orb.shutdown
122
122
  end
123
123
 
124
124
  if Signal.list.has_key?('USR2')
data/test/Hello/client.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
- :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|
@@ -58,20 +58,20 @@ begin
58
58
 
59
59
  hello_obj = Test::Hello._narrow(obj)
60
60
 
61
- the_string = hello_obj.get_string()
61
+ the_string = hello_obj.get_string
62
62
 
63
63
  puts "string returned <#{the_string}>"
64
64
 
65
- hello_obj.shutdown()
65
+ hello_obj.shutdown
66
66
 
67
67
  assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
68
68
 
69
- hello_obj._free_ref()
69
+ hello_obj._free_ref
70
70
 
71
71
  assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
72
72
 
73
73
  ensure
74
74
 
75
- orb.destroy()
75
+ orb.destroy
76
76
 
77
77
  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'
data/test/Hello/server.rb CHANGED
@@ -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
  end # of servant MyHello
64
64
 
@@ -74,17 +74,17 @@ poa_man.activate
74
74
 
75
75
  hello_srv = MyHello.new(orb)
76
76
 
77
- hello_obj = hello_srv._this()
77
+ hello_obj = hello_srv._this
78
78
 
79
79
  hello_ior = orb.object_to_string(hello_obj)
80
80
 
81
- open(OPTIONS[:iorfile], 'w') { |io|
81
+ File.open(OPTIONS[:iorfile], 'w') { |io|
82
82
  io.write hello_ior
83
83
  }
84
84
 
85
85
  Signal.trap('INT') do
86
86
  puts 'SIGINT - shutting down ORB...'
87
- orb.shutdown()
87
+ orb.shutdown
88
88
  end
89
89
 
90
90
  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|
@@ -80,24 +80,24 @@ begin
80
80
 
81
81
  hello_obj = Test::Hello._narrow(obj)
82
82
 
83
- hello_obj.r_super()
83
+ hello_obj.r_super
84
84
 
85
- hello_obj2 = Test::Hello._narrow(hello_obj.r_self())
85
+ hello_obj2 = Test::Hello._narrow(hello_obj.r_self)
86
86
 
87
- the_string = hello_obj2.get_string()
87
+ the_string = hello_obj2.get_string
88
88
 
89
89
  puts "string returned <#{the_string}>"
90
90
 
91
- hello_obj.shutdown()
91
+ hello_obj.shutdown
92
92
 
93
93
  assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
94
94
 
95
- hello_obj._free_ref()
95
+ hello_obj._free_ref
96
96
 
97
97
  assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
98
98
 
99
99
  ensure
100
100
 
101
- orb.destroy()
101
+ orb.destroy
102
102
 
103
103
  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|
@@ -67,7 +67,7 @@ class MyHello < POA::Test::Hello
67
67
  end
68
68
 
69
69
  def shutdown()
70
- @orb.shutdown()
70
+ @orb.shutdown
71
71
  end
72
72
  end # of servant MyHello
73
73
 
@@ -83,17 +83,17 @@ poa_man.activate
83
83
 
84
84
  hello_srv = MyHello.new(orb)
85
85
 
86
- hello_obj = hello_srv._this()
86
+ hello_obj = hello_srv._this
87
87
 
88
88
  hello_ior = orb.object_to_string(hello_obj)
89
89
 
90
- open(OPTIONS[:iorfile], 'w') { |io|
90
+ File.open(OPTIONS[:iorfile], 'w') { |io|
91
91
  io.write hello_ior
92
92
  }
93
93
 
94
94
  Signal.trap('INT') do
95
95
  puts 'SIGINT - shutting down ORB...'
96
- orb.shutdown()
96
+ orb.shutdown
97
97
  end
98
98
 
99
99
  if Signal.list.has_key?('USR2')
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :serverport => 9999
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ serverport: 9999
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -55,7 +55,7 @@ obj = orb.string_to_object("corbaloc:iiop:1.2@localhost:#{OPTIONS[:serverport]}/
55
55
 
56
56
  hello_obj = Test::Hello._narrow(obj)
57
57
 
58
- the_string = hello_obj.get_string()
58
+ the_string = hello_obj.get_string
59
59
 
60
60
  puts "servant Hello returned <#{the_string}>"
61
61
 
@@ -63,10 +63,10 @@ obj = orb.string_to_object("corbaloc:iiop:1.2@localhost:#{OPTIONS[:serverport]}/
63
63
 
64
64
  hello_obj = Test::Hello._narrow(obj)
65
65
 
66
- the_string = hello_obj.get_string()
66
+ the_string = hello_obj.get_string
67
67
 
68
68
  puts "servant Hello2 returned <#{the_string}>"
69
69
 
70
- hello_obj.shutdown()
70
+ hello_obj.shutdown
71
71
 
72
- orb.destroy()
72
+ orb.destroy