r2corba 1.6.2-universal-java → 1.7.1-universal-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +5 -5
  3. data/lib/corba/cbase/ORB.rb +9 -8
  4. data/lib/corba/cbase/Request.rb +10 -12
  5. data/lib/corba/cbase/Streams.rb +20 -20
  6. data/lib/corba/cbase/Typecode.rb +12 -41
  7. data/lib/corba/cbase/Values.rb +1 -4
  8. data/lib/corba/cbase/exception.rb +0 -2
  9. data/lib/corba/cbase/poa.rb +2 -2
  10. data/lib/corba/cbase/policies.rb +9 -8
  11. data/lib/corba/cbase/require.rb +1 -1
  12. data/lib/corba/cmds/base.rb +1 -2
  13. data/lib/corba/common/Any.rb +2 -3
  14. data/lib/corba/common/IDL.rb +3 -7
  15. data/lib/corba/common/ORB.rb +19 -19
  16. data/lib/corba/common/Object.rb +32 -22
  17. data/lib/corba/common/Request.rb +0 -2
  18. data/lib/corba/common/Servant.rb +4 -9
  19. data/lib/corba/common/Stub.rb +9 -7
  20. data/lib/corba/common/Typecode.rb +44 -27
  21. data/lib/corba/common/Values.rb +4 -5
  22. data/lib/corba/common/require.rb +1 -3
  23. data/lib/corba/common/version.rb +2 -4
  24. data/lib/corba/idl/IDL.rb +0 -2
  25. data/lib/corba/idl/require.rb +2 -2
  26. data/lib/corba/jbase/Any.rb +34 -35
  27. data/lib/corba/jbase/ORB.rb +5 -6
  28. data/lib/corba/jbase/Object.rb +10 -10
  29. data/lib/corba/jbase/Request.rb +8 -9
  30. data/lib/corba/jbase/Servant.rb +32 -36
  31. data/lib/corba/jbase/ServerRequest.rb +10 -8
  32. data/lib/corba/jbase/Streams.rb +80 -78
  33. data/lib/corba/jbase/Stub.rb +1 -1
  34. data/lib/corba/jbase/Typecode.rb +18 -46
  35. data/lib/corba/jbase/Values.rb +0 -1
  36. data/lib/corba/jbase/exception.rb +2 -1
  37. data/lib/corba/jbase/poa.rb +18 -17
  38. data/lib/corba/jbase/policies.rb +42 -45
  39. data/lib/corba/jbase/require.rb +3 -3
  40. data/lib/corba/naming_service.rb +1 -1
  41. data/lib/corba/poa.rb +1 -1
  42. data/lib/corba/policies.rb +2 -2
  43. data/lib/corba/svcs/ins/cos_naming.rb +29 -18
  44. data/lib/corba/svcs/ins/ins.rb +38 -38
  45. data/lib/corba/svcs/ins/naming_service.rb +6 -6
  46. data/lib/corba.rb +1 -1
  47. data/lib/ridlbe/ruby/config.rb +2 -8
  48. data/lib/ridlbe/ruby/orb.pidlc +0 -0
  49. data/lib/ridlbe/ruby/walker.rb +94 -108
  50. data/rakelib/config.rb +9 -6
  51. data/rakelib/gem.rake +0 -30
  52. data/test/BiDirectional/client.rb +7 -7
  53. data/test/BiDirectional/run_test.rb +2 -2
  54. data/test/BiDirectional/server.rb +13 -13
  55. data/test/CORBA_Services/Naming/BindingIterator/client.rb +9 -9
  56. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +2 -2
  57. data/test/CORBA_Services/Naming/BindingIterator/server.rb +6 -6
  58. data/test/CORBA_Services/Naming/Corbaname/client.rb +6 -6
  59. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +2 -2
  60. data/test/CORBA_Services/Naming/Corbaname/server.rb +8 -8
  61. data/test/CORBA_Services/Naming/Simple/client.rb +6 -6
  62. data/test/CORBA_Services/Naming/Simple/run_test.rb +2 -2
  63. data/test/CORBA_Services/Naming/Simple/server.rb +6 -6
  64. data/test/Collocation/run_test.rb +2 -2
  65. data/test/Collocation/test.rb +1 -1
  66. data/test/Connect_Timeout/client.rb +7 -7
  67. data/test/Connect_Timeout/run_test.rb +2 -2
  68. data/test/DII/client.rb +10 -10
  69. data/test/DII/run_test.rb +2 -2
  70. data/test/DII/server.rb +7 -7
  71. data/test/DSI/client.rb +6 -6
  72. data/test/DSI/run_test.rb +2 -2
  73. data/test/DSI/server.rb +9 -9
  74. data/test/Exceptions/client.rb +6 -6
  75. data/test/Exceptions/run_test.rb +2 -2
  76. data/test/Exceptions/server.rb +7 -7
  77. data/test/Hello/client.rb +7 -7
  78. data/test/Hello/run_test.rb +2 -2
  79. data/test/Hello/server.rb +7 -7
  80. data/test/IDL_Test/client.rb +9 -9
  81. data/test/IDL_Test/run_test.rb +2 -2
  82. data/test/IDL_Test/server.rb +7 -7
  83. data/test/IORMap/client.rb +7 -7
  84. data/test/IORMap/run_test.rb +2 -2
  85. data/test/IORMap/server.rb +9 -9
  86. data/test/IORTable/client.rb +7 -7
  87. data/test/IORTable/run_test.rb +2 -2
  88. data/test/IORTable/server.rb +10 -10
  89. data/test/Implicit_Conversion/client.rb +5 -5
  90. data/test/Implicit_Conversion/run_test.rb +2 -2
  91. data/test/Implicit_Conversion/server.rb +7 -7
  92. data/test/Multi_Threading/Multiple_ORB/client.rb +6 -6
  93. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
  94. data/test/Multi_Threading/Multiple_ORB/server.rb +5 -5
  95. data/test/Multi_Threading/Simple/client.rb +6 -6
  96. data/test/Multi_Threading/Simple/run_test.rb +2 -2
  97. data/test/Multi_Threading/Simple/server.rb +8 -8
  98. data/test/Multi_Threading/Threads/client.rb +6 -6
  99. data/test/Multi_Threading/Threads/run_test.rb +2 -2
  100. data/test/Multi_Threading/Threads/server.rb +9 -9
  101. data/test/Multi_Threading/Threads/watchdog.rb +7 -7
  102. data/test/Multiple_Servant_Interfaces/client.rb +7 -7
  103. data/test/Multiple_Servant_Interfaces/run_test.rb +2 -2
  104. data/test/Multiple_Servant_Interfaces/server.rb +7 -7
  105. data/test/Nil/run_test.rb +2 -2
  106. data/test/Nil/test.rb +4 -4
  107. data/test/OBV/AbstractInterface/client.rb +9 -9
  108. data/test/OBV/AbstractInterface/run_test.rb +2 -2
  109. data/test/OBV/AbstractInterface/server.rb +7 -7
  110. data/test/OBV/Custom/client.rb +5 -5
  111. data/test/OBV/Custom/run_test.rb +2 -2
  112. data/test/OBV/Custom/server.rb +7 -7
  113. data/test/OBV/Simple/client.rb +5 -5
  114. data/test/OBV/Simple/run_test.rb +2 -2
  115. data/test/OBV/Simple/server.rb +7 -7
  116. data/test/OBV/Simple_Event/client.rb +5 -5
  117. data/test/OBV/Simple_Event/run_test.rb +2 -2
  118. data/test/OBV/Simple_Event/server.rb +7 -7
  119. data/test/OBV/Supports/client.rb +17 -17
  120. data/test/OBV/Supports/run_test.rb +2 -2
  121. data/test/OBV/Supports/server.rb +7 -7
  122. data/test/OBV/Tree/client.rb +6 -6
  123. data/test/OBV/Tree/run_test.rb +2 -2
  124. data/test/OBV/Tree/server.rb +7 -7
  125. data/test/OBV/Truncatable/client.rb +5 -5
  126. data/test/OBV/Truncatable/run_test.rb +2 -2
  127. data/test/OBV/Truncatable/server.rb +6 -6
  128. data/test/OBV/ValueBox/client.rb +20 -20
  129. data/test/OBV/ValueBox/run_test.rb +2 -2
  130. data/test/OBV/ValueBox/server.rb +8 -8
  131. data/test/Object/client.rb +6 -6
  132. data/test/Object/run_test.rb +2 -2
  133. data/test/Object/server.rb +9 -9
  134. data/test/POA/run_test.rb +2 -2
  135. data/test/POA/test.rb +4 -4
  136. data/test/Param_Test/client.rb +6 -6
  137. data/test/Param_Test/run_test.rb +2 -2
  138. data/test/Param_Test/server.rb +6 -6
  139. data/test/Performance/Simple/client.rb +6 -6
  140. data/test/Performance/Simple/run_test.rb +2 -2
  141. data/test/Performance/Simple/server.rb +7 -7
  142. data/test/Policies/run_test.rb +2 -2
  143. data/test/Policies/test.rb +4 -4
  144. data/test/Timeout/client.rb +11 -11
  145. data/test/Timeout/run_test.rb +2 -2
  146. data/test/Timeout/server.rb +9 -9
  147. data/test/lib/test.rb +5 -5
  148. data/test/test_runner.rb +8 -7
  149. metadata +3 -3
@@ -12,9 +12,9 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server'
18
18
  }
19
19
 
20
20
  ARGV.options do |opts|
@@ -59,7 +59,7 @@ class MyHello < POA::Test::Hello
59
59
  end
60
60
 
61
61
  def shutdown()
62
- @orb.shutdown()
62
+ @orb.shutdown
63
63
  end
64
64
  end # of servant MyHello
65
65
 
@@ -67,7 +67,7 @@ orb_trds = []
67
67
 
68
68
  Signal.trap('INT') do
69
69
  puts 'SIGINT - shutting down ORB...'
70
- orb_trds.each { |t| t[:orb].shutdown() }
70
+ orb_trds.each { |t| t[:orb].shutdown }
71
71
  end
72
72
 
73
73
  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|
@@ -77,16 +77,16 @@ begin
77
77
  clt_trds.each { |t| t.join }
78
78
  end
79
79
 
80
- hello_obj.shutdown()
80
+ hello_obj.shutdown
81
81
 
82
82
  assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
83
83
 
84
- hello_obj._free_ref()
84
+ hello_obj._free_ref
85
85
 
86
86
  assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
87
87
 
88
88
  ensure
89
89
 
90
- orb.destroy()
90
+ orb.destroy
91
91
 
92
92
  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
  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')
@@ -108,7 +108,7 @@ else
108
108
  # cooperative ORB event loop allowing multiple Ruby threads executing
109
109
  # ORB#run to operate in parallel.
110
110
  orb_trds = (0..1).collect do
111
- Thread.new() do
111
+ Thread.new do
112
112
  orb.run
113
113
  end
114
114
  end
@@ -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|
@@ -62,16 +62,16 @@ begin
62
62
 
63
63
  puts "Client - got #{hello_strings.length} strings."
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'
@@ -12,10 +12,10 @@
12
12
  require 'optparse'
13
13
 
14
14
  OPTIONS = {
15
- :use_implement => false,
16
- :orb_debuglevel => 0,
17
- :iorfile => 'server.ior',
18
- :watchdog_iorfile => 'file://watchdog.ior'
15
+ use_implement: false,
16
+ orb_debuglevel: 0,
17
+ iorfile: 'server.ior',
18
+ watchdog_iorfile: 'file://watchdog.ior'
19
19
  }
20
20
 
21
21
  ARGV.options do |opts|
@@ -74,9 +74,9 @@ class MyHello < POA::Test::Hello
74
74
  def shutdown()
75
75
  @stop = true
76
76
  @wdt.join
77
- @watchdog.shutdown()
77
+ @watchdog.shutdown
78
78
  puts %Q{Server - pinged watchdog #{@count} times.}
79
- @orb.shutdown()
79
+ @orb.shutdown
80
80
  end
81
81
  end # of servant MyHello
82
82
 
@@ -96,17 +96,17 @@ watchdog_obj = Test::Watchdog._narrow(obj)
96
96
 
97
97
  hello_srv = MyHello.new(orb, watchdog_obj)
98
98
 
99
- hello_obj = hello_srv._this()
99
+ hello_obj = hello_srv._this
100
100
 
101
101
  hello_ior = orb.object_to_string(hello_obj)
102
102
 
103
- open(OPTIONS[:iorfile], 'w') { |io|
103
+ File.open(OPTIONS[:iorfile], 'w') { |io|
104
104
  io.write hello_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')
@@ -3,9 +3,9 @@
3
3
  require 'optparse'
4
4
 
5
5
  OPTIONS = {
6
- :use_implement => false,
7
- :orb_debuglevel => 0,
8
- :iorfile => 'watchdog.ior'
6
+ use_implement: false,
7
+ orb_debuglevel: 0,
8
+ iorfile: 'watchdog.ior'
9
9
  }
10
10
 
11
11
  ARGV.options do |opts|
@@ -51,7 +51,7 @@ class MyWatchdog < POA::Test::Watchdog
51
51
 
52
52
  def shutdown()
53
53
  puts %Q{Watchdog - received #{@count} pings}
54
- @orb.shutdown()
54
+ @orb.shutdown
55
55
  end
56
56
  end # of servant MyWatchdog
57
57
 
@@ -67,17 +67,17 @@ poa_man.activate
67
67
 
68
68
  srv = MyWatchdog.new(orb)
69
69
 
70
- obj = srv._this()
70
+ obj = srv._this
71
71
 
72
72
  ior = orb.object_to_string(obj)
73
73
 
74
- open(OPTIONS[:iorfile], 'w') { |io|
74
+ File.open(OPTIONS[:iorfile], 'w') { |io|
75
75
  io.write ior
76
76
  }
77
77
 
78
78
  Signal.trap('INT') do
79
79
  puts 'SIGINT - shutting down ORB...'
80
- orb.shutdown()
80
+ orb.shutdown
81
81
  end
82
82
 
83
83
  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
- :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|
@@ -56,14 +56,14 @@ hello_obj = Test::Hello._narrow(obj)
56
56
 
57
57
  hello_2_obj = Test::Hello_2._narrow(obj)
58
58
 
59
- the_string = hello_obj.get_string()
59
+ the_string = hello_obj.get_string
60
60
 
61
61
  puts "string returned from Test::Hello <#{the_string}>"
62
62
 
63
- the_string = hello_2_obj.get_string_2()
63
+ the_string = hello_2_obj.get_string_2
64
64
 
65
65
  puts "string returned from Test::Hello_2 <#{the_string}>"
66
66
 
67
- hello_obj.shutdown()
67
+ hello_obj.shutdown
68
68
 
69
- orb.destroy()
69
+ orb.destroy
@@ -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|
@@ -65,7 +65,7 @@ class MyHello < PortableServer::Servant
65
65
  end
66
66
 
67
67
  def shutdown()
68
- @orb.shutdown()
68
+ @orb.shutdown
69
69
  end
70
70
  end # of servant MyHello
71
71
 
@@ -81,17 +81,17 @@ poa_man.activate
81
81
 
82
82
  hello_srv = MyHello.new(orb)
83
83
 
84
- hello_obj = hello_srv._this()
84
+ hello_obj = hello_srv._this
85
85
 
86
86
  hello_ior = orb.object_to_string(hello_obj)
87
87
 
88
- open(OPTIONS[:iorfile], 'w') { |io|
88
+ File.open(OPTIONS[:iorfile], 'w') { |io|
89
89
  io.write hello_ior
90
90
  }
91
91
 
92
92
  Signal.trap('INT') do
93
93
  puts 'SIGINT - shutting down ORB...'
94
- orb.shutdown()
94
+ orb.shutdown
95
95
  end
96
96
 
97
97
  if Signal.list.has_key?('USR2')
data/test/Nil/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/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