r2corba 1.5.5-x64-mingw32 → 1.6.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +5 -5
  2. data/lib/corba.rb +1 -1
  3. data/lib/corba/cbase/ORB.rb +19 -16
  4. data/lib/corba/cbase/Request.rb +3 -3
  5. data/lib/corba/cbase/Values.rb +4 -2
  6. data/lib/corba/cbase/exception.rb +4 -2
  7. data/lib/corba/cbase/poa.rb +1 -1
  8. data/lib/corba/cbase/policies.rb +1 -1
  9. data/lib/corba/cbase/require.rb +8 -1
  10. data/lib/corba/common/Any.rb +2 -1
  11. data/lib/corba/common/IDL.rb +1 -1
  12. data/lib/corba/common/ORB.rb +21 -21
  13. data/lib/corba/common/Object.rb +14 -13
  14. data/lib/corba/common/Servant.rb +4 -4
  15. data/lib/corba/common/Stub.rb +6 -6
  16. data/lib/corba/common/Typecode.rb +35 -8
  17. data/lib/corba/common/Union.rb +5 -0
  18. data/lib/corba/common/Values.rb +1 -0
  19. data/lib/corba/common/const.rb +1 -1
  20. data/lib/corba/common/exception.rb +2 -1
  21. data/lib/corba/common/version.rb +2 -2
  22. data/lib/corba/idl/IDL.rb +1 -1
  23. data/lib/corba/jbase/Any.rb +6 -4
  24. data/lib/corba/jbase/ORB.rb +2 -2
  25. data/lib/corba/jbase/Object.rb +13 -13
  26. data/lib/corba/jbase/Request.rb +3 -3
  27. data/lib/corba/jbase/Streams.rb +64 -0
  28. data/lib/corba/jbase/Typecode.rb +3 -2
  29. data/lib/corba/jbase/Values.rb +2 -0
  30. data/lib/corba/jbase/exception.rb +1 -0
  31. data/lib/corba/jbase/poa.rb +18 -18
  32. data/lib/corba/jbase/policies.rb +29 -29
  33. data/lib/corba/jbase/require.rb +4 -0
  34. data/lib/corba/svcs/ins/cos_naming.rb +10 -1
  35. data/lib/corba/svcs/ins/ins.rb +45 -45
  36. data/lib/corba/svcs/ins/naming_service.rb +6 -6
  37. data/lib/ridlbe/ruby/config.rb +27 -20
  38. data/lib/ridlbe/ruby/walker.rb +276 -253
  39. data/mkrf_conf_bingem.rb +4 -4
  40. data/rakelib/build.rake +1 -1
  41. data/rakelib/config.rake +1 -1
  42. data/rakelib/config.rb +9 -9
  43. data/rakelib/ext.rake +6 -65
  44. data/rakelib/ext_r2tao.rb +2 -39
  45. data/rakelib/gem.rake +20 -20
  46. data/rakelib/gem.rb +1 -1
  47. data/rakelib/package.rake +1 -1
  48. data/test/BiDirectional/client.rb +16 -16
  49. data/test/BiDirectional/run_test.rb +10 -10
  50. data/test/BiDirectional/server.rb +20 -20
  51. data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
  52. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
  53. data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
  54. data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
  55. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
  56. data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
  57. data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
  58. data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
  59. data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
  60. data/test/Collocation/run_test.rb +10 -10
  61. data/test/Collocation/test.rb +26 -19
  62. data/test/Connect_Timeout/client.rb +15 -15
  63. data/test/Connect_Timeout/run_test.rb +10 -10
  64. data/test/DII/client.rb +27 -27
  65. data/test/DII/run_test.rb +10 -10
  66. data/test/DII/server.rb +15 -15
  67. data/test/DSI/client.rb +15 -15
  68. data/test/DSI/run_test.rb +10 -10
  69. data/test/DSI/server.rb +16 -16
  70. data/test/Exceptions/client.rb +19 -19
  71. data/test/Exceptions/run_test.rb +10 -10
  72. data/test/Exceptions/server.rb +15 -15
  73. data/test/Hello/client.rb +15 -15
  74. data/test/Hello/run_test.rb +10 -10
  75. data/test/Hello/server.rb +16 -16
  76. data/test/IDL_Test/client.rb +20 -20
  77. data/test/IDL_Test/run_test.rb +10 -10
  78. data/test/IDL_Test/server.rb +18 -18
  79. data/test/IORMap/client.rb +14 -14
  80. data/test/IORMap/run_test.rb +10 -10
  81. data/test/IORMap/server.rb +22 -22
  82. data/test/IORTable/client.rb +14 -14
  83. data/test/IORTable/run_test.rb +10 -10
  84. data/test/IORTable/server.rb +22 -22
  85. data/test/Implicit_Conversion/client.rb +19 -16
  86. data/test/Implicit_Conversion/run_test.rb +10 -10
  87. data/test/Implicit_Conversion/server.rb +15 -15
  88. data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
  89. data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
  90. data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
  91. data/test/Multi_Threading/Simple/client.rb +15 -15
  92. data/test/Multi_Threading/Simple/run_test.rb +10 -10
  93. data/test/Multi_Threading/Simple/server.rb +15 -15
  94. data/test/Multi_Threading/Threads/client.rb +15 -15
  95. data/test/Multi_Threading/Threads/run_test.rb +10 -10
  96. data/test/Multi_Threading/Threads/server.rb +17 -17
  97. data/test/Multi_Threading/Threads/watchdog.rb +15 -15
  98. data/test/Multiple_Servant_Interfaces/client.rb +13 -13
  99. data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
  100. data/test/Multiple_Servant_Interfaces/server.rb +17 -17
  101. data/test/Nil/run_test.rb +10 -10
  102. data/test/Nil/test.rb +13 -13
  103. data/test/OBV/AbstractInterface/client.rb +13 -13
  104. data/test/OBV/AbstractInterface/run_test.rb +10 -10
  105. data/test/OBV/AbstractInterface/server.rb +19 -18
  106. data/test/OBV/Custom/OBV_impl.rb +2 -0
  107. data/test/OBV/Custom/client.rb +13 -13
  108. data/test/OBV/Custom/run_test.rb +10 -10
  109. data/test/OBV/Custom/server.rb +15 -15
  110. data/test/OBV/Simple/OBV_impl.rb +1 -0
  111. data/test/OBV/Simple/client.rb +13 -13
  112. data/test/OBV/Simple/run_test.rb +10 -10
  113. data/test/OBV/Simple/server.rb +15 -15
  114. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  115. data/test/OBV/Simple_Event/client.rb +13 -13
  116. data/test/OBV/Simple_Event/run_test.rb +10 -10
  117. data/test/OBV/Simple_Event/server.rb +15 -15
  118. data/test/OBV/Supports/client.rb +18 -18
  119. data/test/OBV/Supports/run_test.rb +10 -10
  120. data/test/OBV/Supports/server.rb +14 -14
  121. data/test/OBV/Supports/supports_impl.rb +3 -0
  122. data/test/OBV/Tree/client.rb +13 -13
  123. data/test/OBV/Tree/run_test.rb +10 -10
  124. data/test/OBV/Tree/server.rb +18 -18
  125. data/test/OBV/Truncatable/client.rb +56 -56
  126. data/test/OBV/Truncatable/run_test.rb +10 -10
  127. data/test/OBV/Truncatable/server.rb +14 -14
  128. data/test/OBV/ValueBox/client.rb +148 -147
  129. data/test/OBV/ValueBox/run_test.rb +10 -10
  130. data/test/OBV/ValueBox/server.rb +15 -15
  131. data/test/Object/client.rb +13 -13
  132. data/test/Object/run_test.rb +10 -10
  133. data/test/Object/server.rb +18 -18
  134. data/test/POA/run_test.rb +10 -10
  135. data/test/POA/test.rb +15 -15
  136. data/test/Param_Test/client.rb +47 -47
  137. data/test/Param_Test/run_test.rb +10 -10
  138. data/test/Param_Test/server.rb +55 -55
  139. data/test/Performance/Simple/client.rb +15 -15
  140. data/test/Performance/Simple/run_test.rb +10 -10
  141. data/test/Performance/Simple/server.rb +15 -15
  142. data/test/Policies/run_test.rb +10 -10
  143. data/test/Policies/test.rb +23 -23
  144. data/test/Timeout/client.rb +17 -17
  145. data/test/Timeout/run_test.rb +10 -10
  146. data/test/Timeout/server.rb +18 -18
  147. data/test/lib/test.rb +13 -7
  148. data/test/test_runner.rb +19 -19
  149. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9a62dbb2f946a34562ff7ce128c2919c98248392
4
- data.tar.gz: b2f11989c112022ff4e0466a7d81dbd974d371e7
2
+ SHA256:
3
+ metadata.gz: ce481264fb288de066b576b8713c3cb78736a570bff6b4f6f5933784b97e4fa1
4
+ data.tar.gz: 4b291b4209f1872a2c802ead34dfd5a16867f84db9a8d82878af8d3ef775c01a
5
5
  SHA512:
6
- metadata.gz: 53c2e41c0c01f949c186bf2efc8fa28769f55388854978c44dadbe14877235ccb75aac995f61afc6933b017c273708b4ab58503c6aab49050c9bf65ba495e7ba
7
- data.tar.gz: 89ccac9b08a3cac7c53f33f2003267885e1aa9a6ecffc4e2cef4bd20fcbaa9f525062954a3575f6cd822a879e9a29b49f2e181537157a7fc7446427cb532fed5
6
+ metadata.gz: 894c016a8957ff30fb06be838c44e9bf700d7a697bb259f067edb4b23382093beb2003d21810c4b7daa72c7052c2eed8b640f8e3b87c6086b2867c4984f60c8f
7
+ data.tar.gz: 4e4eb46073d5a10f396ec0d42a62fefebd9ac4a1f7c8b9dbd68186490501efe7aeecb9298114ff0a567b44428f2a438536612784b6ec50ac37ce9f1cd2c9be15
data/lib/corba.rb CHANGED
@@ -10,6 +10,6 @@
10
10
  # Copyright (c) Remedy IT Expertise BV
11
11
  #--------------------------------------------------------------------
12
12
 
13
- require "corba/require.rb"
13
+ require 'corba/require.rb'
14
14
 
15
15
  include R2CORBA
@@ -144,17 +144,20 @@ module R2CORBA
144
144
  @q_ = []
145
145
  super
146
146
  end
147
+
147
148
  def push(vfklass)
148
149
  synchronize do
149
150
  @q_ << vfklass
150
151
  end
151
152
  end
153
+
152
154
  def process_all(&block)
153
155
  synchronize do
154
156
  @q_.each { |vf| block.call(vf) }
155
157
  @q_.clear
156
158
  end
157
159
  end
160
+
158
161
  def empty?()
159
162
  f = false
160
163
  synchronize do
@@ -186,22 +189,22 @@ module R2CORBA
186
189
  private
187
190
  @@sigreg = {}
188
191
  def CORBA.signal_numbers
189
- ( [1, # HUP
190
- 2, # INT
191
- 3, # QUIT
192
- 5, # TRAP
193
- 6, # ABRT
194
- 10, # USR1
195
- 12, # USR2
196
- 13, # SIGPIPE
197
- 14, # ALRM
198
- 15, # TERM
199
- 17, # CHLD
200
- 18, # CONT
201
- 23, # URG
202
- 30, # PWR
203
- 31 # SYS
204
- ]) & Signal.list.values
192
+ ([1, # HUP
193
+ 2, # INT
194
+ 3, # QUIT
195
+ 5, # TRAP
196
+ 6, # ABRT
197
+ 10, # USR1
198
+ 12, # USR2
199
+ 13, # SIGPIPE
200
+ 14, # ALRM
201
+ 15, # TERM
202
+ 17, # CHLD
203
+ 18, # CONT
204
+ 23, # URG
205
+ 30, # PWR
206
+ 31 # SYS
207
+ ]) & Signal.list.values
205
208
  end
206
209
 
207
210
  def CORBA.handled_signals
@@ -14,17 +14,17 @@ module R2CORBA
14
14
 
15
15
  module Request
16
16
 
17
- def add_in_arg(tc, val, nm='')
17
+ def add_in_arg(tc, val, nm = '')
18
18
  self._arguments << [nm, CORBA::ARG_IN, tc, val]
19
19
  self._arguments.size
20
20
  end
21
21
 
22
- def add_out_arg(tc, nm='')
22
+ def add_out_arg(tc, nm = '')
23
23
  self._arguments << [nm, CORBA::ARG_OUT, tc]
24
24
  self._arguments.size
25
25
  end
26
26
 
27
- def add_inout_arg(tc, val, nm='')
27
+ def add_inout_arg(tc, val, nm = '')
28
28
  self._arguments << [nm, CORBA::ARG_INOUT, tc, val]
29
29
  self._arguments.size
30
30
  end
@@ -21,6 +21,7 @@ module R2CORBA
21
21
  end
22
22
  end
23
23
  end
24
+
24
25
  module ValueBase
25
26
  def self.included(mod)
26
27
  mod.module_eval do
@@ -30,10 +31,10 @@ module R2CORBA
30
31
  def kind_of?(mod)
31
32
  if mod < CORBA::AbstractValueBase && mod.const_defined?(:Intf)
32
33
  org_kind_of?(mod::Intf)
33
- #super(mod::Intf) ## problematic with Ruby 1.9.2 (known bug)
34
+ # super(mod::Intf) ## problematic with Ruby 1.9.2 (known bug)
34
35
  else
35
36
  org_kind_of?(mod)
36
- #super ## problematic with Ruby 1.9.2 (known bug)
37
+ # super ## problematic with Ruby 1.9.2 (known bug)
37
38
  end
38
39
  end
39
40
  alias :is_a? :kind_of?
@@ -97,6 +98,7 @@ module R2CORBA
97
98
  class FactoryBase < CORBA::Portable::ValueFactoryBase
98
99
  ## generic factory base
99
100
  end
101
+
100
102
  def self.included(mod)
101
103
  mod.module_eval do
102
104
  include CORBA::ValueBase unless self.include?(CORBA::ValueBase)
@@ -39,13 +39,14 @@ module R2CORBA
39
39
  exklass = CORBA.const_defined?(exklass) ? CORBA.const_get(exklass) : nil
40
40
  if exklass.nil? || !(CORBA::SystemException > exklass)
41
41
  Kernel.raise InternalError,
42
- "Unknown SystemException raised: " +
42
+ 'Unknown SystemException raised: ' +
43
43
  id.to_s + ' [' + reason.to_s + ']'
44
44
  else
45
45
  Kernel.raise exklass.new(reason, minor, completed)
46
46
  end
47
47
  end
48
- def initialize(reason="", minor=0, completed=nil)
48
+
49
+ def initialize(reason = '', minor = 0, completed = nil)
49
50
  super(reason)
50
51
  @minor = minor
51
52
  @completed = completed
@@ -53,6 +54,7 @@ module R2CORBA
53
54
  end
54
55
  attr_accessor :ids
55
56
  def _ids; @ids; end
57
+
56
58
  def _interface_repository_id
57
59
  self.class::Id
58
60
  end
@@ -15,7 +15,7 @@ require 'corba/idl/POAC.rb'
15
15
  require 'corba/idl/IORTableC'
16
16
 
17
17
  begin
18
- require RUBY_PLATFORM =~ /mingw32/ ? "librpoaw" : "librpoa"
18
+ require 'librpoa'
19
19
  rescue LoadError
20
20
  $stderr.puts $!.to_s if $VERBOSE
21
21
  raise
@@ -12,7 +12,7 @@
12
12
  require 'corba/idl/TAO_ExtC'
13
13
 
14
14
  begin
15
- require RUBY_PLATFORM =~ /mingw32/ ? "librpolw" : "librpol"
15
+ require 'librpol'
16
16
  rescue LoadError
17
17
  $stderr.puts $!.to_s if $VERBOSE
18
18
  raise
@@ -13,7 +13,14 @@
13
13
  begin
14
14
  _ext_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../ext'))
15
15
  $: << _ext_dir unless $:.include?(_ext_dir) || !File.directory?(_ext_dir)
16
- require RUBY_PLATFORM =~ /mingw32/ ? "libr2taow" : "libr2tao"
16
+ if RUBY_PLATFORM =~ /mingw32/
17
+ require 'ruby_installer/runtime'
18
+ RubyInstaller::Runtime.add_dll_directory(_ext_dir)
19
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
20
+ RubyInstaller::Runtime.add_dll_directory(path) if File.exist?(File.join(path, 'libACE.dll'))
21
+ end
22
+ end
23
+ require 'libr2tao'
17
24
  rescue LoadError
18
25
  $stderr.puts $!.to_s if $VERBOSE
19
26
  raise
@@ -58,7 +58,7 @@ module R2CORBA
58
58
  end
59
59
  end
60
60
 
61
- def Any.to_any(o, tc=nil)
61
+ def Any.to_any(o, tc = nil)
62
62
  if tc.nil?
63
63
  tc = self.typecode_for_value(o)
64
64
  if tc.is_a?(CORBA::TypeCode)
@@ -72,6 +72,7 @@ module R2CORBA
72
72
  def _tc
73
73
  @__tc
74
74
  end
75
+
75
76
  def _value
76
77
  @__value
77
78
  end
@@ -60,7 +60,7 @@ module R2CORBA
60
60
  fname
61
61
  else
62
62
  fp = paths.find do |p|
63
- f = p + "/" + fname
63
+ f = p + '/' + fname
64
64
  File.file?(f) && File.readable?(f)
65
65
  end
66
66
  fp += '/' + fname if !fp.nil?
@@ -60,8 +60,8 @@ module R2CORBA
60
60
  self
61
61
  end
62
62
 
63
- #obj ::CORBA::Object
64
- #ret ::String
63
+ # obj ::CORBA::Object
64
+ # ret ::String
65
65
  def object_to_string(obj)
66
66
  raise CORBA::BAD_PARAM.new('CORBA::Object required', 0, CORBA::COMPLETED_NO) unless obj.is_a?(CORBA::Object)
67
67
  begin
@@ -71,8 +71,8 @@ module R2CORBA
71
71
  end
72
72
  end
73
73
 
74
- #str ::String
75
- #ret ::CORBA::Object
74
+ # str ::String
75
+ # ret ::CORBA::Object
76
76
  def string_to_object(str)
77
77
  begin
78
78
  Object._wrap_native(self.orb_.string_to_object(str))
@@ -81,41 +81,41 @@ module R2CORBA
81
81
  end
82
82
  end
83
83
 
84
- #str ::Integer
85
- #ret ::CORBA::NVList
84
+ # str ::Integer
85
+ # ret ::CORBA::NVList
86
86
  def create_list(count)
87
87
  raise CORBA::NO_IMPLEMENT
88
88
  end
89
89
 
90
- #str OperationDef
91
- #ret ::CORBA::NVList
90
+ # str OperationDef
91
+ # ret ::CORBA::NVList
92
92
  def create_operation_list(oper)
93
93
  raise CORBA::NO_IMPLEMENT
94
94
  end
95
95
 
96
- #ret Context
96
+ # ret Context
97
97
  def get_default_context()
98
98
  raise CORBA::NO_IMPLEMENT
99
99
  end
100
100
 
101
- #req RequestSeq
102
- #ret void
101
+ # req RequestSeq
102
+ # ret void
103
103
  def send_multiple_request_oneway(req)
104
104
  raise CORBA::NO_IMPLEMENT
105
105
  end
106
106
 
107
- #req RequestSeq
108
- #ret void
107
+ # req RequestSeq
108
+ # ret void
109
109
  def send_multiple_request_deferred(req)
110
110
  raise CORBA::NO_IMPLEMENT
111
111
  end
112
112
 
113
- #ret boolean
113
+ # ret boolean
114
114
  def poll_next_response()
115
115
  raise CORBA::NO_IMPLEMENT
116
116
  end
117
117
 
118
- #ret Request
118
+ # ret Request
119
119
  def get_next_response()
120
120
  raise CORBA::NO_IMPLEMENT
121
121
  end
@@ -208,13 +208,13 @@ module R2CORBA
208
208
 
209
209
  # Integer bound
210
210
  # ret TypeCode
211
- def create_string_tc(bound=nil)
211
+ def create_string_tc(bound = nil)
212
212
  return CORBA::TypeCode::String.new(bound)
213
213
  end
214
214
 
215
215
  # Integer bound
216
216
  # ret TypeCode
217
- def create_wstring_tc(bound=nil)
217
+ def create_wstring_tc(bound = nil)
218
218
  return CORBA::TypeCode::WString.new(bound)
219
219
  end
220
220
 
@@ -334,8 +334,8 @@ module R2CORBA
334
334
 
335
335
  # PolicyType type
336
336
  # any val
337
- #ret Policy
338
- #raises PolicyError
337
+ # ret Policy
338
+ # raises PolicyError
339
339
  def create_policy(type, val)
340
340
  raise ::CORBA::NO_IMPLEMENT
341
341
  end
@@ -345,7 +345,7 @@ module R2CORBA
345
345
  =end
346
346
  # RepositoryId id
347
347
  # ValueFactory factory
348
- #ret ValueFactory
348
+ # ret ValueFactory
349
349
  def register_value_factory(id, factory)
350
350
  self.orb_().register_value_factory(id, factory)
351
351
  end
@@ -357,7 +357,7 @@ module R2CORBA
357
357
  end
358
358
 
359
359
  # RepositoryId id
360
- #ret ValueFactory
360
+ # ret ValueFactory
361
361
  def lookup_value_factory(id)
362
362
  self.orb_().lookup_value_factory(id)
363
363
  end
@@ -27,6 +27,7 @@ module R2CORBA
27
27
  def initialize(nobj)
28
28
  @objref_ = nobj
29
29
  end
30
+
30
31
  def _free_ref
31
32
  self._release
32
33
  end
@@ -69,17 +70,17 @@ module R2CORBA
69
70
  self
70
71
  end
71
72
 
72
- #ret InterfaceDef
73
+ # ret InterfaceDef
73
74
  def _get_interface()
74
75
  raise ::CORBA::NO_IMPLEMENT
75
76
  end
76
77
 
77
- #ret boolean
78
+ # ret boolean
78
79
  def _is_nil?()
79
80
  self.objref_.nil? || (self.objref_.respond_to?(:_is_nil) && self.objref_._is_nil)
80
81
  end
81
82
 
82
- #ret ::CORBA::Object
83
+ # ret ::CORBA::Object
83
84
  def _duplicate()
84
85
  return nil if self._is_nil?()
85
86
  begin
@@ -151,32 +152,32 @@ module R2CORBA
151
152
  end
152
153
  end
153
154
 
154
- #def PolicyType policy_type
155
+ # def PolicyType policy_type
155
156
  # ret Policy
156
157
  def _get_policy(policy_type)
157
158
  raise ::CORBA::NO_IMPLEMENT
158
159
  end
159
160
 
160
- #PolicyList policies
161
- #SetOverrideType set_add
162
- #ret ::CORBA::Object
163
- def _set_policy_overrides(policies, set_add )
161
+ # PolicyList policies
162
+ # SetOverrideType set_add
163
+ # ret ::CORBA::Object
164
+ def _set_policy_overrides(policies, set_add)
164
165
  raise ::CORBA::NO_IMPLEMENT
165
166
  end
166
167
 
167
- #int[] types
168
- #ret PolicyList
168
+ # int[] types
169
+ # ret PolicyList
169
170
  def _get_policy_overrides(types)
170
171
  raise ::CORBA::NO_IMPLEMENT
171
172
  end
172
173
 
173
- #PolicyList inconsistent_policies
174
- #ret bool
174
+ # PolicyList inconsistent_policies
175
+ # ret bool
175
176
  def _validate_connection(inconsistent_policies)
176
177
  raise ::CORBA::NO_IMPLEMENT
177
178
  end
178
179
 
179
- #ret ::CORBA::Object
180
+ # ret ::CORBA::Object
180
181
  def _get_component()
181
182
  raise CORBA::INV_OBJREF.new if self._is_nil?()
182
183
  begin
@@ -17,7 +17,7 @@ module R2CORBA
17
17
  class Servant
18
18
 
19
19
  module Intf
20
- Id = "IDL:omg.org/CORBA/Object:1.0".freeze
20
+ Id = 'IDL:omg.org/CORBA/Object:1.0'.freeze
21
21
  Ids = [ Id ].freeze
22
22
  Operations = {}.freeze
23
23
  end
@@ -82,9 +82,9 @@ module R2CORBA
82
82
  end
83
83
  self.const_set(:TRUNCATABLE_IDS, vt::TRUNCATABLE_IDS)
84
84
  self.const_set(:VT_TC, vt._tc)
85
- #@@tc_vt_ = vt._tc
85
+ # @@tc_vt_ = vt._tc
86
86
  def self._tc
87
- #@@tc_vt_
87
+ # @@tc_vt_
88
88
  self.const_get(:VT_TC)
89
89
  end
90
90
  include vt::Intf
@@ -93,7 +93,7 @@ module R2CORBA
93
93
 
94
94
  class DynamicImplementation < Servant
95
95
  def invoke(request)
96
- if self.class.const_defined?("OPTABLE") && self.class::OPTABLE.has_key?(request.operation)
96
+ if self.class.const_defined?('OPTABLE') && self.class::OPTABLE.has_key?(request.operation)
97
97
  request.describe(self.class::OPTABLE[request.operation])
98
98
  return self.__send__(request.operation, *request.arguments) { request }
99
99
  else
@@ -31,12 +31,12 @@ module R2CORBA
31
31
  end
32
32
  end
33
33
 
34
- Id = "IDL:omg.org/CORBA/Object:1.0".freeze
34
+ Id = 'IDL:omg.org/CORBA/Object:1.0'.freeze
35
35
  Ids = [ Id ].freeze
36
36
 
37
37
  protected
38
38
  def init_corba_portable_stub()
39
- @ids ||= ["IDL:omg.org/CORBA/Object:1.0"]
39
+ @ids ||= ['IDL:omg.org/CORBA/Object:1.0']
40
40
  end
41
41
 
42
42
  def _ids; @ids; end
@@ -47,7 +47,7 @@ module R2CORBA
47
47
 
48
48
  public
49
49
  def _narrow!(klass)
50
- raise CORBA::OBJECT_NOT_EXIST.new("Nil object narrowed!") if self._is_nil?
50
+ raise CORBA::OBJECT_NOT_EXIST.new('Nil object narrowed!') if self._is_nil?
51
51
  raise(TypeError, "invalid object narrowed: #{self.class}") unless self.is_a?(CORBA::Stub) && self._is_a?(klass::Id)
52
52
  self.extend klass
53
53
  _append_ids(*klass::Ids)
@@ -55,7 +55,7 @@ module R2CORBA
55
55
  end
56
56
 
57
57
  def _unchecked_narrow!(klass)
58
- raise CORBA::OBJECT_NOT_EXIST.new("Nil object narrowed!") if self._is_nil?
58
+ raise CORBA::OBJECT_NOT_EXIST.new('Nil object narrowed!') if self._is_nil?
59
59
  raise(TypeError, "invalid object narrowed: #{self.class}") unless self.is_a?(CORBA::Stub)
60
60
  self.extend klass
61
61
  _append_ids(*klass::Ids)
@@ -67,10 +67,10 @@ module R2CORBA
67
67
  end
68
68
 
69
69
  def inspect()
70
- s = ""
70
+ s = ''
71
71
  s << self.class.name.to_s << "\n" <<
72
72
  "type_id: \n" <<
73
- " " << @ids.join("\n ") << "\n"
73
+ ' ' << @ids.join("\n ") << "\n"
74
74
  end
75
75
  end # Stub
76
76
  end # Portable