r2corba 1.5.1-universal-java → 1.6.1-universal-java

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 (253) 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/MessagingC.rb +2 -3
  40. data/lib/corba/idl/POAC.rb +10 -11
  41. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  42. data/lib/corba/idl/r2c_orb.rb +5 -6
  43. data/lib/corba/idl/require.rb +0 -1
  44. data/lib/corba/jbase/Any.rb +29 -28
  45. data/lib/corba/jbase/IORMap.rb +1 -2
  46. data/lib/corba/jbase/ORB.rb +5 -6
  47. data/lib/corba/jbase/Object.rb +13 -14
  48. data/lib/corba/jbase/Request.rb +9 -10
  49. data/lib/corba/jbase/Servant.rb +11 -12
  50. data/lib/corba/jbase/ServerRequest.rb +8 -9
  51. data/lib/corba/jbase/Streams.rb +68 -5
  52. data/lib/corba/jbase/Stub.rb +0 -1
  53. data/lib/corba/jbase/Typecode.rb +17 -17
  54. data/lib/corba/jbase/Values.rb +2 -1
  55. data/lib/corba/jbase/exception.rb +2 -2
  56. data/lib/corba/jbase/poa.rb +21 -22
  57. data/lib/corba/jbase/policies.rb +33 -34
  58. data/lib/corba/jbase/post_require.rb +0 -1
  59. data/lib/corba/jbase/require.rb +5 -2
  60. data/lib/corba/naming.rb +0 -1
  61. data/lib/corba/naming_service.rb +0 -1
  62. data/lib/corba/poa.rb +1 -2
  63. data/lib/corba/policies.rb +1 -2
  64. data/lib/corba/require.rb +2 -3
  65. data/lib/corba/svcs/ins/cos_naming.rb +74 -68
  66. data/lib/corba/svcs/ins/ins.rb +58 -59
  67. data/lib/corba/svcs/ins/naming_service.rb +9 -10
  68. data/lib/corba.rb +1 -2
  69. data/lib/ridlbe/ruby/config.rb +78 -74
  70. data/lib/ridlbe/ruby/orb.pidlc +0 -0
  71. data/lib/ridlbe/ruby/require.rb +0 -1
  72. data/lib/ridlbe/ruby/walker.rb +311 -288
  73. data/mkrf_conf_bingem.rb +4 -6
  74. data/rakelib/bin.rake +2 -3
  75. data/rakelib/bin.rb +4 -5
  76. data/rakelib/build.rake +22 -22
  77. data/rakelib/config.rake +2 -3
  78. data/rakelib/config.rb +32 -34
  79. data/rakelib/gem.rake +53 -38
  80. data/rakelib/gem.rb +9 -10
  81. data/rakelib/package.rake +2 -3
  82. data/rakelib/test.rake +0 -1
  83. data/test/BiDirectional/Test.idl +0 -1
  84. data/test/BiDirectional/client.rb +18 -19
  85. data/test/BiDirectional/run_test.rb +11 -12
  86. data/test/BiDirectional/server.rb +21 -23
  87. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  88. data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -18
  89. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -14
  90. data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -20
  91. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  92. data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -16
  93. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -14
  94. data/test/CORBA_Services/Naming/Corbaname/server.rb +27 -28
  95. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  96. data/test/CORBA_Services/Naming/Simple/client.rb +16 -17
  97. data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -14
  98. data/test/CORBA_Services/Naming/Simple/server.rb +19 -20
  99. data/test/Collocation/Diamond.idl +0 -1
  100. data/test/Collocation/run_test.rb +10 -11
  101. data/test/Collocation/test.rb +27 -21
  102. data/test/Connect_Timeout/Test.idl +0 -1
  103. data/test/Connect_Timeout/client.rb +16 -18
  104. data/test/Connect_Timeout/run_test.rb +10 -11
  105. data/test/DII/Test.idl +0 -1
  106. data/test/DII/client.rb +30 -31
  107. data/test/DII/run_test.rb +11 -12
  108. data/test/DII/server.rb +16 -17
  109. data/test/DSI/Test.idl +0 -1
  110. data/test/DSI/client.rb +16 -17
  111. data/test/DSI/run_test.rb +11 -12
  112. data/test/DSI/server.rb +17 -18
  113. data/test/Exceptions/Test.idl +0 -1
  114. data/test/Exceptions/client.rb +22 -23
  115. data/test/Exceptions/run_test.rb +11 -12
  116. data/test/Exceptions/server.rb +16 -17
  117. data/test/Hello/Test.idl +0 -1
  118. data/test/Hello/client.rb +16 -17
  119. data/test/Hello/run_test.rb +11 -12
  120. data/test/Hello/server.rb +17 -18
  121. data/test/IDL_Test/Test.idl +4 -1
  122. data/test/IDL_Test/client.rb +24 -23
  123. data/test/IDL_Test/run_test.rb +11 -12
  124. data/test/IDL_Test/server.rb +23 -19
  125. data/test/IORMap/Test.idl +0 -1
  126. data/test/IORMap/client.rb +14 -15
  127. data/test/IORMap/run_test.rb +11 -12
  128. data/test/IORMap/server.rb +23 -24
  129. data/test/IORTable/Test.idl +0 -1
  130. data/test/IORTable/client.rb +14 -15
  131. data/test/IORTable/run_test.rb +11 -12
  132. data/test/IORTable/server.rb +23 -24
  133. data/test/Implicit_Conversion/Test.idl +0 -1
  134. data/test/Implicit_Conversion/client.rb +20 -18
  135. data/test/Implicit_Conversion/run_test.rb +11 -12
  136. data/test/Implicit_Conversion/server.rb +16 -17
  137. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  138. data/test/Multi_Threading/Multiple_ORB/client.rb +14 -15
  139. data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -13
  140. data/test/Multi_Threading/Multiple_ORB/server.rb +17 -18
  141. data/test/Multi_Threading/Simple/Test.idl +0 -1
  142. data/test/Multi_Threading/Simple/client.rb +17 -18
  143. data/test/Multi_Threading/Simple/run_test.rb +11 -12
  144. data/test/Multi_Threading/Simple/server.rb +17 -18
  145. data/test/Multi_Threading/Threads/Test.idl +0 -4
  146. data/test/Multi_Threading/Threads/client.rb +23 -26
  147. data/test/Multi_Threading/Threads/run_test.rb +11 -12
  148. data/test/Multi_Threading/Threads/server.rb +19 -22
  149. data/test/Multi_Threading/Threads/watchdog.rb +16 -16
  150. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  151. data/test/Multiple_Servant_Interfaces/client.rb +14 -15
  152. data/test/Multiple_Servant_Interfaces/run_test.rb +11 -12
  153. data/test/Multiple_Servant_Interfaces/server.rb +18 -19
  154. data/test/Nil/Test.idl +0 -1
  155. data/test/Nil/run_test.rb +10 -11
  156. data/test/Nil/test.rb +22 -20
  157. data/test/OBV/AbstractInterface/client.rb +14 -15
  158. data/test/OBV/AbstractInterface/run_test.rb +11 -12
  159. data/test/OBV/AbstractInterface/server.rb +20 -20
  160. data/test/OBV/AbstractInterface/test.idl +0 -1
  161. data/test/OBV/Custom/OBV_impl.rb +2 -1
  162. data/test/OBV/Custom/client.rb +14 -15
  163. data/test/OBV/Custom/run_test.rb +11 -12
  164. data/test/OBV/Custom/server.rb +16 -17
  165. data/test/OBV/Simple/OBV_impl.rb +1 -1
  166. data/test/OBV/Simple/client.rb +14 -15
  167. data/test/OBV/Simple/run_test.rb +11 -12
  168. data/test/OBV/Simple/server.rb +16 -17
  169. data/test/OBV/Simple_Event/Event_impl.rb +1 -1
  170. data/test/OBV/Simple_Event/client.rb +14 -15
  171. data/test/OBV/Simple_Event/run_test.rb +11 -12
  172. data/test/OBV/Simple_Event/server.rb +16 -17
  173. data/test/OBV/Supports/client.rb +19 -20
  174. data/test/OBV/Supports/run_test.rb +11 -12
  175. data/test/OBV/Supports/server.rb +15 -16
  176. data/test/OBV/Supports/supports.idl +0 -1
  177. data/test/OBV/Supports/supports_impl.rb +3 -1
  178. data/test/OBV/Tree/client.rb +14 -15
  179. data/test/OBV/Tree/run_test.rb +11 -12
  180. data/test/OBV/Tree/server.rb +19 -20
  181. data/test/OBV/Tree/test.idl +0 -1
  182. data/test/OBV/Truncatable/Extra.idl +0 -1
  183. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  184. data/test/OBV/Truncatable/client.rb +57 -58
  185. data/test/OBV/Truncatable/run_test.rb +11 -12
  186. data/test/OBV/Truncatable/server.rb +15 -16
  187. data/test/OBV/ValueBox/client.rb +154 -154
  188. data/test/OBV/ValueBox/run_test.rb +11 -12
  189. data/test/OBV/ValueBox/server.rb +42 -42
  190. data/test/Object/Test.idl +0 -1
  191. data/test/Object/client.rb +15 -16
  192. data/test/Object/run_test.rb +11 -12
  193. data/test/Object/server.rb +19 -20
  194. data/test/POA/run_test.rb +10 -11
  195. data/test/POA/test.rb +17 -18
  196. data/test/Param_Test/client.rb +53 -54
  197. data/test/Param_Test/run_test.rb +11 -12
  198. data/test/Param_Test/server.rb +60 -61
  199. data/test/Performance/Simple/Test.idl +0 -1
  200. data/test/Performance/Simple/client.rb +16 -17
  201. data/test/Performance/Simple/run_test.rb +11 -12
  202. data/test/Performance/Simple/server.rb +16 -17
  203. data/test/Policies/Test.idl +0 -1
  204. data/test/Policies/run_test.rb +10 -11
  205. data/test/Policies/test.rb +23 -25
  206. data/test/Timeout/client.rb +21 -22
  207. data/test/Timeout/run_test.rb +11 -12
  208. data/test/Timeout/server.rb +19 -20
  209. data/test/Timeout/test.idl +0 -1
  210. data/test/lib/assert.rb +0 -2
  211. data/test/lib/test.rb +29 -25
  212. data/test/test_runner.rb +22 -24
  213. metadata +27 -64
  214. data/README +0 -62
  215. data/jacorb/lib/antlr-2.7.2.jar +0 -0
  216. data/jacorb/lib/jacorb-3.5.jar +0 -0
  217. data/jacorb/lib/jacorb-omgapi-3.5.jar +0 -0
  218. data/jacorb/lib/jacorb-services-3.5.jar +0 -0
  219. data/jacorb/lib/slf4j-api-1.7.6.jar +0 -0
  220. data/jacorb/lib/slf4j-jdk14-1.7.6.jar +0 -0
  221. data/test/BiDirectional/server.ior +0 -1
  222. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
  223. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
  224. data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
  225. data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
  226. data/test/DII/server.ior +0 -1
  227. data/test/DSI/server.ior +0 -1
  228. data/test/Exceptions/server.ior +0 -1
  229. data/test/Hello/gateway.ior +0 -1
  230. data/test/IDL_Test/server.ior +0 -1
  231. data/test/IORMap/server.ior +0 -1
  232. data/test/IORTable/server.ior +0 -0
  233. data/test/Implicit_Conversion/server.ior +0 -1
  234. data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
  235. data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
  236. data/test/Multi_Threading/Simple/server.ior +0 -1
  237. data/test/Multi_Threading/Threads/server.ior +0 -1
  238. data/test/Multi_Threading/Threads/watchdog.ior +0 -1
  239. data/test/Multiple_Servant_Interfaces/server.ior +0 -1
  240. data/test/OBV/AbstractInterface/server.ior +0 -1
  241. data/test/OBV/Custom/server.ior +0 -1
  242. data/test/OBV/Simple/server.ior +0 -1
  243. data/test/OBV/Simple_Event/server.ior +0 -1
  244. data/test/OBV/Supports/server.ior +0 -1
  245. data/test/OBV/Tree/server.ior +0 -1
  246. data/test/OBV/Truncatable/server.ior +0 -1
  247. data/test/OBV/ValueBox/server.ior +0 -1
  248. data/test/Object/server.ior +0 -1
  249. data/test/Param_Test/server.ior +0 -1
  250. data/test/Performance/Simple/server.ior +0 -1
  251. data/test/Timeout/server.ior +0 -1
  252. data/test/test.log +0 -20
  253. data/test/test2.log +0 -5000
data/test/lib/test.rb CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  require 'rbconfig'
@@ -22,7 +21,7 @@ module TestUtil
22
21
  end
23
22
 
24
23
  def self.is_win32?
25
- (RB_CONFIG['target_os'] =~ /win32/ || RB_CONFIG['target_os'] =~ /mingw32/) ? true : false
24
+ (RB_CONFIG['target_os'] =~ /win32/ || RB_CONFIG['target_os'] =~ /mingw/) ? true : false
26
25
  end
27
26
 
28
27
  RBVersion = RUBY_VERSION.split('.').collect {|x| x.to_i}
@@ -66,7 +65,7 @@ if defined?(JRUBY_VERSION)
66
65
  # const char *const *argv,
67
66
  # const char *const *envp);
68
67
 
69
- attach_function :_spawnvpe,:_spawnvpe, [:int, :string, :pointer, :pointer], :pointer
68
+ attach_function :_spawnvpe, :_spawnvpe, [:int, :string, :pointer, :pointer], :pointer
70
69
 
71
70
  P_NOWAIT = 1
72
71
 
@@ -106,7 +105,7 @@ if defined?(JRUBY_VERSION)
106
105
  def self.wait(pid)
107
106
  stat_ptr = FFI::MemoryPointer.new(:int, 1)
108
107
  tmp_pid = _wait(stat_ptr, pid, 0)
109
- if tmp_pid==pid
108
+ if tmp_pid == pid
110
109
  return [pid, stat_ptr.get_int()]
111
110
  else
112
111
  return [pid, 0]
@@ -121,7 +120,7 @@ if defined?(JRUBY_VERSION)
121
120
  args_ary.put_array_of_pointer(0, str_ptrs)
122
121
 
123
122
  env_ary = FFI::MemoryPointer.new(:pointer, ENV.length + 1)
124
- env_ptrs = ENV.map {|key,value| FFI::MemoryPointer.from_string("#{key}=#{value}")}
123
+ env_ptrs = ENV.map {|key, value| FFI::MemoryPointer.from_string("#{key}=#{value}")}
125
124
  env_ary.put_array_of_pointer(0, env_ptrs)
126
125
 
127
126
  [P_NOWAIT, args[0], args_ary, env_ary]
@@ -160,8 +159,8 @@ if defined?(JRUBY_VERSION)
160
159
  def self.wait(pid)
161
160
  begin
162
161
  tmp, status = ::Process.waitpid2(pid, ::Process::WNOHANG)
163
- if tmp==pid and status.success? != nil
164
- return [pid, status.success?() ? 0 : status.exitstatus ]
162
+ if tmp == pid and status.success? != nil
163
+ return [pid, status.success?() ? 0 : status.exitstatus]
165
164
  end
166
165
  return [nil, 0]
167
166
  rescue Errno::ECHILD
@@ -179,13 +178,14 @@ if defined?(JRUBY_VERSION)
179
178
  args_ary.put_array_of_pointer(0, str_ptrs)
180
179
 
181
180
  env_ary = FFI::MemoryPointer.new(:pointer, ENV.length + 1)
182
- env_ptrs = ENV.map {|key,value| FFI::MemoryPointer.from_string("#{key}=#{value}")}
181
+ env_ptrs = ENV.map {|key, value| FFI::MemoryPointer.from_string("#{key}=#{value}")}
183
182
  env_ary.put_array_of_pointer(0, env_ptrs)
184
183
 
185
184
  [pid_ptr, args[0], nil, nil, args_ary, env_ary]
186
185
  end
187
186
  end
188
187
  end
188
+
189
189
  def initialize(cmd_, arg_)
190
190
  @pid = nil
191
191
  @exitstatus = nil
@@ -198,7 +198,7 @@ if defined?(JRUBY_VERSION)
198
198
  sleep 0.01
199
199
 
200
200
  tmp_pid, tmp_status = Exec.wait(@pid)
201
- if tmp_pid==@pid
201
+ if tmp_pid == @pid
202
202
  exit_status = tmp_status
203
203
  is_running = false
204
204
  end
@@ -238,7 +238,8 @@ if defined?(JRUBY_VERSION)
238
238
  end
239
239
 
240
240
  def is_running?; @exitstatus.nil?; end
241
- def has_error? ; @trd.status.nil? or (!self.is_running? and self.exitstatus!=0) ;end
241
+
242
+ def has_error? ; @trd.status.nil? or (!self.is_running? and self.exitstatus != 0) ;end
242
243
 
243
244
  def stop
244
245
  Exec.stop(@pid)
@@ -265,7 +266,7 @@ elsif is_win32? && TestUtil::RBVersion[0] < 2 && TestUtil::RBVersion[1] < 9
265
266
 
266
267
  protected
267
268
  # Used by Process.create
268
- ProcessInfo = Struct.new("ProcessInfo",
269
+ ProcessInfo = Struct.new('ProcessInfo',
269
270
  :process_handle,
270
271
  :thread_handle,
271
272
  :process_id,
@@ -288,9 +289,9 @@ elsif is_win32? && TestUtil::RBVersion[0] < 2 && TestUtil::RBVersion[1] < 9
288
289
  extend WinAPI
289
290
 
290
291
  def Process.create(cmd_)
291
- startinfo = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
292
+ startinfo = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
292
293
  startinfo = startinfo.pack('LLLLLLLLLLLLSSLLLL')
293
- procinfo = [0,0,0,0].pack('LLLL')
294
+ procinfo = [0, 0, 0, 0].pack('LLLL')
294
295
 
295
296
  bool = CreateProcess(
296
297
  0, # App name
@@ -306,14 +307,14 @@ elsif is_win32? && TestUtil::RBVersion[0] < 2 && TestUtil::RBVersion[1] < 9
306
307
  )
307
308
 
308
309
  unless bool
309
- raise ProcessError, "CreateProcess() failed: ", get_last_error
310
+ raise ProcessError, 'CreateProcess() failed: ', get_last_error
310
311
  end
311
312
 
312
313
  ProcessInfo.new(
313
- procinfo[0,4].unpack('L').first, # hProcess
314
- procinfo[4,4].unpack('L').first, # hThread
315
- procinfo[8,4].unpack('L').first, # hProcessId
316
- procinfo[12,4].unpack('L').first # hThreadId
314
+ procinfo[0, 4].unpack('L').first, # hProcess
315
+ procinfo[4, 4].unpack('L').first, # hThread
316
+ procinfo[8, 4].unpack('L').first, # hProcessId
317
+ procinfo[12, 4].unpack('L').first # hThreadId
317
318
  )
318
319
  end
319
320
 
@@ -325,7 +326,7 @@ elsif is_win32? && TestUtil::RBVersion[0] < 2 && TestUtil::RBVersion[1] < 9
325
326
  else
326
327
  CloseHandle(pi_.process_handle) unless pi_.process_handle == INVALID_HANDLE_VALUE
327
328
  pi_.process_handle = INVALID_HANDLE_VALUE
328
- raise ProcessError, "GetExitCodeProcess failed: ", get_last_error
329
+ raise ProcessError, 'GetExitCodeProcess failed: ', get_last_error
329
330
  end
330
331
  end
331
332
 
@@ -396,6 +397,7 @@ elsif is_win32? && TestUtil::RBVersion[0] < 2 && TestUtil::RBVersion[1] < 9
396
397
  def exitstatus; @exitstatus; end
397
398
 
398
399
  def is_running?; @exitstatus.nil?; end
400
+
399
401
  def has_error?; !@exitstatus.nil? and (@exitstatus != 0); end
400
402
 
401
403
  def stop
@@ -442,7 +444,7 @@ else # !win32
442
444
  def check_status
443
445
  begin
444
446
  tmp, @status = ::Process.waitpid2(@pid, ::Process::WNOHANG)
445
- if tmp==@pid and @status.success? == false
447
+ if tmp == @pid and @status.success? == false
446
448
  @exitstatus = @status.exitstatus
447
449
  return false
448
450
  end
@@ -458,6 +460,7 @@ else # !win32
458
460
  end
459
461
 
460
462
  def is_running?; @exitstatus.nil?; end
463
+
461
464
  def has_error?; !@status.nil? and (@status.success? == false); end
462
465
 
463
466
  def stop
@@ -473,7 +476,7 @@ end
473
476
  class Test
474
477
  def initialize
475
478
  @proc = nil
476
- @cmd = ""
479
+ @cmd = ''
477
480
  end
478
481
 
479
482
  def run(cmd_, arg_)
@@ -488,10 +491,12 @@ end
488
491
  end
489
492
 
490
493
  def pid; @proc.pid; end
494
+
491
495
  def is_running?; @proc.is_running?; end
496
+
492
497
  def exit_status; @proc.exitstatus; end
493
498
 
494
- def wait(timeout, check_exit=true)
499
+ def wait(timeout, check_exit = true)
495
500
  t = Time.now
496
501
  begin
497
502
  if @proc.check_status
@@ -524,7 +529,7 @@ end
524
529
 
525
530
  def TestUtil.wait_for_file(filename, timeout)
526
531
  t = Time.now
527
- while !File.readable?(filename) do
532
+ while !File.readable?(filename)
528
533
  sleep(0.1)
529
534
  if (Time.now() - t) >= timeout.to_f
530
535
  STDERR.puts "ERROR: could not find file '#{filename}'"
@@ -535,8 +540,7 @@ end
535
540
  end
536
541
 
537
542
  def TestUtil.remove_file(filename)
538
- File.delete(filename) if File.exists?(filename)
543
+ File.delete(filename) if File.exist?(filename)
539
544
  end
540
545
 
541
546
  end
542
-
data/test/test_runner.rb CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  require 'rbconfig'
@@ -20,7 +19,7 @@ else
20
19
  RB_CONFIG = Config::CONFIG
21
20
  end
22
21
 
23
- is_win32 = (RB_CONFIG['target_os'] =~ /win32/ || RB_CONFIG['target_os'] =~ /mingw32/) ? true : false
22
+ is_win32 = (RB_CONFIG['target_os'] =~ /win32/ || RB_CONFIG['target_os'] =~ /mingw/) ? true : false
24
23
 
25
24
  root_path = File.expand_path(File.join(File.dirname(__FILE__), '..'))
26
25
 
@@ -50,23 +49,23 @@ else
50
49
  ENV['RUBYLIB'] = incdirs.join(File::PATH_SEPARATOR)
51
50
  if is_win32
52
51
  ENV['PATH'] = [
53
- File.directory?(ace_root) ? File.join(ENV['ACE_ROOT'],'lib') : nil,
52
+ File.directory?(ace_root) ? File.join(ace_root, 'lib') : nil,
54
53
  File.expand_path(File.join(root_path, 'ext')),
55
54
  ENV['PATH']
56
55
  ].compact.join(File::PATH_SEPARATOR)
57
56
  elsif RUBY_PLATFORM =~ /darwin/
58
57
  ENV['DYLD_LIBRARY_PATH'] = [
59
- File.directory?(ace_root) ? File.join(ENV['ACE_ROOT'],'lib') : nil,
58
+ File.directory?(ace_root) ? File.join(ace_root, 'lib') : nil,
60
59
  ENV['DYLD_LIBRARY_PATH']
61
60
  ].compact.join(File::PATH_SEPARATOR)
62
61
  ENV['DYLD_FALLBACK_LIBRARY_PATH'] = [
63
- File.directory?(ace_root) ? File.join(ENV['ACE_ROOT'],'lib') : nil,
62
+ File.directory?(ace_root) ? File.join(ace_root, 'lib') : nil,
64
63
  File.expand_path(File.join(root_path, 'ext')),
65
64
  ENV['DYLD_FALLBACK_LIBRARY_PATH']
66
65
  ].compact.join(File::PATH_SEPARATOR)
67
66
  else
68
67
  ENV['LD_LIBRARY_PATH'] = [
69
- File.directory?(ace_root) ? File.join(ENV['ACE_ROOT'],'lib') : nil,
68
+ File.directory?(ace_root) ? File.join(ace_root, 'lib') : nil,
70
69
  ENV['LD_LIBRARY_PATH']
71
70
  ].compact.join(File::PATH_SEPARATOR)
72
71
  end
@@ -110,7 +109,7 @@ module TestFinder
110
109
  (OPTIONS[:debug] ? '-d' : '')
111
110
  end
112
111
  if File.directory?(path)
113
- if File.exists?(File.join(path, 'run_test.rb'))
112
+ if File.exist?(File.join(path, 'run_test.rb'))
114
113
  dir = path.gsub(/^#{ROOT.gsub('/', '\/')}\//, '')
115
114
  return if (OPTIONS[:exclude] || []).any? {|match| /^#{match.gsub('/', '\/')}/ =~ dir }
116
115
  unless OPTIONS[:listonly]
@@ -127,7 +126,7 @@ module TestFinder
127
126
  puts dir
128
127
  end
129
128
  else
130
- Dir.glob(File.join(path, "*")) {|psub| self.process_directory(psub)}
129
+ Dir.glob(File.join(path, '*')) {|psub| self.process_directory(psub)}
131
130
  end
132
131
  end
133
132
  end
@@ -137,25 +136,25 @@ module TestFinder
137
136
  script_name = File.basename($0)
138
137
  opts.banner = "Usage: #{script_name} #{/r2corba/ =~ script_name ? 'test ' : nil}[options]"
139
138
 
140
- opts.separator ""
139
+ opts.separator ''
141
140
 
142
- opts.on("-x MATCH", "--exclude=MATCH",
143
- "Do not run tests matching MATCH.",
144
- "Default: nil") { |v| (OPTIONS[:exclude] ||= []) << v.to_s }
145
- opts.on("-r MATCH", "--run=MATCH",
146
- "Only run tests matching MATCH.",
147
- "Default: nil (run all)") { |v| (OPTIONS[:runonly] ||= []) << v.to_s }
141
+ opts.on('-x MATCH', '--exclude=MATCH',
142
+ 'Do not run tests matching MATCH.',
143
+ 'Default: nil') { |v| (OPTIONS[:exclude] ||= []) << v.to_s }
144
+ opts.on('-r MATCH', '--run=MATCH',
145
+ 'Only run tests matching MATCH.',
146
+ 'Default: nil (run all)') { |v| (OPTIONS[:runonly] ||= []) << v.to_s }
148
147
  opts.on('-l', '--list',
149
148
  'List tests, do not run.',
150
- "Default: off") { OPTIONS[:listonly] = true }
151
- opts.on("-d",
152
- "Run with debugging output.",
149
+ 'Default: off') { OPTIONS[:listonly] = true }
150
+ opts.on('-d',
151
+ 'Run with debugging output.',
153
152
  "Default: ENV['R2CORBA_DEBUG'].nil? ? false : true") { OPTIONS[:debug] = true }
154
153
 
155
- opts.separator ""
154
+ opts.separator ''
156
155
 
157
- opts.on("-h", "--help",
158
- "Show this help message.") { puts opts; exit }
156
+ opts.on('-h', '--help',
157
+ 'Show this help message.') { puts opts; exit }
159
158
 
160
159
  opts.parse!(argv)
161
160
 
@@ -171,7 +170,7 @@ module TestFinder
171
170
  end
172
171
 
173
172
  if OPTIONS[:runonly].nil?
174
- Dir.glob(File.join(TestFinder::ROOT, "*")) do |p|
173
+ Dir.glob(File.join(TestFinder::ROOT, '*')) do |p|
175
174
  TestFinder.process_directory(p)
176
175
  end
177
176
  else
@@ -185,9 +184,8 @@ module TestFinder
185
184
  end
186
185
 
187
186
  # add Ruby library path for test library
188
- ENV['RUBYLIB'] = ((ENV['RUBYLIB'] || '').split(File::PATH_SEPARATOR)+[TestFinder::ROOT]).join(File::PATH_SEPARATOR)
187
+ ENV['RUBYLIB'] = ((ENV['RUBYLIB'] || '').split(File::PATH_SEPARATOR) + [TestFinder::ROOT]).join(File::PATH_SEPARATOR)
189
188
 
190
189
  if $0 == __FILE__
191
190
  TestFinder.run(ARGV)
192
191
  end
193
-
metadata CHANGED
@@ -1,45 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r2corba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.1
5
5
  platform: universal-java
6
6
  authors:
7
7
  - Martin Corino
8
+ - Johnny Willemsen
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
12
+ date: 2022-03-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
- - - ~>
17
+ - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: '2.5'
19
+ version: '2.8'
19
20
  name: ridl
20
21
  prerelease: false
21
22
  type: :runtime
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ~>
25
+ - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '2.5'
27
+ version: '2.8'
27
28
  - !ruby/object:Gem::Dependency
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
- version: '10.0'
33
+ version: 12.3.3
33
34
  name: rake
34
35
  prerelease: false
35
36
  type: :runtime
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ~>
39
+ - - ">="
39
40
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- description: 'OMG CORBA v. 3.3 compliant CORBA language mapping implementation for
42
- Ruby. Depends on ridl gem for providing native Ruby IDL compiler. '
41
+ version: 12.3.3
42
+ description: 'OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby.
43
+ Depends on ridl gem for providing native Ruby IDL compiler. '
43
44
  email: mcorino@remedy.nl
44
45
  executables:
45
46
  - ridlc
@@ -52,7 +53,7 @@ files:
52
53
  - CHANGES
53
54
  - LICENSE
54
55
  - LICENSE.jacorb
55
- - README
56
+ - README.rdoc
56
57
  - THANKS
57
58
  - bin/r2corba
58
59
  - bin/r2corba.bat
@@ -60,12 +61,6 @@ files:
60
61
  - bin/ridlc.bat
61
62
  - bin/rins
62
63
  - bin/rins.bat
63
- - jacorb/lib/antlr-2.7.2.jar
64
- - jacorb/lib/jacorb-3.5.jar
65
- - jacorb/lib/jacorb-omgapi-3.5.jar
66
- - jacorb/lib/jacorb-services-3.5.jar
67
- - jacorb/lib/slf4j-api-1.7.6.jar
68
- - jacorb/lib/slf4j-jdk14-1.7.6.jar
69
64
  - lib/corba.rb
70
65
  - lib/corba/cbase/IORMap.rb
71
66
  - lib/corba/cbase/ORB.rb
@@ -147,22 +142,17 @@ files:
147
142
  - test/BiDirectional/Test.idl
148
143
  - test/BiDirectional/client.rb
149
144
  - test/BiDirectional/run_test.rb
150
- - test/BiDirectional/server.ior
151
145
  - test/BiDirectional/server.rb
152
146
  - test/CORBA_Services/Naming/BindingIterator/Test.idl
153
147
  - test/CORBA_Services/Naming/BindingIterator/client.rb
154
- - test/CORBA_Services/Naming/BindingIterator/ins.ior
155
148
  - test/CORBA_Services/Naming/BindingIterator/run_test.rb
156
149
  - test/CORBA_Services/Naming/BindingIterator/server.rb
157
150
  - test/CORBA_Services/Naming/Corbaname/Test.idl
158
151
  - test/CORBA_Services/Naming/Corbaname/client.rb
159
- - test/CORBA_Services/Naming/Corbaname/corbaname.ior
160
- - test/CORBA_Services/Naming/Corbaname/ins.ior
161
152
  - test/CORBA_Services/Naming/Corbaname/run_test.rb
162
153
  - test/CORBA_Services/Naming/Corbaname/server.rb
163
154
  - test/CORBA_Services/Naming/Simple/Test.idl
164
155
  - test/CORBA_Services/Naming/Simple/client.rb
165
- - test/CORBA_Services/Naming/Simple/ins.ior
166
156
  - test/CORBA_Services/Naming/Simple/run_test.rb
167
157
  - test/CORBA_Services/Naming/Simple/server.rb
168
158
  - test/Collocation/Diamond.idl
@@ -174,102 +164,82 @@ files:
174
164
  - test/DII/Test.idl
175
165
  - test/DII/client.rb
176
166
  - test/DII/run_test.rb
177
- - test/DII/server.ior
178
167
  - test/DII/server.rb
179
168
  - test/DSI/Test.idl
180
169
  - test/DSI/client.rb
181
170
  - test/DSI/run_test.rb
182
- - test/DSI/server.ior
183
171
  - test/DSI/server.rb
184
172
  - test/Exceptions/Test.idl
185
173
  - test/Exceptions/client.rb
186
174
  - test/Exceptions/run_test.rb
187
- - test/Exceptions/server.ior
188
175
  - test/Exceptions/server.rb
189
176
  - test/Hello/Test.idl
190
177
  - test/Hello/client.rb
191
- - test/Hello/gateway.ior
192
178
  - test/Hello/run_test.rb
193
179
  - test/Hello/server.rb
194
180
  - test/IDL_Test/Test.idl
195
181
  - test/IDL_Test/Test_inc.idl
196
182
  - test/IDL_Test/client.rb
197
183
  - test/IDL_Test/run_test.rb
198
- - test/IDL_Test/server.ior
199
184
  - test/IDL_Test/server.rb
200
185
  - test/IORMap/Test.idl
201
186
  - test/IORMap/client.rb
202
187
  - test/IORMap/run_test.rb
203
- - test/IORMap/server.ior
204
188
  - test/IORMap/server.rb
205
189
  - test/IORTable/Test.idl
206
190
  - test/IORTable/client.rb
207
191
  - test/IORTable/run_test.rb
208
- - test/IORTable/server.ior
209
192
  - test/IORTable/server.rb
210
193
  - test/Implicit_Conversion/Test.idl
211
194
  - test/Implicit_Conversion/client.rb
212
195
  - test/Implicit_Conversion/run_test.rb
213
- - test/Implicit_Conversion/server.ior
214
196
  - test/Implicit_Conversion/server.rb
215
197
  - test/Multi_Threading/Multiple_ORB/Test.idl
216
198
  - test/Multi_Threading/Multiple_ORB/client.rb
217
199
  - test/Multi_Threading/Multiple_ORB/run_test.rb
218
200
  - test/Multi_Threading/Multiple_ORB/server.rb
219
- - test/Multi_Threading/Multiple_ORB/server0.ior
220
- - test/Multi_Threading/Multiple_ORB/server1.ior
221
201
  - test/Multi_Threading/Simple/Test.idl
222
202
  - test/Multi_Threading/Simple/client.rb
223
203
  - test/Multi_Threading/Simple/run_test.rb
224
- - test/Multi_Threading/Simple/server.ior
225
204
  - test/Multi_Threading/Simple/server.rb
226
205
  - test/Multi_Threading/Threads/Test.idl
227
206
  - test/Multi_Threading/Threads/client.rb
228
207
  - test/Multi_Threading/Threads/run_test.rb
229
- - test/Multi_Threading/Threads/server.ior
230
208
  - test/Multi_Threading/Threads/server.rb
231
- - test/Multi_Threading/Threads/watchdog.ior
232
209
  - test/Multi_Threading/Threads/watchdog.rb
233
210
  - test/Multiple_Servant_Interfaces/Test.idl
234
211
  - test/Multiple_Servant_Interfaces/client.rb
235
212
  - test/Multiple_Servant_Interfaces/run_test.rb
236
- - test/Multiple_Servant_Interfaces/server.ior
237
213
  - test/Multiple_Servant_Interfaces/server.rb
238
214
  - test/Nil/Test.idl
239
215
  - test/Nil/run_test.rb
240
216
  - test/Nil/test.rb
241
217
  - test/OBV/AbstractInterface/client.rb
242
218
  - test/OBV/AbstractInterface/run_test.rb
243
- - test/OBV/AbstractInterface/server.ior
244
219
  - test/OBV/AbstractInterface/server.rb
245
220
  - test/OBV/AbstractInterface/test.idl
246
221
  - test/OBV/Custom/OBV.idl
247
222
  - test/OBV/Custom/OBV_impl.rb
248
223
  - test/OBV/Custom/client.rb
249
224
  - test/OBV/Custom/run_test.rb
250
- - test/OBV/Custom/server.ior
251
225
  - test/OBV/Custom/server.rb
252
226
  - test/OBV/Simple/OBV.idl
253
227
  - test/OBV/Simple/OBV_impl.rb
254
228
  - test/OBV/Simple/client.rb
255
229
  - test/OBV/Simple/run_test.rb
256
- - test/OBV/Simple/server.ior
257
230
  - test/OBV/Simple/server.rb
258
231
  - test/OBV/Simple_Event/Event.idl
259
232
  - test/OBV/Simple_Event/Event_impl.rb
260
233
  - test/OBV/Simple_Event/client.rb
261
234
  - test/OBV/Simple_Event/run_test.rb
262
- - test/OBV/Simple_Event/server.ior
263
235
  - test/OBV/Simple_Event/server.rb
264
236
  - test/OBV/Supports/client.rb
265
237
  - test/OBV/Supports/run_test.rb
266
- - test/OBV/Supports/server.ior
267
238
  - test/OBV/Supports/server.rb
268
239
  - test/OBV/Supports/supports.idl
269
240
  - test/OBV/Supports/supports_impl.rb
270
241
  - test/OBV/Tree/client.rb
271
242
  - test/OBV/Tree/run_test.rb
272
- - test/OBV/Tree/server.ior
273
243
  - test/OBV/Tree/server.rb
274
244
  - test/OBV/Tree/test.idl
275
245
  - test/OBV/Truncatable/Extra.idl
@@ -277,11 +247,9 @@ files:
277
247
  - test/OBV/Truncatable/Truncatable_impl.rb
278
248
  - test/OBV/Truncatable/client.rb
279
249
  - test/OBV/Truncatable/run_test.rb
280
- - test/OBV/Truncatable/server.ior
281
250
  - test/OBV/Truncatable/server.rb
282
251
  - test/OBV/ValueBox/client.rb
283
252
  - test/OBV/ValueBox/run_test.rb
284
- - test/OBV/ValueBox/server.ior
285
253
  - test/OBV/ValueBox/server.rb
286
254
  - test/OBV/ValueBox/valuebox.idl
287
255
  - test/OBV/ValueBox/vb_basic.idl
@@ -290,7 +258,6 @@ files:
290
258
  - test/Object/Test.idl
291
259
  - test/Object/client.rb
292
260
  - test/Object/run_test.rb
293
- - test/Object/server.ior
294
261
  - test/Object/server.rb
295
262
  - test/POA/Test.idl
296
263
  - test/POA/run_test.rb
@@ -298,51 +265,47 @@ files:
298
265
  - test/Param_Test/Test.idl
299
266
  - test/Param_Test/client.rb
300
267
  - test/Param_Test/run_test.rb
301
- - test/Param_Test/server.ior
302
268
  - test/Param_Test/server.rb
303
269
  - test/Performance/Simple/Test.idl
304
270
  - test/Performance/Simple/client.rb
305
271
  - test/Performance/Simple/run_test.rb
306
- - test/Performance/Simple/server.ior
307
272
  - test/Performance/Simple/server.rb
308
273
  - test/Policies/Test.idl
309
274
  - test/Policies/run_test.rb
310
275
  - test/Policies/test.rb
311
276
  - test/Timeout/client.rb
312
277
  - test/Timeout/run_test.rb
313
- - test/Timeout/server.ior
314
278
  - test/Timeout/server.rb
315
279
  - test/Timeout/test.idl
316
280
  - test/lib/assert.rb
317
281
  - test/lib/test.rb
318
- - test/test.log
319
- - test/test2.log
320
282
  - test/test_runner.rb
321
- homepage: https://osportal.remedy.nl/projects/r2corba
283
+ homepage: https://www.remedy.nl/opensource/r2corba.html
322
284
  licenses:
323
- - R2CORBA
324
- - JacORB
325
- metadata: {}
285
+ - Nonstandard
286
+ - GPL-2.0
287
+ metadata:
288
+ bug_tracker_uri: https://github.com/RemedyIT/r2corba/issues
289
+ source_code_uri: https://github.com/RemedyIT/r2corba
326
290
  post_install_message:
327
291
  rdoc_options:
328
- - --exclude=\.dll
329
- - --exclude=\.so
330
- - --exclude=\.pidlc
292
+ - "--exclude=\\.dll"
293
+ - "--exclude=\\.so"
294
+ - "--exclude=\\.pidlc"
331
295
  require_paths:
332
296
  - lib
333
297
  required_ruby_version: !ruby/object:Gem::Requirement
334
298
  requirements:
335
- - - '>='
299
+ - - ">="
336
300
  - !ruby/object:Gem::Version
337
- version: 1.7.0
301
+ version: '2.4'
338
302
  required_rubygems_version: !ruby/object:Gem::Requirement
339
303
  requirements:
340
- - - '>='
304
+ - - ">="
341
305
  - !ruby/object:Gem::Version
342
306
  version: '0'
343
307
  requirements: []
344
- rubyforge_project:
345
- rubygems_version: 2.4.5
308
+ rubygems_version: 3.2.29
346
309
  signing_key:
347
310
  specification_version: 4
348
311
  summary: CORBA language mapping implementation for Ruby
data/README DELETED
@@ -1,62 +0,0 @@
1
-
2
- * What is Ruby2CORBA
3
-
4
- Ruby2CORBA (R2CORBA) is a CORBA mapping implementation for the Ruby
5
- programming language (see http://www.ruby-lang.org).
6
- Instead of going for a complete native Ruby mapping implementing a native
7
- Ruby ORB, R2CORBA aims at providing CORBA functionality through a Ruby
8
- extension using the DII and DSI interfaces of an existing CORBA ORB
9
- implementation.
10
- There are currently two flavors of this extension available:
11
- o an MRI Ruby extension written in Ruby and C/C++ using TAO
12
- (The ACE ORB; see http://www.cs.wustl.edu/~schmidt/TAO.html).
13
- o a JRuby extension written in Ruby and Java using JacORB
14
- (http://www.jacorb.org/index.html).
15
- A native Ruby implementation of an OMG IDL compiler supplements this
16
- extension and provides powerful features like direct inclusion of IDL
17
- language modules into your Ruby programs without the need of explicit,
18
- separate stub generation.
19
-
20
- Both flavors of R2CORBA fully implement the official OMG Ruby CORBA
21
- Language Mapping (RCLM) specification which can be downloaded here:
22
- http://www.omg.org/spec/RCLM.
23
-
24
- * How to get R2CORBA
25
-
26
- Execute
27
-
28
- gem install r2corba
29
-
30
- to install R2CORBA as a gem.
31
-
32
- or
33
-
34
- Go to https://osportal.remedy.nl/projects/r2corba/files to
35
- download the latest source package and build your own.
36
-
37
- or
38
-
39
- Go to https://osportal.remedy.nl/projects/r2corba/wiki and read how
40
- to checkout the latest source code from the version repository.
41
-
42
- * How to compile and install
43
-
44
- See the file INSTALL
45
-
46
- * Copying/License
47
-
48
- See the file LICENSE
49
-
50
- * Acknowledgments
51
-
52
- See the file THANKS
53
-
54
- * The author(s)
55
-
56
- R2CORBA has been created by staff of Remedy IT.
57
- (http://www.remedy.nl | http://www.theaceorb.nl)
58
-
59
- Feel free to send comments and bug reports to:
60
-
61
- r2corba@remedy.nl
62
-
Binary file
Binary file
Binary file
Binary file
Binary file