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/rakelib/gem.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 'rubygems'
@@ -66,7 +65,7 @@ module R2CORBA
66
65
  manifest.concat Dir['lib/ridlbe/**/*']
67
66
  manifest << 'lib/corba.rb'
68
67
  manifest.concat Dir['test/**/*']
69
- manifest.concat %w{LICENSE README THANKS CHANGES mkrf_conf_bingem.rb}
68
+ manifest.concat %w{LICENSE README.rdoc THANKS CHANGES mkrf_conf_bingem.rb}
70
69
  manifest << 'LICENSE.jacorb' if defined?(JRUBY_VERSION)
71
70
  elsif gemtype == :extbin
72
71
  unless defined?(JRUBY_VERSION)
@@ -80,7 +79,7 @@ module R2CORBA
80
79
  manifest.concat Dir['lib/ridlbe/**/*.[^p]*']
81
80
  manifest << 'lib/corba.rb'
82
81
  manifest.concat Dir['test/**/*']
83
- manifest.concat %w{LICENSE README THANKS CHANGES mkrf_conf_srcgem.rb}
82
+ manifest.concat %w{LICENSE README.rdoc THANKS CHANGES mkrf_conf_srcgem.rb}
84
83
  end
85
84
  unless gemtype == :extbin
86
85
  if defined?(JRUBY_VERSION)
@@ -93,21 +92,21 @@ module R2CORBA
93
92
  end
94
93
 
95
94
  def self.define_spec(name, version, gemtype = :src, &block)
96
- name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
97
- name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
98
- gemspec = ::Gem::Specification.new(name,version.dup)
95
+ name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
96
+ name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
97
+ gemspec = ::Gem::Specification.new(name, version.dup)
99
98
  if gemtype == :bin || gemtype == :extbin
100
99
  gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
101
100
  end
102
- gemspec.required_rubygems_version = ::Gem::Requirement.new(">= 0") if gemspec.respond_to? :required_rubygems_version=
101
+ gemspec.required_rubygems_version = ::Gem::Requirement.new('>= 0') if gemspec.respond_to? :required_rubygems_version=
103
102
  block.call(gemspec) if block_given?
104
103
  gemspec
105
104
  end
106
105
 
107
106
  def self.gem_name(name, version, gemtype = :src)
108
107
  name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
109
- name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
110
- gemspec = ::Gem::Specification.new(name,version.dup)
108
+ name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
109
+ gemspec = ::Gem::Specification.new(name, version.dup)
111
110
  if gemtype == :bin || gemtype == :extbin
112
111
  gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
113
112
  end
@@ -143,4 +142,4 @@ module R2CORBA
143
142
 
144
143
  end
145
144
 
146
- end
145
+ end
data/rakelib/package.rake CHANGED
@@ -8,19 +8,18 @@
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 'rake/packagetask'
15
14
 
16
15
  require File.join(File.dirname(__FILE__), 'config.rb')
17
16
 
18
- Rake::PackageTask.new("r2corba", R2CORBA::R2CORBA_VERSION) do |p|
17
+ Rake::PackageTask.new('r2corba', R2CORBA::R2CORBA_VERSION) do |p|
19
18
  p.need_tar_gz = true
20
19
  p.need_zip = true
21
20
  p.package_files.include(%w{ext/**/*.{mwc,cpp,c,h}})
22
21
  p.package_files.include(%w{example/**/* lib/**/*[^C].* test/**/* rpmbuild/**/* rakelib/**/*})
23
22
  p.package_files.exclude(/GNUmakefile/)
24
- p.package_files.include(%w{CHANGES INSTALL* LICENSE* Gemfile Rakefile README* THANKS mkrf_conf*.rb})
23
+ p.package_files.include(%w{CHANGES INSTALL* LICENSE* Gemfile Rakefile README.rdoc THANKS mkrf_conf*.rb})
25
24
  p.package_files.include(%w{ridl/lib/**/*}) if ENV['R2CORBA_PKG_RIDL']
26
25
  end
data/rakelib/test.rake 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 File.join(File.dirname(__FILE__), 'config.rb')
@@ -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
  interface Callback
@@ -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
  require 'optparse'
12
11
  require 'lib/assert.rb'
@@ -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("--k IORFILE",
28
- "Set IOR.",
29
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
30
- opts.on("--d LVL",
31
- "Set ORBDebugLevel value.",
32
- "Default: 0", Integer) { |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('--k IORFILE',
27
+ 'Set IOR.',
28
+ "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
29
+ opts.on('--d LVL',
30
+ 'Set ORBDebugLevel value.',
31
+ 'Default: 0', Integer) { |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
@@ -65,19 +64,19 @@ class MyCallback < POA::Callback
65
64
  end
66
65
  end
67
66
 
68
- end #of servant Callback
67
+ end # of servant Callback
69
68
 
70
69
  if defined?(JRUBY_VERSION)
71
70
  ## JacORB needs explicit activation of this option
72
71
  props = {
73
- "org.omg.PortableInterceptor.ORBInitializerClass.bidir_init" =>
74
- "org.jacorb.orb.giop.BiDirConnectionInitializer"
72
+ 'org.omg.PortableInterceptor.ORBInitializerClass.bidir_init' =>
73
+ 'org.jacorb.orb.giop.BiDirConnectionInitializer'
75
74
  }
76
75
  else
77
76
  props = {}
78
77
  end
79
78
 
80
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB', props)
79
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB', props)
81
80
 
82
81
  begin
83
82
 
@@ -129,4 +128,4 @@ ensure
129
128
 
130
129
  orb.destroy()
131
130
 
132
- end
131
+ end
@@ -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
  OPTIONS = {
@@ -20,19 +19,19 @@ ARGV.options do |opts|
20
19
  script_name = File.basename($0)
21
20
  opts.banner = "Usage: ruby #{script_name} [options]"
22
21
 
23
- opts.separator ""
22
+ opts.separator ''
24
23
 
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] = '' }
24
+ opts.on('-d',
25
+ 'Run with debugging output.',
26
+ 'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
27
+ opts.on('--use-stubs',
28
+ 'Use stubs generated by RIDL.',
29
+ 'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
31
30
 
32
- opts.separator ""
31
+ opts.separator ''
33
32
 
34
- opts.on("-h", "--help",
35
- "Show this help message.") { puts opts; exit }
33
+ opts.on('-h', '--help',
34
+ 'Show this help message.') { puts opts; exit }
36
35
 
37
36
  opts.parse!
38
37
  end
@@ -59,7 +58,7 @@ end
59
58
 
60
59
  exrc = clt.wait(400)
61
60
 
62
- if exrc ==0
61
+ if exrc == 0
63
62
  srv.wait(400)
64
63
  else
65
64
  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'
@@ -23,25 +22,25 @@ ARGV.options do |opts|
23
22
  script_name = File.basename($0)
24
23
  opts.banner = "Usage: ruby #{script_name} [options]"
25
24
 
26
- opts.separator ""
25
+ opts.separator ''
27
26
 
28
- opts.on("--o IORFILE",
29
- "Set IOR filename.",
30
- "Default: '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 }
37
- opts.on("--i ITERATIONS",
38
- "Set number of iterations.",
39
- "Default: 10", Integer) { |v| OPTIONS[:iter_num]=v }
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 }
36
+ opts.on('--i ITERATIONS',
37
+ 'Set number of iterations.',
38
+ 'Default: 10', Integer) { |v| OPTIONS[:iter_num] = v }
40
39
 
41
- opts.separator ""
40
+ opts.separator ''
42
41
 
43
- opts.on("-h", "--help",
44
- "Show this help message.") { puts opts; exit }
42
+ opts.on('-h', '--help',
43
+ 'Show this help message.') { puts opts; exit }
45
44
 
46
45
  opts.parse!
47
46
  end
@@ -93,19 +92,19 @@ class Simple_Server_i < POA::Simple_Server
93
92
  return 0
94
93
  end
95
94
 
96
- end #of servant Simple_Server_i
95
+ end # of servant Simple_Server_i
97
96
 
98
97
  if defined?(JRUBY_VERSION)
99
98
  ## JacORB needs explicit activation of this option
100
99
  props = {
101
- "org.omg.PortableInterceptor.ORBInitializerClass.bidir_init" =>
102
- "org.jacorb.orb.giop.BiDirConnectionInitializer"
100
+ 'org.omg.PortableInterceptor.ORBInitializerClass.bidir_init' =>
101
+ 'org.jacorb.orb.giop.BiDirConnectionInitializer'
103
102
  }
104
103
  else
105
104
  props = {}
106
105
  end
107
106
 
108
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB', props)
107
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB', props)
109
108
 
110
109
  obj = orb.resolve_initial_references('RootPOA')
111
110
 
@@ -144,7 +143,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
144
143
  }
145
144
 
146
145
  Signal.trap('INT') do
147
- puts "SIGINT - shutting down ORB..."
146
+ puts 'SIGINT - shutting down ORB...'
148
147
  orb.shutdown()
149
148
  end
150
149
 
@@ -166,4 +165,3 @@ end
166
165
  puts 'event loop finished'
167
166
 
168
167
  root_poa.destroy(true, true)
169
-
@@ -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://ins.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://ins.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
@@ -52,7 +51,7 @@ else
52
51
  end
53
52
  require 'corba/naming'
54
53
 
55
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
54
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
56
55
 
57
56
  begin
58
57
 
@@ -61,12 +60,12 @@ begin
61
60
 
62
61
  nc = CosNaming::NamingContextExt._narrow(obj)
63
62
 
64
- assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
63
+ assert_not 'ERROR: INS IOR resolved to nil object!', CORBA::is_nil(nc)
65
64
 
66
65
  # list registered items in context
67
66
  binding_list, binding_iterator = nc.list(1)
68
67
 
69
- assert 'ERROR: INS list() does not function', (!CORBA::is_nil(binding_iterator) && binding_list.size==1) &&
68
+ assert 'ERROR: INS list() does not function', (!CORBA::is_nil(binding_iterator) && binding_list.size == 1) &&
70
69
  binding_list.first.binding_type == CosNaming::Nobject
71
70
 
72
71
  n = binding_list.first.binding_name.first
@@ -84,7 +83,7 @@ begin
84
83
  has_list, binding_list = binding_iterator.next_n(3)
85
84
 
86
85
  assert 'ERROR: INS BindingIterator#next_n() does not function',
87
- (has_list && binding_list.size==3) &&
86
+ (has_list && binding_list.size == 3) &&
88
87
  binding_list.first.binding_type == CosNaming::Nobject &&
89
88
  binding_list.last.binding_type == CosNaming::Nobject
90
89
 
@@ -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
@@ -43,7 +42,7 @@ include TestUtil
43
42
 
44
43
  def do_exit(rc)
45
44
  ins_stop = Test.new
46
- ins_stop.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", "-- stop --no-daemon")
45
+ ins_stop.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", '-- stop --no-daemon')
47
46
  ins_stop.wait(50)
48
47
  exit(rc)
49
48
  end
@@ -54,7 +53,7 @@ TestUtil.remove_file(ior_file)
54
53
 
55
54
  ins = Test.new
56
55
 
57
- exit(255) if !ins.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", "-- start")
56
+ exit(255) if !ins.run("-e \'require \"corba/svcs/ins/ins.rb\"\' -e \'R2CORBA::INS.run\'", '-- start')
58
57
 
59
58
  do_exit(255) if !TestUtil.wait_for_file(ior_file, 400)
60
59
 
@@ -73,7 +72,7 @@ end
73
72
 
74
73
  exrc = clt.wait(400)
75
74
 
76
- if exrc ==0
75
+ if exrc == 0
77
76
  srv.wait(400)
78
77
  else
79
78
  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'
@@ -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 INS IOR filename.",
31
- "Default: 'file://ins.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 INS IOR filename.',
30
+ "Default: 'file://ins.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
@@ -58,23 +57,23 @@ class MyHello < POA::Test::Hello
58
57
  end
59
58
 
60
59
  def get_string()
61
- "Hello there!"
60
+ 'Hello there!'
62
61
  end
63
62
 
64
63
  def shutdown()
65
64
  @orb.shutdown()
66
65
  end
67
- end #of servant MyHello
66
+ end # of servant MyHello
68
67
 
69
68
  # initialize ORB
70
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
69
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
71
70
 
72
71
  # resolve NamingContext
73
72
  obj = orb.string_to_object(OPTIONS[:iorfile])
74
73
 
75
74
  nc = CosNaming::NamingContextExt._narrow(obj)
76
75
 
77
- assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
76
+ assert_not 'ERROR: INS IOR resolved to nil object!', CORBA::is_nil(nc)
78
77
 
79
78
  # initialize POA
80
79
  obj = orb.resolve_initial_references('RootPOA')
@@ -92,12 +91,12 @@ hello_obj = hello_srv._this()
92
91
 
93
92
  # register 5 object references with Naming service
94
93
  5.times do |i|
95
- nc.bind([CosNaming::NameComponent.new("Hello#{i}",'ior')], hello_obj)
94
+ nc.bind([CosNaming::NameComponent.new("Hello#{i}", 'ior')], hello_obj)
96
95
  end
97
96
 
98
97
  # initialize signal handling
99
98
  Signal.trap('INT') do
100
- puts "SIGINT - shutting down ORB..."
99
+ puts 'SIGINT - shutting down ORB...'
101
100
  orb.shutdown()
102
101
  end
103
102
 
@@ -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 file.",
31
- "Default: 'corbaname.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 file.',
30
+ "Default: 'corbaname.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
@@ -52,7 +51,7 @@ else
52
51
  end
53
52
  require 'corba/naming'
54
53
 
55
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
54
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
56
55
 
57
56
  begin
58
57
 
@@ -70,7 +69,7 @@ begin
70
69
  # narrow object ref and call
71
70
  hello_obj = Test::Hello._narrow(obj)
72
71
 
73
- assert_not "ERROR: corbaname resolved to nil object!", CORBA::is_nil(hello_obj)
72
+ assert_not 'ERROR: corbaname resolved to nil object!', CORBA::is_nil(hello_obj)
74
73
 
75
74
  the_string = hello_obj.get_string()
76
75