r2corba 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +5 -5
  3. data/README.rdoc +59 -0
  4. data/THANKS +4 -4
  5. data/ext/libr2tao/any.cpp +0 -1
  6. data/ext/libr2tao/exception.cpp +0 -1
  7. data/ext/libr2tao/exception.h +0 -1
  8. data/ext/libr2tao/longdouble.cpp +0 -1
  9. data/ext/libr2tao/longdouble.h +0 -1
  10. data/ext/libr2tao/object.cpp +3 -3
  11. data/ext/libr2tao/object.h +0 -1
  12. data/ext/libr2tao/orb.cpp +4 -5
  13. data/ext/libr2tao/orb.h +0 -1
  14. data/ext/libr2tao/r2tao_export.h +0 -1
  15. data/ext/libr2tao/r2tao_ext.h +0 -1
  16. data/ext/libr2tao/required.cpp +1 -1
  17. data/ext/libr2tao/required.h +7 -1
  18. data/ext/libr2tao/typecode.cpp +0 -1
  19. data/ext/libr2tao/typecode.h +0 -1
  20. data/ext/libr2tao/values.cpp +8 -9
  21. data/ext/libr2tao/values.h +0 -1
  22. data/ext/librpoa/iortable.cpp +1 -1
  23. data/ext/librpoa/poa.cpp +3 -3
  24. data/ext/librpoa/poa.h +0 -1
  25. data/ext/librpoa/rpoa_export.h +0 -1
  26. data/ext/librpoa/servant.cpp +1 -1
  27. data/ext/librpoa/servant.h +0 -1
  28. data/ext/librpoa/srvreq_fix.cpp +0 -1
  29. data/ext/librpoa/srvreq_fix.h +0 -1
  30. data/ext/librpol/policies.cpp +0 -1
  31. data/ext/librpol/policies.h +0 -1
  32. data/ext/librpol/rpol_export.h +0 -1
  33. data/lib/corba.rb +0 -1
  34. data/lib/corba/cbase/IORMap.rb +0 -1
  35. data/lib/corba/cbase/ORB.rb +0 -1
  36. data/lib/corba/cbase/Request.rb +1 -2
  37. data/lib/corba/cbase/Streams.rb +0 -1
  38. data/lib/corba/cbase/Stub.rb +0 -1
  39. data/lib/corba/cbase/Typecode.rb +0 -1
  40. data/lib/corba/cbase/Values.rb +0 -1
  41. data/lib/corba/cbase/exception.rb +0 -1
  42. data/lib/corba/cbase/poa.rb +0 -1
  43. data/lib/corba/cbase/policies.rb +1 -2
  44. data/lib/corba/cbase/post_require.rb +1 -2
  45. data/lib/corba/cbase/require.rb +2 -1
  46. data/lib/corba/cmds/base.rb +0 -1
  47. data/lib/corba/cmds/test.rb +0 -1
  48. data/lib/corba/common/Any.rb +0 -1
  49. data/lib/corba/common/IDL.rb +2 -3
  50. data/lib/corba/common/ORB.rb +0 -1
  51. data/lib/corba/common/Object.rb +4 -1
  52. data/lib/corba/common/Request.rb +1 -2
  53. data/lib/corba/common/Servant.rb +0 -1
  54. data/lib/corba/common/Struct.rb +1 -2
  55. data/lib/corba/common/Stub.rb +0 -1
  56. data/lib/corba/common/Typecode.rb +19 -20
  57. data/lib/corba/common/Union.rb +1 -2
  58. data/lib/corba/common/Values.rb +1 -2
  59. data/lib/corba/common/const.rb +0 -1
  60. data/lib/corba/common/exception.rb +0 -1
  61. data/lib/corba/common/require.rb +0 -1
  62. data/lib/corba/common/version.rb +3 -4
  63. data/lib/corba/idl/IDL.rb +0 -1
  64. data/lib/corba/idl/IORTable.pidl +0 -1
  65. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  66. data/lib/corba/idl/require.rb +0 -1
  67. data/lib/corba/jbase/Any.rb +1 -2
  68. data/lib/corba/jbase/IORMap.rb +1 -2
  69. data/lib/corba/jbase/ORB.rb +0 -1
  70. data/lib/corba/jbase/Object.rb +0 -1
  71. data/lib/corba/jbase/Request.rb +1 -2
  72. data/lib/corba/jbase/Servant.rb +1 -2
  73. data/lib/corba/jbase/ServerRequest.rb +1 -2
  74. data/lib/corba/jbase/Streams.rb +1 -2
  75. data/lib/corba/jbase/Stub.rb +0 -1
  76. data/lib/corba/jbase/Typecode.rb +0 -1
  77. data/lib/corba/jbase/Values.rb +0 -1
  78. data/lib/corba/jbase/exception.rb +0 -1
  79. data/lib/corba/jbase/poa.rb +1 -2
  80. data/lib/corba/jbase/policies.rb +1 -2
  81. data/lib/corba/jbase/post_require.rb +0 -1
  82. data/lib/corba/jbase/require.rb +1 -2
  83. data/lib/corba/naming.rb +0 -1
  84. data/lib/corba/naming_service.rb +0 -1
  85. data/lib/corba/poa.rb +0 -1
  86. data/lib/corba/policies.rb +0 -1
  87. data/lib/corba/require.rb +0 -1
  88. data/lib/corba/svcs/ins/cos_naming.rb +37 -40
  89. data/lib/corba/svcs/ins/ins.rb +6 -7
  90. data/lib/corba/svcs/ins/naming_service.rb +1 -2
  91. data/lib/ridlbe/ruby/config.rb +1 -3
  92. data/lib/ridlbe/ruby/require.rb +0 -1
  93. data/lib/ridlbe/ruby/walker.rb +16 -16
  94. data/mkrf_conf_srcgem.rb +4 -6
  95. data/rakelib/bin.rake +1 -2
  96. data/rakelib/bin.rb +1 -2
  97. data/rakelib/build.rake +6 -6
  98. data/rakelib/config.rake +1 -2
  99. data/rakelib/config.rb +6 -7
  100. data/rakelib/ext.rake +14 -12
  101. data/rakelib/ext.rb +5 -44
  102. data/rakelib/ext_r2tao.rb +23 -7
  103. data/rakelib/gem.rake +23 -24
  104. data/rakelib/gem.rb +3 -4
  105. data/rakelib/package.rake +1 -2
  106. data/rakelib/test.rake +0 -1
  107. data/test/BiDirectional/Test.idl +0 -1
  108. data/test/BiDirectional/client.rb +1 -2
  109. data/test/BiDirectional/run_test.rb +0 -1
  110. data/test/BiDirectional/server.rb +0 -1
  111. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  112. data/test/CORBA_Services/Naming/BindingIterator/client.rb +0 -1
  113. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +0 -1
  114. data/test/CORBA_Services/Naming/BindingIterator/server.rb +0 -1
  115. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  116. data/test/CORBA_Services/Naming/Corbaname/client.rb +0 -1
  117. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +0 -1
  118. data/test/CORBA_Services/Naming/Corbaname/server.rb +0 -1
  119. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  120. data/test/CORBA_Services/Naming/Simple/client.rb +0 -1
  121. data/test/CORBA_Services/Naming/Simple/run_test.rb +0 -1
  122. data/test/CORBA_Services/Naming/Simple/server.rb +0 -1
  123. data/test/Collocation/Diamond.idl +0 -1
  124. data/test/Collocation/run_test.rb +0 -1
  125. data/test/Collocation/test.rb +0 -1
  126. data/test/Connect_Timeout/Test.idl +0 -1
  127. data/test/Connect_Timeout/client.rb +0 -1
  128. data/test/Connect_Timeout/run_test.rb +0 -1
  129. data/test/DII/Test.idl +0 -1
  130. data/test/DII/client.rb +0 -1
  131. data/test/DII/run_test.rb +0 -1
  132. data/test/DII/server.rb +0 -1
  133. data/test/DSI/Test.idl +0 -1
  134. data/test/DSI/client.rb +0 -1
  135. data/test/DSI/run_test.rb +0 -1
  136. data/test/DSI/server.rb +0 -1
  137. data/test/Exceptions/Test.idl +0 -1
  138. data/test/Exceptions/client.rb +1 -2
  139. data/test/Exceptions/run_test.rb +0 -1
  140. data/test/Exceptions/server.rb +0 -1
  141. data/test/Hello/Test.idl +0 -1
  142. data/test/Hello/client.rb +0 -1
  143. data/test/Hello/run_test.rb +0 -1
  144. data/test/Hello/server.rb +0 -1
  145. data/test/IDL_Test/Test.idl +4 -1
  146. data/test/IDL_Test/client.rb +3 -2
  147. data/test/IDL_Test/run_test.rb +0 -1
  148. data/test/IDL_Test/server.rb +5 -1
  149. data/test/IORMap/Test.idl +0 -1
  150. data/test/IORMap/client.rb +0 -1
  151. data/test/IORMap/run_test.rb +0 -1
  152. data/test/IORMap/server.rb +0 -1
  153. data/test/IORTable/Test.idl +0 -1
  154. data/test/IORTable/client.rb +0 -1
  155. data/test/IORTable/run_test.rb +0 -1
  156. data/test/IORTable/server.rb +0 -1
  157. data/test/Implicit_Conversion/Test.idl +0 -1
  158. data/test/Implicit_Conversion/client.rb +0 -1
  159. data/test/Implicit_Conversion/run_test.rb +0 -1
  160. data/test/Implicit_Conversion/server.rb +0 -1
  161. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  162. data/test/Multi_Threading/Multiple_ORB/client.rb +0 -1
  163. data/test/Multi_Threading/Multiple_ORB/run_test.rb +0 -1
  164. data/test/Multi_Threading/Multiple_ORB/server.rb +0 -1
  165. data/test/Multi_Threading/Simple/Test.idl +0 -1
  166. data/test/Multi_Threading/Simple/client.rb +0 -1
  167. data/test/Multi_Threading/Simple/run_test.rb +0 -1
  168. data/test/Multi_Threading/Simple/server.rb +1 -2
  169. data/test/Multi_Threading/Threads/Test.idl +0 -4
  170. data/test/Multi_Threading/Threads/client.rb +7 -10
  171. data/test/Multi_Threading/Threads/run_test.rb +0 -1
  172. data/test/Multi_Threading/Threads/server.rb +0 -3
  173. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  174. data/test/Multiple_Servant_Interfaces/client.rb +0 -1
  175. data/test/Multiple_Servant_Interfaces/run_test.rb +0 -1
  176. data/test/Multiple_Servant_Interfaces/server.rb +0 -1
  177. data/test/Nil/Test.idl +0 -1
  178. data/test/Nil/run_test.rb +0 -1
  179. data/test/Nil/test.rb +0 -1
  180. data/test/OBV/AbstractInterface/client.rb +0 -1
  181. data/test/OBV/AbstractInterface/run_test.rb +0 -1
  182. data/test/OBV/AbstractInterface/server.rb +0 -1
  183. data/test/OBV/AbstractInterface/test.idl +0 -1
  184. data/test/OBV/Custom/OBV_impl.rb +0 -1
  185. data/test/OBV/Custom/client.rb +0 -1
  186. data/test/OBV/Custom/run_test.rb +0 -1
  187. data/test/OBV/Custom/server.rb +0 -1
  188. data/test/OBV/Simple/OBV_impl.rb +0 -1
  189. data/test/OBV/Simple/client.rb +0 -1
  190. data/test/OBV/Simple/run_test.rb +0 -1
  191. data/test/OBV/Simple/server.rb +0 -1
  192. data/test/OBV/Simple_Event/Event_impl.rb +0 -1
  193. data/test/OBV/Simple_Event/client.rb +0 -1
  194. data/test/OBV/Simple_Event/run_test.rb +0 -1
  195. data/test/OBV/Simple_Event/server.rb +0 -1
  196. data/test/OBV/Supports/client.rb +0 -1
  197. data/test/OBV/Supports/run_test.rb +0 -1
  198. data/test/OBV/Supports/server.rb +0 -1
  199. data/test/OBV/Supports/supports.idl +0 -1
  200. data/test/OBV/Supports/supports_impl.rb +0 -1
  201. data/test/OBV/Tree/client.rb +0 -1
  202. data/test/OBV/Tree/run_test.rb +0 -1
  203. data/test/OBV/Tree/server.rb +0 -1
  204. data/test/OBV/Tree/test.idl +0 -1
  205. data/test/OBV/Truncatable/Extra.idl +0 -1
  206. data/test/OBV/Truncatable/Truncatable_impl.rb +0 -1
  207. data/test/OBV/Truncatable/client.rb +0 -1
  208. data/test/OBV/Truncatable/run_test.rb +0 -1
  209. data/test/OBV/Truncatable/server.rb +0 -1
  210. data/test/OBV/ValueBox/client.rb +0 -1
  211. data/test/OBV/ValueBox/run_test.rb +0 -1
  212. data/test/Object/Test.idl +0 -1
  213. data/test/Object/client.rb +0 -1
  214. data/test/Object/run_test.rb +0 -1
  215. data/test/Object/server.rb +0 -1
  216. data/test/POA/run_test.rb +0 -1
  217. data/test/POA/test.rb +1 -2
  218. data/test/Param_Test/client.rb +2 -3
  219. data/test/Param_Test/run_test.rb +0 -1
  220. data/test/Param_Test/server.rb +1 -2
  221. data/test/Performance/Simple/Test.idl +0 -1
  222. data/test/Performance/Simple/client.rb +0 -1
  223. data/test/Performance/Simple/run_test.rb +0 -1
  224. data/test/Performance/Simple/server.rb +0 -1
  225. data/test/Policies/Test.idl +0 -1
  226. data/test/Policies/run_test.rb +0 -1
  227. data/test/Policies/test.rb +0 -1
  228. data/test/Timeout/client.rb +0 -1
  229. data/test/Timeout/run_test.rb +0 -1
  230. data/test/Timeout/server.rb +0 -1
  231. data/test/Timeout/test.idl +0 -1
  232. data/test/lib/assert.rb +0 -1
  233. data/test/lib/test.rb +1 -2
  234. data/test/test_runner.rb +1 -2
  235. metadata +23 -55
  236. data/README +0 -62
  237. data/test/BiDirectional/server.ior +0 -1
  238. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
  239. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
  240. data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
  241. data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
  242. data/test/DII/server.ior +0 -1
  243. data/test/DSI/server.ior +0 -1
  244. data/test/Exceptions/server.ior +0 -1
  245. data/test/Hello/gateway.ior +0 -1
  246. data/test/IDL_Test/server.ior +0 -1
  247. data/test/IORMap/server.ior +0 -1
  248. data/test/IORTable/server.ior +0 -0
  249. data/test/Implicit_Conversion/server.ior +0 -1
  250. data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
  251. data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
  252. data/test/Multi_Threading/Simple/server.ior +0 -1
  253. data/test/Multi_Threading/Threads/server.ior +0 -1
  254. data/test/Multi_Threading/Threads/watchdog.ior +0 -1
  255. data/test/Multiple_Servant_Interfaces/server.ior +0 -1
  256. data/test/OBV/AbstractInterface/server.ior +0 -1
  257. data/test/OBV/Custom/server.ior +0 -1
  258. data/test/OBV/Simple/server.ior +0 -1
  259. data/test/OBV/Simple_Event/server.ior +0 -1
  260. data/test/OBV/Supports/server.ior +0 -1
  261. data/test/OBV/Tree/server.ior +0 -1
  262. data/test/OBV/Truncatable/server.ior +0 -1
  263. data/test/OBV/ValueBox/server.ior +0 -1
  264. data/test/Object/server.ior +0 -1
  265. data/test/Param_Test/server.ior +0 -1
  266. data/test/Performance/Simple/server.ior +0 -1
  267. data/test/Timeout/server.ior +0 -1
  268. data/test/test.log +0 -20
  269. data/test/test2.log +0 -5000
@@ -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 'corba/svcs/ins/naming_service'
@@ -16,10 +15,10 @@ require 'optparse'
16
15
 
17
16
  module R2CORBA
18
17
  module INS
19
- INS_VERSION_MAJOR = 0.freeze
20
- INS_VERSION_MINOR = 1.freeze
21
- INS_VERSION_RELEASE = 1.freeze
22
- INS_COPYRIGHT = 'Copyright (c) 2011-2013 Remedy IT Expertise BV, The Netherlands'.freeze
18
+ INS_VERSION_MAJOR = 0
19
+ INS_VERSION_MINOR = 1
20
+ INS_VERSION_RELEASE = 1
21
+ INS_COPYRIGHT = "Copyright (c) 2011-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
23
22
 
24
23
  IS_WIN32 = (RUBY_PLATFORM =~ /win32/ || RUBY_PLATFORM =~ /mingw32/ || ENV['OS'] =~ /windows/i) ? true : false
25
24
  IS_JRUBY = defined?(JRUBY_VERSION)
@@ -136,7 +135,7 @@ module R2CORBA
136
135
  end
137
136
 
138
137
  def pidfile_exists?
139
- File.exists?(self.pidfile)
138
+ File.exist?(self.pidfile)
140
139
  end
141
140
 
142
141
  def check_pidfile
@@ -327,7 +326,7 @@ module R2CORBA
327
326
  end
328
327
 
329
328
  def pidfile_exists?
330
- File.exists?(self.pidfile)
329
+ File.exist?(self.pidfile)
331
330
  end
332
331
 
333
332
  def check_pidfile
@@ -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 'corba'
@@ -28,7 +27,7 @@ module R2CORBA
28
27
 
29
28
  def initialize(options = {})
30
29
  @options = OPTIONS.merge(options)
31
- raise RuntimeError, 'nr. of threads must >= 1' if @options[:threads] < 1
30
+ raise 'nr. of threads must >= 1' if @options[:threads] < 1
32
31
  end
33
32
 
34
33
  def setup
@@ -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
  module IDL
@@ -298,8 +297,7 @@ module IDL
298
297
  ret = ret[0,1].downcase + ret[1,ret.size].to_s
299
298
  ret = 'r_'+ret if IDL::Ruby::LeafMixin::RESERVED_RUBY_MEMBER.include?(ret)
300
299
  else
301
- raise RuntimeError,
302
- "invalid nametype for #{self.class}: #{self::NAMETYPE}"
300
+ raise "invalid nametype for #{self.class}: #{self::NAMETYPE}"
303
301
  end
304
302
  ret
305
303
  end
@@ -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
  (Dir.glob(File.join(File.dirname(__FILE__), '*.rb')) - [__FILE__]).each do |f|
@@ -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
  module IDL
14
13
  class RubyWriterBase
@@ -55,10 +54,9 @@ module IDL
55
54
  #
56
55
  # **** Code generated by the R2CORBA IDL Compiler ****
57
56
  # R2CORBA has been developed by:
58
- # Remedy IT
59
- # Nijkerk, GLD
57
+ # Remedy IT Expertise BV
60
58
  # The Netherlands
61
- # http://www.remedy.nl \ http://www.theaceorb.nl
59
+ # https://www.remedy.nl
62
60
  #
63
61
  })
64
62
  println("require 'corba'") if @params[:libinit]
@@ -740,7 +738,7 @@ module IDL
740
738
  end
741
739
 
742
740
  else
743
- raise RuntimeError, "invalid type for (un)marshalling: #{_type.typename}"
741
+ raise "invalid type for (un)marshalling: #{_type.typename}"
744
742
  end
745
743
  end
746
744
 
@@ -764,7 +762,7 @@ module IDL
764
762
  when Expression::ScopedName, Expression::Enumerator
765
763
  exp.node.scoped_rubyname
766
764
  else
767
- raise RuntimeError, "unknown expression type: #{exp.class.name}"
765
+ raise "unknown expression type: #{exp.class.name}"
768
766
  end
769
767
  end
770
768
 
@@ -821,7 +819,7 @@ module IDL
821
819
  when Type::ScopedName
822
820
  s = value_to_s(Expression::Value.new(exp.idltype.node.idltype, v))
823
821
  else
824
- raise RuntimeError, "#{exp.typename}'s not been supported yet."
822
+ raise "#{exp.typename}'s not been supported yet."
825
823
  end
826
824
  s
827
825
  end
@@ -855,7 +853,7 @@ module IDL
855
853
  when Expression::Operation::Mod
856
854
  s = expression_to_s(op[0]) + " % " + expression_to_s(op[1])
857
855
  else
858
- raise RuntimeError, "unknown operation: #{exp.type.name}"
856
+ raise "unknown operation: #{exp.type.name}"
859
857
  end
860
858
  "(" + s + ")"
861
859
  end
@@ -1096,8 +1094,11 @@ module IDL
1096
1094
  }
1097
1095
  printiln(format("end # typedef %s", node.rubyname))
1098
1096
 
1097
+ when IDL::Type::Object
1098
+ printiln(format("%s = CORBA::Object # typedef %s\n", node.rubyname, node.rubyname))
1099
+
1099
1100
  else
1100
- raise RuntimeError, "unsupported typedef for #{t.class.name}."
1101
+ raise "unsupported typedef for #{t.class.name}."
1101
1102
  end
1102
1103
  end
1103
1104
  end ## RubyStubWriter
@@ -1114,10 +1115,9 @@ module IDL
1114
1115
  #
1115
1116
  # **** Code generated by the R2CORBA IDL Compiler ****
1116
1117
  # R2CORBA has been developed by:
1117
- # Remedy IT
1118
- # Nijkerk, GLD
1118
+ # Remedy IT Expertise BV
1119
1119
  # The Netherlands
1120
- # http://www.remedy.nl \ http://www.theaceorb.nl
1120
+ # https://www.remedy.nl
1121
1121
  #
1122
1122
  })
1123
1123
  idleval = @params[:idl_eval] || false
@@ -1457,7 +1457,7 @@ module IDL
1457
1457
  end
1458
1458
 
1459
1459
  else
1460
- raise RuntimeError, "invalid type for (un)marshalling: #{_type.typename}"
1460
+ raise "invalid type for (un)marshalling: #{_type.typename}"
1461
1461
  end
1462
1462
  end
1463
1463
 
@@ -1481,7 +1481,7 @@ module IDL
1481
1481
  when Expression::ScopedName
1482
1482
  @stub_root + exp.node.scoped_rubyname
1483
1483
  else
1484
- raise RuntimeError, "unknown expression type: #{exp.class.name}"
1484
+ raise "unknown expression type: #{exp.class.name}"
1485
1485
  end
1486
1486
  end
1487
1487
 
@@ -1511,7 +1511,7 @@ module IDL
1511
1511
  when Type::ScopedName
1512
1512
  s = value_to_s(Expression::Value.new(exp.idltype.node.idltype, v))
1513
1513
  else
1514
- raise RuntimeError, "#{exp.typename}'s not been supported yet."
1514
+ raise "#{exp.typename}'s not been supported yet."
1515
1515
  end
1516
1516
  s
1517
1517
  end
@@ -1545,7 +1545,7 @@ module IDL
1545
1545
  when Expression::Mod
1546
1546
  s = expression_to_s(op[0]) + " % " + expression_to_s(op[1])
1547
1547
  else
1548
- raise RuntimeError, "unknown operation: #{exp.type.name}"
1548
+ raise "unknown operation: #{exp.type.name}"
1549
1549
  end
1550
1550
  "(" + s + ")"
1551
1551
  end
data/mkrf_conf_srcgem.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
  # generate Rakefile with appropriate default task (all actual task in rakelib)
@@ -24,7 +23,6 @@ File.open('Rakefile', 'w') do |f|
24
23
  # included with this program.
25
24
  #
26
25
  # Copyright (c) Remedy IT Expertise BV
27
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
28
26
  #--------------------------------------------------------------------
29
27
 
30
28
  task :default => 'r2corba:gem:srcbuild'
@@ -40,7 +38,7 @@ Make sure you have provided a JACORB_HOME definition pointing at a valid JacORB
40
38
  with all required .jar files located at JACORB_HOME\lib. You can do this either by setting
41
39
  the JACORB_HOME environment variable or by providing the --jacorb-home buildflag to the
42
40
  'gem install' command.
43
- Checkout the documentation at http://osportal.remedy.nl/projects/r2corba
41
+ Checkout the documentation at https://github.com/RemedyIT/r2corba
44
42
  for more information.
45
43
  __EOT
46
44
 
@@ -95,12 +93,12 @@ else
95
93
  usage_txt =<<-__EOT
96
94
  Please define a valid ACE/TAO build environment either by defining the ACE_ROOT and (optionally)
97
95
  the TAO_ROOT (defaults to ACE_ROOT/TAO) and MPC_ROOT (defaults to ACE_ROOT/MPC) environment
98
- variabled OR by providing the --aceroot and (optionally) --taoroot and --mpcroot build flags to
96
+ variable OR by providing the --aceroot and (optionally) --taoroot and --mpcroot build flags to
99
97
  the 'gem install' command.
100
98
  Alternatively you can have the r2corba gem install the taosource gem for you and use that for
101
99
  the ACE/TAO build environment by *not* providing the --without-taogem build flag to the 'gem install'
102
100
  command.
103
- Checkout the documentation at http://osportal.remedy.nl/projects/r2corba for more information.
101
+ Checkout the documentation at https://github.com/RemedyIT/r2corba for more information.
104
102
  __EOT
105
103
 
106
104
  install_taosource_gem = true
@@ -140,7 +138,7 @@ __EOT
140
138
  end
141
139
  inst = Gem::DependencyInstaller.new
142
140
  begin
143
- inst.install "taosource", ">= 6.1.8"
141
+ inst.install "taosource", ">= 6.5.7"
144
142
  rescue
145
143
  $stderr.puts 'Failed to install taosource gem.'
146
144
  exit(1)
data/rakelib/bin.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__), 'bin.rb')
@@ -43,7 +42,7 @@ namespace :r2corba do
43
42
 
44
43
  task :check do
45
44
  R2CORBA::Bin.binaries.each do |bin|
46
- if File.exists?(File.join('bin', bin))
45
+ if File.exist?(File.join('bin', bin))
47
46
  content = IO.read(File.join('bin', bin))
48
47
  rm_f(File.join('bin', bin)) unless content == R2CORBA::Bin.__send__(bin.gsub('.','_').to_sym)
49
48
  end
data/rakelib/bin.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 File.join(File.dirname(__FILE__), 'config.rb')
@@ -143,4 +142,4 @@ _BAT_TXT
143
142
 
144
143
  end # Bin
145
144
 
146
- end # R2CORBA
145
+ end # R2CORBA
data/rakelib/build.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')
@@ -33,17 +32,18 @@ task :build => 'r2corba:build'
33
32
  ## compile base IDL
34
33
 
35
34
  r2c_idlc_root = File.join('lib','corba','idl')
35
+ stdidl_root = File.join('lib', 'idl')
36
36
 
37
37
  orb_pidlc = File.join('lib', 'ridlbe','ruby','orb.pidlc')
38
38
  file orb_pidlc => [R2CORBA::BUILD_CFG] do |t|
39
- sh("#{R2CORBA::Config.ridlc} --preprocess --output #{t.name} --stdidl orb.idl")
39
+ sh("#{R2CORBA::Config.ridlc} --preprocess --output #{t.name} --include=#{stdidl_root} orb.idl")
40
40
  end
41
41
  Rake::Task['r2corba:build_idl'].enhance [orb_pidlc]
42
42
  CLOBBER.include orb_pidlc
43
43
 
44
44
  file File.join(r2c_idlc_root,'r2c_orb.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
45
45
  cmd = R2CORBA::Config.ridlc
46
- cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --stdidl" <<
46
+ cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root}" <<
47
47
  " --stubs-only --expand-includes --search-includepath --no-libinit --interface-as-class=TypeCode orb.idl"
48
48
  sh(cmd)
49
49
  end
@@ -56,7 +56,7 @@ CLOBBER.include File.join(r2c_idlc_root,'r2c_orb.rb')
56
56
  ].each do |stub, pidl|
57
57
  file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
58
58
  cmd = R2CORBA::Config.ridlc
59
- cmd << " --output #{t.name} --namespace=R2CORBA --stdidl --stubs-only --expand-includes --search-includepath --no-libinit #{pidl}"
59
+ cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes --search-includepath --no-libinit #{pidl}"
60
60
  sh(cmd)
61
61
  end
62
62
  Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,stub+'C.rb')]
@@ -69,7 +69,7 @@ unless defined?(JRUBY_VERSION)
69
69
  [ 'TAO_Ext', 'IORTable' ].each do |stub|
70
70
  file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
71
71
  cmd = R2CORBA::Config.ridlc
72
- cmd << " --output #{t.name} --namespace=R2CORBA --stdidl --stubs-only --expand-includes -I#{tao_root}" <<
72
+ cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes -I#{tao_root}" <<
73
73
  " --search-includepath --no-libinit #{File.join(r2c_idlc_root, stub+'.pidl')}"
74
74
  sh(cmd)
75
75
  end
@@ -80,7 +80,7 @@ end
80
80
 
81
81
  file File.join(r2c_idlc_root, 'CosNamingC.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
82
82
  cmd = R2CORBA::Config.ridlc
83
- cmd << " -o #{r2c_idlc_root} --stdidl --expand-includes --search-includepath CosNaming.idl"
83
+ cmd << " -o #{r2c_idlc_root} --include=#{stdidl_root} --expand-includes --search-includepath CosNaming.idl"
84
84
  sh(cmd)
85
85
  end
86
86
  Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,'CosNamingC.rb')]
data/rakelib/config.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')
@@ -49,4 +48,4 @@ file R2CORBA::BUILD_CFG do
49
48
  end
50
49
  end
51
50
 
52
- CLOBBER.include R2CORBA::BUILD_CFG
51
+ CLOBBER.include R2CORBA::BUILD_CFG
data/rakelib/config.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'
@@ -233,9 +232,9 @@ module R2CORBA
233
232
  end
234
233
  elsif File.readable?('/etc/redhat-release')
235
234
  name = File.read('/etc/redhat-release').strip.downcase
236
- elsif File.exists?('/etc/SuSE-release')
235
+ elsif File.exist?('/etc/SuSE-release')
237
236
  name = 'suse'
238
- elsif File.exists?('/etc/debian_version')
237
+ elsif File.exist?('/etc/debian_version')
239
238
  name = 'debian'
240
239
  end
241
240
  @@linux_distro = case name
@@ -349,7 +348,7 @@ module R2CORBA
349
348
  @@ridlc = File.join('bin', 'ridlc')
350
349
 
351
350
  # check availability of RIDL; either as gem or in subdir
352
- if (@@ridl_local = File.exists?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')))
351
+ if (@@ridl_local = File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')))
353
352
  incdirs = [
354
353
  File.expand_path(File.join('ridl', 'lib')),
355
354
  File.expand_path('lib'),
@@ -402,7 +401,7 @@ module R2CORBA
402
401
  opts.on('--rbdir=path',
403
402
  "the directory for ruby scripts [#{get_config(:rbdir)}]") {|v| CONFIG[:rbdir] = v}
404
403
  opts.on('--sodir=path',
405
- "the directory for ruby extentions [#{get_config(:sodir)}]") {|v| CONFIG[:sodir] = v}
404
+ "the directory for ruby extensions [#{get_config(:sodir)}]") {|v| CONFIG[:sodir] = v}
406
405
  if defined?(JRUBY_VERSION)
407
406
  opts.on('--without-jacorb',
408
407
  "do *not* install JacORB JAR files with R2CORBA [#{get_config('without-jacorb')}]") {|v| CONFIG[:'without-jacorb'] = true}
@@ -410,7 +409,7 @@ module R2CORBA
410
409
  "the path to the root directory of JacORB [#{get_config(:jacorb_home)}]") {|v| CONFIG[:jacorb_home] = v}
411
410
  else
412
411
  opts.on('--makeprog=name',
413
- "the make program to compile ruby extentions [#{get_config(:makeprog)}]") {|v| CONFIG[:makeprog] = v}
412
+ "the make program to compile ruby extensions [#{get_config(:makeprog)}]") {|v| CONFIG[:makeprog] = v}
414
413
  opts.on('--without-tao',
415
414
  "do *not* configure/build/clean the ACE+TAO libraries [#{get_config('without-tao')}]") {|v| CONFIG[:'without-tao'] = true }
416
415
  opts.on('--aceroot=path',
@@ -516,7 +515,7 @@ module R2CORBA
516
515
  end
517
516
 
518
517
  # check availability of RIDL; either as gem or in subdir
519
- unless File.exists?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
518
+ unless File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
520
519
  raise "Missing RIDL installation. R2CORBA requires RIDL installed either as gem or in subdirectory ridl."
521
520
  end
522
521
  end
data/rakelib/ext.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
  if defined?(JRUBY_VERSION)
@@ -50,7 +49,7 @@ else # !JRUBY_VERSION
50
49
  cur_dir = Dir.getwd
51
50
  Dir.chdir 'ext'
52
51
  begin
53
- sh("perl #{_mwc} -type gnuace ext.mwc")
52
+ sh("perl #{_mwc} -type gnuace ext.mwc -workers #{R2CORBA::Config.cpu_cores}")
54
53
  ensure
55
54
  Dir.chdir cur_dir
56
55
  end
@@ -76,7 +75,7 @@ else # !JRUBY_VERSION
76
75
  cur_dir = Dir.getwd
77
76
  Dir.chdir 'ext'
78
77
  begin
79
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
78
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
80
79
  ensure
81
80
  Dir.chdir cur_dir
82
81
  end
@@ -105,7 +104,7 @@ else # !JRUBY_VERSION
105
104
  cur_dir = Dir.getwd
106
105
  Dir.chdir File.join('ext', 'extload')
107
106
  begin
108
- sh("perl #{_mwc} -type gnuace")
107
+ sh("perl #{_mwc} -type gnuace -workers #{R2CORBA::Config.cpu_cores}")
109
108
  ensure
110
109
  Dir.chdir cur_dir
111
110
  end
@@ -130,7 +129,7 @@ else # !JRUBY_VERSION
130
129
  cur_dir = Dir.getwd
131
130
  Dir.chdir File.join('ext', 'extload')
132
131
  begin
133
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
132
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
134
133
  ensure
135
134
  Dir.chdir cur_dir
136
135
  end
@@ -188,7 +187,7 @@ else # !JRUBY_VERSION
188
187
  cur_dir = Dir.getwd
189
188
  Dir.chdir File.expand_path(get_config('aceroot'))
190
189
  begin
191
- sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc")
190
+ sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc -workers #{R2CORBA::Config.cpu_cores}")
192
191
  ensure
193
192
  Dir.chdir cur_dir
194
193
  end
@@ -207,7 +206,7 @@ else # !JRUBY_VERSION
207
206
  Dir.chdir File.expand_path(get_config('aceroot'))
208
207
  begin
209
208
  if R2CORBA::Config.is_linux && R2CORBA::Config::linux_distro != :ubuntu && R2CORBA::Config.cpu_cores > 2
210
- sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores - 2} #{get_config('with-debug') ? ' debug=1' : ''}")
209
+ sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
211
210
  else
212
211
  sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
213
212
  end
@@ -224,11 +223,14 @@ else # !JRUBY_VERSION
224
223
  task :clobber_tao do
225
224
  # clean ACE+TAO
226
225
  cur_dir = Dir.getwd
227
- Dir.chdir File.expand_path(get_config('aceroot'))
228
- begin
229
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
230
- ensure
231
- Dir.chdir cur_dir
226
+ ace_root = File.expand_path(get_config('aceroot'))
227
+ if File.exist?(ace_root)
228
+ Dir.chdir ace_root
229
+ begin
230
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
231
+ ensure
232
+ Dir.chdir cur_dir
233
+ end
232
234
  end
233
235
  end
234
236
  end