r2corba 1.5.1-x64-mingw32 → 1.6.1-x64-mingw32

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 (248) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +5 -5
  3. data/README.rdoc +62 -0
  4. data/THANKS +4 -4
  5. data/lib/corba/cbase/IORMap.rb +0 -1
  6. data/lib/corba/cbase/ORB.rb +26 -24
  7. data/lib/corba/cbase/Request.rb +4 -5
  8. data/lib/corba/cbase/Streams.rb +2 -3
  9. data/lib/corba/cbase/Stub.rb +0 -1
  10. data/lib/corba/cbase/Typecode.rb +6 -7
  11. data/lib/corba/cbase/Values.rb +4 -3
  12. data/lib/corba/cbase/exception.rb +6 -5
  13. data/lib/corba/cbase/poa.rb +1 -2
  14. data/lib/corba/cbase/policies.rb +3 -4
  15. data/lib/corba/cbase/post_require.rb +1 -2
  16. data/lib/corba/cbase/require.rb +10 -2
  17. data/lib/corba/cmds/base.rb +1 -2
  18. data/lib/corba/cmds/test.rb +0 -1
  19. data/lib/corba/common/Any.rb +3 -3
  20. data/lib/corba/common/IDL.rb +6 -10
  21. data/lib/corba/common/ORB.rb +22 -23
  22. data/lib/corba/common/Object.rb +18 -15
  23. data/lib/corba/common/Request.rb +1 -2
  24. data/lib/corba/common/Servant.rb +4 -5
  25. data/lib/corba/common/Struct.rb +1 -2
  26. data/lib/corba/common/Stub.rb +6 -7
  27. data/lib/corba/common/Typecode.rb +91 -65
  28. data/lib/corba/common/Union.rb +6 -2
  29. data/lib/corba/common/Values.rb +2 -2
  30. data/lib/corba/common/const.rb +2 -3
  31. data/lib/corba/common/exception.rb +2 -2
  32. data/lib/corba/common/require.rb +8 -1
  33. data/lib/corba/common/version.rb +3 -4
  34. data/lib/corba/idl/BiDirPolicyC.rb +2 -3
  35. data/lib/corba/idl/CosNamingC.rb +4 -5
  36. data/lib/corba/idl/CosNamingS.rb +2 -3
  37. data/lib/corba/idl/IDL.rb +1 -2
  38. data/lib/corba/idl/IORTable.pidl +0 -1
  39. data/lib/corba/idl/IORTableC.rb +2 -3
  40. data/lib/corba/idl/MessagingC.rb +2 -3
  41. data/lib/corba/idl/POAC.rb +10 -11
  42. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  43. data/lib/corba/idl/TAO_ExtC.rb +2 -3
  44. data/lib/corba/idl/r2c_orb.rb +5 -6
  45. data/lib/corba/idl/require.rb +0 -1
  46. data/lib/corba/jbase/Any.rb +29 -28
  47. data/lib/corba/jbase/IORMap.rb +1 -2
  48. data/lib/corba/jbase/ORB.rb +5 -6
  49. data/lib/corba/jbase/Object.rb +13 -14
  50. data/lib/corba/jbase/Request.rb +9 -10
  51. data/lib/corba/jbase/Servant.rb +11 -12
  52. data/lib/corba/jbase/ServerRequest.rb +8 -9
  53. data/lib/corba/jbase/Streams.rb +68 -5
  54. data/lib/corba/jbase/Stub.rb +0 -1
  55. data/lib/corba/jbase/Typecode.rb +17 -17
  56. data/lib/corba/jbase/Values.rb +2 -1
  57. data/lib/corba/jbase/exception.rb +2 -2
  58. data/lib/corba/jbase/poa.rb +21 -22
  59. data/lib/corba/jbase/policies.rb +33 -34
  60. data/lib/corba/jbase/post_require.rb +0 -1
  61. data/lib/corba/jbase/require.rb +5 -2
  62. data/lib/corba/naming.rb +0 -1
  63. data/lib/corba/naming_service.rb +0 -1
  64. data/lib/corba/poa.rb +1 -2
  65. data/lib/corba/policies.rb +1 -2
  66. data/lib/corba/require.rb +2 -3
  67. data/lib/corba/svcs/ins/cos_naming.rb +74 -68
  68. data/lib/corba/svcs/ins/ins.rb +58 -59
  69. data/lib/corba/svcs/ins/naming_service.rb +9 -10
  70. data/lib/corba.rb +1 -2
  71. data/lib/ridlbe/ruby/config.rb +78 -74
  72. data/lib/ridlbe/ruby/require.rb +0 -1
  73. data/lib/ridlbe/ruby/walker.rb +311 -288
  74. data/mkrf_conf_bingem.rb +4 -6
  75. data/rakelib/bin.rake +2 -3
  76. data/rakelib/bin.rb +4 -5
  77. data/rakelib/build.rake +22 -22
  78. data/rakelib/config.rake +2 -3
  79. data/rakelib/config.rb +32 -34
  80. data/rakelib/ext.rake +18 -77
  81. data/rakelib/ext.rb +19 -58
  82. data/rakelib/ext_r2tao.rb +33 -60
  83. data/rakelib/gem.rake +53 -38
  84. data/rakelib/gem.rb +9 -10
  85. data/rakelib/package.rake +2 -3
  86. data/rakelib/test.rake +0 -1
  87. data/test/BiDirectional/Test.idl +0 -1
  88. data/test/BiDirectional/client.rb +18 -19
  89. data/test/BiDirectional/run_test.rb +11 -12
  90. data/test/BiDirectional/server.rb +21 -23
  91. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  92. data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -18
  93. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -14
  94. data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -20
  95. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  96. data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -16
  97. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -14
  98. data/test/CORBA_Services/Naming/Corbaname/server.rb +27 -28
  99. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  100. data/test/CORBA_Services/Naming/Simple/client.rb +16 -17
  101. data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -14
  102. data/test/CORBA_Services/Naming/Simple/server.rb +19 -20
  103. data/test/Collocation/Diamond.idl +0 -1
  104. data/test/Collocation/run_test.rb +10 -11
  105. data/test/Collocation/test.rb +27 -21
  106. data/test/Connect_Timeout/Test.idl +0 -1
  107. data/test/Connect_Timeout/client.rb +16 -18
  108. data/test/Connect_Timeout/run_test.rb +10 -11
  109. data/test/DII/Test.idl +0 -1
  110. data/test/DII/client.rb +30 -31
  111. data/test/DII/run_test.rb +11 -12
  112. data/test/DII/server.rb +16 -17
  113. data/test/DSI/Test.idl +0 -1
  114. data/test/DSI/client.rb +16 -17
  115. data/test/DSI/run_test.rb +11 -12
  116. data/test/DSI/server.rb +17 -18
  117. data/test/Exceptions/Test.idl +0 -1
  118. data/test/Exceptions/client.rb +22 -23
  119. data/test/Exceptions/run_test.rb +11 -12
  120. data/test/Exceptions/server.rb +16 -17
  121. data/test/Hello/Test.idl +0 -1
  122. data/test/Hello/client.rb +16 -17
  123. data/test/Hello/run_test.rb +11 -12
  124. data/test/Hello/server.rb +17 -18
  125. data/test/IDL_Test/Test.idl +4 -1
  126. data/test/IDL_Test/client.rb +24 -23
  127. data/test/IDL_Test/run_test.rb +11 -12
  128. data/test/IDL_Test/server.rb +23 -19
  129. data/test/IORMap/Test.idl +0 -1
  130. data/test/IORMap/client.rb +14 -15
  131. data/test/IORMap/run_test.rb +11 -12
  132. data/test/IORMap/server.rb +23 -24
  133. data/test/IORTable/Test.idl +0 -1
  134. data/test/IORTable/client.rb +14 -15
  135. data/test/IORTable/run_test.rb +11 -12
  136. data/test/IORTable/server.rb +23 -24
  137. data/test/Implicit_Conversion/Test.idl +0 -1
  138. data/test/Implicit_Conversion/client.rb +20 -18
  139. data/test/Implicit_Conversion/run_test.rb +11 -12
  140. data/test/Implicit_Conversion/server.rb +16 -17
  141. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  142. data/test/Multi_Threading/Multiple_ORB/client.rb +14 -15
  143. data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -13
  144. data/test/Multi_Threading/Multiple_ORB/server.rb +17 -18
  145. data/test/Multi_Threading/Simple/Test.idl +0 -1
  146. data/test/Multi_Threading/Simple/client.rb +17 -18
  147. data/test/Multi_Threading/Simple/run_test.rb +11 -12
  148. data/test/Multi_Threading/Simple/server.rb +17 -18
  149. data/test/Multi_Threading/Threads/Test.idl +0 -4
  150. data/test/Multi_Threading/Threads/client.rb +23 -26
  151. data/test/Multi_Threading/Threads/run_test.rb +11 -12
  152. data/test/Multi_Threading/Threads/server.rb +19 -22
  153. data/test/Multi_Threading/Threads/watchdog.rb +16 -16
  154. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  155. data/test/Multiple_Servant_Interfaces/client.rb +14 -15
  156. data/test/Multiple_Servant_Interfaces/run_test.rb +11 -12
  157. data/test/Multiple_Servant_Interfaces/server.rb +18 -19
  158. data/test/Nil/Test.idl +0 -1
  159. data/test/Nil/run_test.rb +10 -11
  160. data/test/Nil/test.rb +22 -20
  161. data/test/OBV/AbstractInterface/client.rb +14 -15
  162. data/test/OBV/AbstractInterface/run_test.rb +11 -12
  163. data/test/OBV/AbstractInterface/server.rb +20 -20
  164. data/test/OBV/AbstractInterface/test.idl +0 -1
  165. data/test/OBV/Custom/OBV_impl.rb +2 -1
  166. data/test/OBV/Custom/client.rb +14 -15
  167. data/test/OBV/Custom/run_test.rb +11 -12
  168. data/test/OBV/Custom/server.rb +16 -17
  169. data/test/OBV/Simple/OBV_impl.rb +1 -1
  170. data/test/OBV/Simple/client.rb +14 -15
  171. data/test/OBV/Simple/run_test.rb +11 -12
  172. data/test/OBV/Simple/server.rb +16 -17
  173. data/test/OBV/Simple_Event/Event_impl.rb +1 -1
  174. data/test/OBV/Simple_Event/client.rb +14 -15
  175. data/test/OBV/Simple_Event/run_test.rb +11 -12
  176. data/test/OBV/Simple_Event/server.rb +16 -17
  177. data/test/OBV/Supports/client.rb +19 -20
  178. data/test/OBV/Supports/run_test.rb +11 -12
  179. data/test/OBV/Supports/server.rb +15 -16
  180. data/test/OBV/Supports/supports.idl +0 -1
  181. data/test/OBV/Supports/supports_impl.rb +3 -1
  182. data/test/OBV/Tree/client.rb +14 -15
  183. data/test/OBV/Tree/run_test.rb +11 -12
  184. data/test/OBV/Tree/server.rb +19 -20
  185. data/test/OBV/Tree/test.idl +0 -1
  186. data/test/OBV/Truncatable/Extra.idl +0 -1
  187. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  188. data/test/OBV/Truncatable/client.rb +57 -58
  189. data/test/OBV/Truncatable/run_test.rb +11 -12
  190. data/test/OBV/Truncatable/server.rb +15 -16
  191. data/test/OBV/ValueBox/client.rb +154 -154
  192. data/test/OBV/ValueBox/run_test.rb +11 -12
  193. data/test/OBV/ValueBox/server.rb +42 -42
  194. data/test/Object/Test.idl +0 -1
  195. data/test/Object/client.rb +15 -16
  196. data/test/Object/run_test.rb +11 -12
  197. data/test/Object/server.rb +19 -20
  198. data/test/POA/run_test.rb +10 -11
  199. data/test/POA/test.rb +17 -18
  200. data/test/Param_Test/client.rb +53 -54
  201. data/test/Param_Test/run_test.rb +11 -12
  202. data/test/Param_Test/server.rb +60 -61
  203. data/test/Performance/Simple/Test.idl +0 -1
  204. data/test/Performance/Simple/client.rb +16 -17
  205. data/test/Performance/Simple/run_test.rb +11 -12
  206. data/test/Performance/Simple/server.rb +16 -17
  207. data/test/Policies/Test.idl +0 -1
  208. data/test/Policies/run_test.rb +10 -11
  209. data/test/Policies/test.rb +23 -25
  210. data/test/Timeout/client.rb +21 -22
  211. data/test/Timeout/run_test.rb +11 -12
  212. data/test/Timeout/server.rb +19 -20
  213. data/test/Timeout/test.idl +0 -1
  214. data/test/lib/assert.rb +0 -2
  215. data/test/lib/test.rb +29 -25
  216. data/test/test_runner.rb +22 -24
  217. metadata +24 -52
  218. data/README +0 -62
  219. data/test/BiDirectional/server.ior +0 -1
  220. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
  221. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
  222. data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
  223. data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
  224. data/test/DII/server.ior +0 -1
  225. data/test/DSI/server.ior +0 -1
  226. data/test/Exceptions/server.ior +0 -1
  227. data/test/IDL_Test/server.ior +0 -1
  228. data/test/IORMap/server.ior +0 -1
  229. data/test/IORTable/server.ior +0 -1
  230. data/test/Implicit_Conversion/server.ior +0 -1
  231. data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
  232. data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
  233. data/test/Multi_Threading/Simple/server.ior +0 -1
  234. data/test/Multi_Threading/Threads/server.ior +0 -1
  235. data/test/Multi_Threading/Threads/watchdog.ior +0 -1
  236. data/test/Multiple_Servant_Interfaces/server.ior +0 -1
  237. data/test/OBV/AbstractInterface/server.ior +0 -1
  238. data/test/OBV/Custom/server.ior +0 -1
  239. data/test/OBV/Simple/server.ior +0 -1
  240. data/test/OBV/Simple_Event/server.ior +0 -1
  241. data/test/OBV/Supports/server.ior +0 -1
  242. data/test/OBV/Tree/server.ior +0 -1
  243. data/test/OBV/Truncatable/server.ior +0 -1
  244. data/test/OBV/ValueBox/server.ior +0 -1
  245. data/test/Object/server.ior +0 -1
  246. data/test/Param_Test/server.ior +0 -1
  247. data/test/Performance/Simple/server.ior +0 -1
  248. data/test/Timeout/server.ior +0 -1
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  require 'optparse'
@@ -24,22 +23,22 @@ ARGV.options do |opts|
24
23
  script_name = File.basename($0)
25
24
  opts.banner = "Usage: ruby #{script_name} [options]"
26
25
 
27
- opts.separator ""
26
+ opts.separator ''
28
27
 
29
- opts.on("--k IORFILE",
30
- "Set IOR.",
31
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
32
- opts.on("--d LVL",
33
- "Set ORBDebugLevel value.",
34
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
35
- opts.on("--use-implement",
36
- "Load IDL through CORBA.implement() instead of precompiled code.",
37
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
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 }
38
37
 
39
- opts.separator ""
38
+ opts.separator ''
40
39
 
41
- opts.on("-h", "--help",
42
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
43
42
 
44
43
  opts.parse!
45
44
  end
@@ -51,7 +50,7 @@ else
51
50
  require 'TestC.rb'
52
51
  end
53
52
 
54
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
53
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
55
54
 
56
55
  begin
57
56
 
@@ -61,20 +60,20 @@ begin
61
60
 
62
61
  ## integer max/min values test
63
62
 
64
- [ :max_LongLong,
65
- :min_LongLong,
66
- :max_ULongLong,
67
- :min_ULongLong,
68
- :max_Long,
69
- :min_Long,
70
- :max_ULong,
71
- :min_ULong,
72
- :max_Short,
73
- :min_Short,
74
- :max_UShort,
75
- :min_UShort,
76
- :max_Octet,
77
- :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|
78
77
  att_val = hello_obj.send(att)
79
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
80
79
  end
@@ -87,23 +86,23 @@ begin
87
86
 
88
87
  hello_obj.message = str
89
88
 
90
- assert "ERROR setting message attribute", str == hello_obj.message
89
+ assert 'ERROR setting message attribute', str == hello_obj.message
91
90
 
92
91
  ## sequence test
93
92
 
94
93
  nums = hello_obj.numbers
95
94
 
96
95
  begin
97
- hello_obj.numbers = (0...11).to_a.collect { |i| i*3 }
96
+ hello_obj.numbers = (0...11).to_a.collect { |i| i * 3 }
98
97
  rescue CORBA::MARSHAL => ex
99
98
  ## expected exception since sequence can hold max. 10 elements
100
99
  end
101
100
 
102
101
  assert "ERROR numbers attribute changed while it shouldn't", nums == hello_obj.numbers
103
102
 
104
- hello_obj.numbers = nums.collect { |i| i*3 }
103
+ hello_obj.numbers = nums.collect { |i| i * 3 }
105
104
 
106
- 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
107
106
 
108
107
  doubles_list = hello_obj.list_of_doubles
109
108
 
@@ -117,14 +116,14 @@ begin
117
116
  sv.m_one += 1
118
117
  sv.m_two += 1.03
119
118
  sv.m_three.upcase!
120
- sv.m_four.m_b = TRUE
119
+ sv.m_four.m_b = true
121
120
  sv.m_five = Test::TE_FIRST
122
121
  }
123
122
 
124
123
  hello_obj.structSeq = svseq
125
124
 
126
125
  ix = 0
127
- assert_not "ERROR setting attribute structSeq" do
126
+ assert_not 'ERROR setting attribute structSeq' do
128
127
  hello_obj.structSeq.any? { |sv|
129
128
  sv2 = svseq[ix]
130
129
  ix += 1
@@ -150,7 +149,7 @@ begin
150
149
 
151
150
  hello_obj.theCube = cube2
152
151
 
153
- assert_not "ERROR setting attribute theCube" do
152
+ assert_not 'ERROR setting attribute theCube' do
154
153
  cube2 != hello_obj.theCube || cube == hello_obj.theCube
155
154
  end
156
155
 
@@ -158,7 +157,7 @@ begin
158
157
 
159
158
  self_obj = hello_obj.selfref
160
159
 
161
- assert "ERROR with attribute selfref", self_obj.message == hello_obj.message
160
+ assert 'ERROR with attribute selfref', self_obj.message == hello_obj.message
162
161
 
163
162
  ## Any test
164
163
 
@@ -166,19 +165,19 @@ begin
166
165
 
167
166
  hello_obj.anyValue = 1
168
167
 
169
- assert_not "ERROR with attribute anyValue" do
168
+ assert_not 'ERROR with attribute anyValue' do
170
169
  any == hello_obj.anyValue || 1 == hello_obj.anyValue
171
170
  end
172
171
 
173
172
  hello_obj.anyValue = 2
174
173
 
175
- assert_not "ERROR with attribute anyValue" do
174
+ assert_not 'ERROR with attribute anyValue' do
176
175
  any == hello_obj.anyValue || 2 == hello_obj.anyValue
177
176
  end
178
177
 
179
178
  hello_obj.anyValue = 3
180
179
 
181
- assert_not "ERROR with attribute anyValue" do
180
+ assert_not 'ERROR with attribute anyValue' do
182
181
  any == hello_obj.anyValue || 3 == hello_obj.anyValue
183
182
  end
184
183
 
@@ -191,7 +190,7 @@ begin
191
190
 
192
191
  hello_obj.unionValue = uv2
193
192
 
194
- assert_not "ERROR with attribute unionValue" do
193
+ assert_not 'ERROR with attribute unionValue' do
195
194
  uv1._disc == hello_obj.unionValue._disc || uv1._value == hello_obj.unionValue._value
196
195
  end
197
196
 
@@ -202,47 +201,47 @@ begin
202
201
 
203
202
  hello_obj.unionValue2 = uv22
204
203
 
205
- assert_not "ERROR with attribute unionValue2" do
204
+ assert_not 'ERROR with attribute unionValue2' do
206
205
  uv21._disc == hello_obj.unionValue2._disc || uv21._value == hello_obj.unionValue2._value
207
206
  end
208
207
 
209
- assert_not "ERROR with attribute unionValue2" do
208
+ assert_not 'ERROR with attribute unionValue2' do
210
209
  uv21._disc == hello_obj.unionValue2._disc || uv21._value == hello_obj.unionValue2._value
211
210
  end
212
211
 
213
212
  uv3 = hello_obj.unionValue3
214
213
 
215
- assert_except "ERROR with attribute unionValue3", CORBA::BAD_PARAM do
216
- uv3._disc = FALSE
214
+ assert_except 'ERROR with attribute unionValue3', CORBA::BAD_PARAM do
215
+ uv3._disc = false
217
216
  end
218
217
 
219
218
  uv3._default # set implicit default
220
219
 
221
- assert "ERROR with implicit default union U3" do
220
+ assert 'ERROR with implicit default union U3' do
222
221
  uv3._disc == false
223
222
  end
224
223
 
225
224
  hello_obj.unionValue3 = uv3
226
225
 
227
- assert "ERROR with implicit default attribute unionValue3" do
226
+ assert 'ERROR with implicit default attribute unionValue3' do
228
227
  hello_obj.unionValue3._disc == false
229
228
  end
230
229
 
231
230
  uv4 = hello_obj.unionValue4
232
231
 
233
- assert_except "ERROR with attribute unionValue4", CORBA::BAD_PARAM do
232
+ assert_except 'ERROR with attribute unionValue4', CORBA::BAD_PARAM do
234
233
  uv4._disc = Test::TE_THIRD
235
234
  end
236
235
 
237
236
  uv4._default # set implicit default
238
237
 
239
- assert "ERROR with implicit default union U4" do
238
+ assert 'ERROR with implicit default union U4' do
240
239
  uv4._disc == Test::TE_THIRD
241
240
  end
242
241
 
243
242
  hello_obj.unionValue4 = uv4
244
243
 
245
- assert "ERROR with implicit default attribute unionValue4" do
244
+ assert 'ERROR with implicit default attribute unionValue4' do
246
245
  hello_obj.unionValue4._disc == Test::TE_THIRD
247
246
  end
248
247
 
@@ -256,16 +255,16 @@ begin
256
255
 
257
256
  hello_obj.s3Value = s3val
258
257
 
259
- assert_not "ERROR with attribute s3Value" do
258
+ assert_not 'ERROR with attribute s3Value' do
260
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
261
260
  end
262
261
 
263
262
  ## in, inout, out test
264
263
 
265
- 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')
266
265
 
267
- assert_not "ERROR with run_test" do
268
- reslen != resoutstr.size || resinoutstr != instr || resoutstr != (instr+inoutstr)
266
+ assert_not 'ERROR with run_test' do
267
+ reslen != resoutstr.size || resinoutstr != instr || resoutstr != (instr + inoutstr)
269
268
  end
270
269
 
271
270
  hello_obj.shutdown()
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  OPTIONS = {
@@ -21,19 +20,19 @@ ARGV.options do |opts|
21
20
  script_name = File.basename($0)
22
21
  opts.banner = "Usage: ruby #{script_name} [options]"
23
22
 
24
- opts.separator ""
23
+ opts.separator ''
25
24
 
26
- opts.on("-d",
27
- "Run with debugging output.",
28
- "Default: false") { OPTIONS[:debug_opt] = '--d 10' }
29
- opts.on("--use-stubs",
30
- "Use stubs generated by RIDL.",
31
- "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] = '' }
32
31
 
33
- opts.separator ""
32
+ opts.separator ''
34
33
 
35
- opts.on("-h", "--help",
36
- "Show this help message.") { puts opts; exit }
34
+ opts.on('-h', '--help',
35
+ 'Show this help message.') { puts opts; exit }
37
36
 
38
37
  opts.parse!
39
38
  end
@@ -60,7 +59,7 @@ end
60
59
 
61
60
  exrc = clt.wait(400)
62
61
 
63
- if exrc ==0
62
+ if exrc == 0
64
63
  srv.wait(400)
65
64
  else
66
65
  srv.wait_term(400)
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  require 'optparse'
@@ -22,22 +21,22 @@ ARGV.options do |opts|
22
21
  script_name = File.basename($0)
23
22
  opts.banner = "Usage: ruby #{script_name} [options]"
24
23
 
25
- opts.separator ""
24
+ opts.separator ''
26
25
 
27
- opts.on("--o IORFILE",
28
- "Set IOR filename.",
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 }
26
+ opts.on('--o IORFILE',
27
+ 'Set IOR filename.',
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 }
36
35
 
37
- opts.separator ""
36
+ opts.separator ''
38
37
 
39
- opts.on("-h", "--help",
40
- "Show this help message.") { puts opts; exit }
38
+ opts.on('-h', '--help',
39
+ 'Show this help message.') { puts opts; exit }
41
40
 
42
41
  opts.parse!
43
42
  end
@@ -54,18 +53,18 @@ class MyHello < POA::Test::Hello
54
53
  def initialize(orb)
55
54
  @orb = orb
56
55
  @msg = 'message'
57
- @nums = Test::TShortSeq.new((0...10).collect { |i| i*2 })
56
+ @nums = Test::TShortSeq.new((0...10).collect { |i| i * 2 })
58
57
  s1 = Test::S1.new
59
58
  s1.m_one = 123
60
59
  s1.m_two = 2.54
61
- s1.m_three = "field three"
60
+ s1.m_three = 'field three'
62
61
  s1.m_four = Test::S1::S2.new
63
62
  s1.m_four.m_b = false
64
63
  s1.m_five = ::Test::TE_ZEROTH
65
64
  @s1seq = Test::S1Seq.new << s1
66
65
  @cube = Test::TLongCube.new((0...3).collect {|x|
67
66
  (0...3).collect {|y|
68
- (0...4).collect {|z| x+(y*10)+(z*100) }
67
+ (0...4).collect {|z| x + (y * 10) + (z * 100) }
69
68
  }
70
69
  })
71
70
  @anysel = 0
@@ -80,114 +79,114 @@ class MyHello < POA::Test::Hello
80
79
  @s3.m_seq << s3_
81
80
  @u1 = Test::U1.new
82
81
  @u1._disc = Test::TE_FIRST
83
- @u1.m_str = "Hello world!"
82
+ @u1.m_str = 'Hello world!'
84
83
  @u2 = Test::U2.new
85
84
  @u2._disc = Test::U2::ONE
86
85
  @u2.l_ = 12345
87
86
  @u3 = Test::U3.new
88
- @u3._disc = TRUE
87
+ @u3._disc = true
89
88
  @u3.lval = 123456
90
89
  @u4 = Test::U4.new
91
90
  @u4._disc = Test::TE_FIRST
92
- @u4.m_str = "Hello world!"
91
+ @u4.m_str = 'Hello world!'
93
92
  @nex = 0
94
93
  end
95
94
 
96
95
  def max_LongLong()
97
96
  Test::Max_longlong
98
- end #of attribute get_Max_LongLong
97
+ end # of attribute get_Max_LongLong
99
98
 
100
99
  def min_LongLong()
101
100
  Test::Min_longlong
102
- end #of attribute get_Min_LongLong
101
+ end # of attribute get_Min_LongLong
103
102
 
104
103
  def max_ULongLong()
105
104
  Test::Max_ulonglong
106
- end #of attribute get_Max_ULongLong
105
+ end # of attribute get_Max_ULongLong
107
106
 
108
107
  def min_ULongLong()
109
108
  Test::Min_ulonglong
110
- end #of attribute get_Min_ULongLong
109
+ end # of attribute get_Min_ULongLong
111
110
 
112
111
  def max_Long()
113
112
  Test::Max_long
114
- end #of attribute get_Max_Long
113
+ end # of attribute get_Max_Long
115
114
 
116
115
  def min_Long()
117
116
  Test::Min_long
118
- end #of attribute get_Min_Long
117
+ end # of attribute get_Min_Long
119
118
 
120
119
  def max_ULong()
121
120
  Test::Max_ulong
122
- end #of attribute get_Max_ULong
121
+ end # of attribute get_Max_ULong
123
122
 
124
123
  def min_ULong()
125
124
  Test::Min_ulong
126
- end #of attribute get_Min_ULong
125
+ end # of attribute get_Min_ULong
127
126
 
128
127
  def max_Short()
129
128
  Test::Max_short
130
- end #of attribute get_Max_Short
129
+ end # of attribute get_Max_Short
131
130
 
132
131
  def min_Short()
133
132
  Test::Min_short
134
- end #of attribute get_Min_Short
133
+ end # of attribute get_Min_Short
135
134
 
136
135
  def max_UShort()
137
136
  Test::Max_ushort
138
- end #of attribute get_Max_UShort
137
+ end # of attribute get_Max_UShort
139
138
 
140
139
  def min_UShort()
141
140
  Test::Min_ushort
142
- end #of attribute get_Min_UShort
141
+ end # of attribute get_Min_UShort
143
142
 
144
143
  def max_Octet()
145
144
  Test::Max_octet
146
- end #of attribute get_Max_Octet
145
+ end # of attribute get_Max_Octet
147
146
 
148
147
  def min_Octet()
149
148
  Test::Min_octet
150
- end #of attribute get_Min_Octet
149
+ end # of attribute get_Min_Octet
151
150
 
152
151
  def get_string()
153
- "Hello there!"
152
+ 'Hello there!'
154
153
  end
155
154
 
156
155
  def message()
157
156
  @msg
158
- end #of attribute get_message
157
+ end # of attribute get_message
159
158
 
160
159
  def message=(val)
161
160
  @msg = val.to_s
162
- end #of attribute set_message
161
+ end # of attribute set_message
163
162
 
164
163
  def numbers()
165
164
  @nums
166
- end #of attribute get_numbers
165
+ end # of attribute get_numbers
167
166
 
168
167
  def numbers=(val)
169
168
  @nums = val
170
- end #of attribute set_numbers
169
+ end # of attribute set_numbers
171
170
 
172
171
  def list_of_doubles()
173
172
  [1.0, 1.1, 1.2, 1.3]
174
- end #of attribute get_numbers
173
+ end # of attribute get_numbers
175
174
 
176
175
  def structSeq()
177
176
  @s1seq
178
- end #of attribute get_structSeq
177
+ end # of attribute get_structSeq
179
178
 
180
179
  def structSeq=(val)
181
180
  @s1seq = val
182
- end #of attribute set_structSeq
181
+ end # of attribute set_structSeq
183
182
 
184
183
  def theCube()
185
184
  @cube
186
- end #of attribute get_theCube
185
+ end # of attribute get_theCube
187
186
 
188
187
  def theCube=(val)
189
188
  @cube = val
190
- end #of attribute set_theCube
189
+ end # of attribute set_theCube
191
190
 
192
191
  def anyValue()
193
192
  case @anysel
@@ -196,59 +195,59 @@ class MyHello < POA::Test::Hello
196
195
  when 2
197
196
  @s1seq
198
197
  when 3
199
- CORBA::Any.to_any([1,2,3,4,5], CORBA::TypeCode::Sequence.new(CORBA._tc_long))
198
+ CORBA::Any.to_any([1, 2, 3, 4, 5], CORBA::TypeCode::Sequence.new(CORBA._tc_long))
200
199
  else
201
200
  @anysel
202
201
  end
203
- end #of attribute get_anyValue
202
+ end # of attribute get_anyValue
204
203
 
205
204
  def anyValue=(val)
206
205
  @anysel = val.to_i
207
- end #of attribute set_anyValue
206
+ end # of attribute set_anyValue
208
207
 
209
208
  def selfref()
210
209
  self._this
211
- end #of attribute get_selfref
210
+ end # of attribute get_selfref
212
211
 
213
212
  def s3Value()
214
213
  @s3
215
- end #of attribute get_s3Value
214
+ end # of attribute get_s3Value
216
215
 
217
216
  def s3Value=(val)
218
217
  @s3 = val
219
- end #of attribute set_s3Value
218
+ end # of attribute set_s3Value
220
219
 
221
220
  def unionValue()
222
221
  @u1
223
- end #of attribute get_unionValue
222
+ end # of attribute get_unionValue
224
223
 
225
224
  def unionValue=(val)
226
225
  @u1 = val
227
- end #of attribute set_unionValue
226
+ end # of attribute set_unionValue
228
227
 
229
228
  def unionValue2()
230
229
  @u2
231
- end #of attribute get_unionValue2
230
+ end # of attribute get_unionValue2
232
231
 
233
232
  def unionValue2=(val)
234
233
  @u2 = val
235
- end #of attribute set_unionValue2
234
+ end # of attribute set_unionValue2
236
235
 
237
236
  def unionValue3()
238
237
  @u3
239
- end #of attribute get_unionValue3
238
+ end # of attribute get_unionValue3
240
239
 
241
240
  def unionValue3=(val)
242
241
  @u3 = val
243
- end #of attribute set_unionValue3
242
+ end # of attribute set_unionValue3
244
243
 
245
244
  def unionValue4()
246
245
  @u4
247
- end #of attribute get_unionValue4
246
+ end # of attribute get_unionValue4
248
247
 
249
248
  def unionValue4=(val)
250
249
  @u4 = val
251
- end #of attribute set_unionValue4
250
+ end # of attribute set_unionValue4
252
251
 
253
252
  def run_test(instr, inoutstr)
254
253
  outstr = instr + inoutstr
@@ -259,10 +258,10 @@ class MyHello < POA::Test::Hello
259
258
  def shutdown()
260
259
  @orb.shutdown()
261
260
  end
262
- end #of servant Hello
261
+ end # of servant Hello
263
262
 
264
263
 
265
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
264
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
266
265
 
267
266
  obj = orb.resolve_initial_references('RootPOA')
268
267
 
@@ -285,7 +284,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
285
284
  }
286
285
 
287
286
  Signal.trap('INT') do
288
- puts "SIGINT - shutting down ORB..."
287
+ puts 'SIGINT - shutting down ORB...'
289
288
  orb.shutdown()
290
289
  end
291
290
 
@@ -6,7 +6,6 @@
6
6
  * included with this program.
7
7
  *
8
8
  * Copyright (c) Remedy IT Expertise BV
9
- * Chamber of commerce Rotterdam nr.276339, The Netherlands
10
9
  *--------------------------------------------------------------------*/
11
10
 
12
11
  /// Put the interfaces in a module, to avoid global namespace pollution
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  require 'optparse'
@@ -24,22 +23,22 @@ ARGV.options do |opts|
24
23
  script_name = File.basename($0)
25
24
  opts.banner = "Usage: ruby #{script_name} [options]"
26
25
 
27
- opts.separator ""
26
+ opts.separator ''
28
27
 
29
- opts.on("--k IORFILE",
30
- "Set IOR.",
31
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
32
- opts.on("--d LVL",
33
- "Set ORBDebugLevel value.",
34
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
35
- opts.on("--use-implement",
36
- "Load IDL through CORBA.implement() instead of precompiled code.",
37
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
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 }
38
37
 
39
- opts.separator ""
38
+ opts.separator ''
40
39
 
41
- opts.on("-h", "--help",
42
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
43
42
 
44
43
  opts.parse!
45
44
  end
@@ -51,7 +50,7 @@ else
51
50
  require 'TestC.rb'
52
51
  end
53
52
 
54
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
53
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
55
54
 
56
55
  DATA = 'Hello world! 0123456789012345678901234567890123456789012345678901234567890123456789'
57
56
 
@@ -77,11 +76,11 @@ begin
77
76
 
78
77
  hello_obj.shutdown()
79
78
 
80
- assert_not "ERROR: Object is reported nil!", CORBA::is_nil(hello_obj)
79
+ assert_not 'ERROR: Object is reported nil!', CORBA::is_nil(hello_obj)
81
80
 
82
81
  hello_obj._free_ref()
83
82
 
84
- assert "ERROR: Object is reported non-nil!", CORBA::is_nil(hello_obj)
83
+ assert 'ERROR: Object is reported non-nil!', CORBA::is_nil(hello_obj)
85
84
 
86
85
  ensure
87
86