r2corba 1.5.5-universal-java → 1.6.0-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 (147) hide show
  1. checksums.yaml +4 -4
  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/gem.rake +20 -20
  44. data/rakelib/gem.rb +1 -1
  45. data/rakelib/package.rake +1 -1
  46. data/test/BiDirectional/client.rb +16 -16
  47. data/test/BiDirectional/run_test.rb +10 -10
  48. data/test/BiDirectional/server.rb +20 -20
  49. data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
  50. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
  51. data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
  52. data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
  53. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
  54. data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
  55. data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
  56. data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
  57. data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
  58. data/test/Collocation/run_test.rb +10 -10
  59. data/test/Collocation/test.rb +26 -19
  60. data/test/Connect_Timeout/client.rb +15 -15
  61. data/test/Connect_Timeout/run_test.rb +10 -10
  62. data/test/DII/client.rb +27 -27
  63. data/test/DII/run_test.rb +10 -10
  64. data/test/DII/server.rb +15 -15
  65. data/test/DSI/client.rb +15 -15
  66. data/test/DSI/run_test.rb +10 -10
  67. data/test/DSI/server.rb +16 -16
  68. data/test/Exceptions/client.rb +19 -19
  69. data/test/Exceptions/run_test.rb +10 -10
  70. data/test/Exceptions/server.rb +15 -15
  71. data/test/Hello/client.rb +15 -15
  72. data/test/Hello/run_test.rb +10 -10
  73. data/test/Hello/server.rb +16 -16
  74. data/test/IDL_Test/client.rb +20 -20
  75. data/test/IDL_Test/run_test.rb +10 -10
  76. data/test/IDL_Test/server.rb +18 -18
  77. data/test/IORMap/client.rb +14 -14
  78. data/test/IORMap/run_test.rb +10 -10
  79. data/test/IORMap/server.rb +22 -22
  80. data/test/IORTable/client.rb +14 -14
  81. data/test/IORTable/run_test.rb +10 -10
  82. data/test/IORTable/server.rb +22 -22
  83. data/test/Implicit_Conversion/client.rb +19 -16
  84. data/test/Implicit_Conversion/run_test.rb +10 -10
  85. data/test/Implicit_Conversion/server.rb +15 -15
  86. data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
  87. data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
  88. data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
  89. data/test/Multi_Threading/Simple/client.rb +15 -15
  90. data/test/Multi_Threading/Simple/run_test.rb +10 -10
  91. data/test/Multi_Threading/Simple/server.rb +15 -15
  92. data/test/Multi_Threading/Threads/client.rb +15 -15
  93. data/test/Multi_Threading/Threads/run_test.rb +10 -10
  94. data/test/Multi_Threading/Threads/server.rb +17 -17
  95. data/test/Multi_Threading/Threads/watchdog.rb +15 -15
  96. data/test/Multiple_Servant_Interfaces/client.rb +13 -13
  97. data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
  98. data/test/Multiple_Servant_Interfaces/server.rb +17 -17
  99. data/test/Nil/run_test.rb +10 -10
  100. data/test/Nil/test.rb +13 -13
  101. data/test/OBV/AbstractInterface/client.rb +13 -13
  102. data/test/OBV/AbstractInterface/run_test.rb +10 -10
  103. data/test/OBV/AbstractInterface/server.rb +19 -18
  104. data/test/OBV/Custom/OBV_impl.rb +2 -0
  105. data/test/OBV/Custom/client.rb +13 -13
  106. data/test/OBV/Custom/run_test.rb +10 -10
  107. data/test/OBV/Custom/server.rb +15 -15
  108. data/test/OBV/Simple/OBV_impl.rb +1 -0
  109. data/test/OBV/Simple/client.rb +13 -13
  110. data/test/OBV/Simple/run_test.rb +10 -10
  111. data/test/OBV/Simple/server.rb +15 -15
  112. data/test/OBV/Simple_Event/Event_impl.rb +1 -0
  113. data/test/OBV/Simple_Event/client.rb +13 -13
  114. data/test/OBV/Simple_Event/run_test.rb +10 -10
  115. data/test/OBV/Simple_Event/server.rb +15 -15
  116. data/test/OBV/Supports/client.rb +18 -18
  117. data/test/OBV/Supports/run_test.rb +10 -10
  118. data/test/OBV/Supports/server.rb +14 -14
  119. data/test/OBV/Supports/supports_impl.rb +3 -0
  120. data/test/OBV/Tree/client.rb +13 -13
  121. data/test/OBV/Tree/run_test.rb +10 -10
  122. data/test/OBV/Tree/server.rb +18 -18
  123. data/test/OBV/Truncatable/client.rb +56 -56
  124. data/test/OBV/Truncatable/run_test.rb +10 -10
  125. data/test/OBV/Truncatable/server.rb +14 -14
  126. data/test/OBV/ValueBox/client.rb +148 -147
  127. data/test/OBV/ValueBox/run_test.rb +10 -10
  128. data/test/OBV/ValueBox/server.rb +15 -15
  129. data/test/Object/client.rb +13 -13
  130. data/test/Object/run_test.rb +10 -10
  131. data/test/Object/server.rb +18 -18
  132. data/test/POA/run_test.rb +10 -10
  133. data/test/POA/test.rb +15 -15
  134. data/test/Param_Test/client.rb +47 -47
  135. data/test/Param_Test/run_test.rb +10 -10
  136. data/test/Param_Test/server.rb +55 -55
  137. data/test/Performance/Simple/client.rb +15 -15
  138. data/test/Performance/Simple/run_test.rb +10 -10
  139. data/test/Performance/Simple/server.rb +15 -15
  140. data/test/Policies/run_test.rb +10 -10
  141. data/test/Policies/test.rb +23 -23
  142. data/test/Timeout/client.rb +17 -17
  143. data/test/Timeout/run_test.rb +10 -10
  144. data/test/Timeout/server.rb +18 -18
  145. data/test/lib/test.rb +13 -7
  146. data/test/test_runner.rb +19 -19
  147. metadata +6 -6
data/mkrf_conf_bingem.rb CHANGED
@@ -36,7 +36,7 @@ end
36
36
  if defined?(JRUBY_VERSION)
37
37
 
38
38
  unless system("ruby -S rake -- configure --jacorb-home=#{File.expand_path('ext')}")
39
- $stderr.puts "Failed to configure R2CORBA"
39
+ $stderr.puts 'Failed to configure R2CORBA'
40
40
  exit(1)
41
41
  end
42
42
 
@@ -141,9 +141,9 @@ else
141
141
 
142
142
  end
143
143
 
144
- puts "Running rake -- configure --without-tao"
145
- unless system("rake -- configure --without-tao")
146
- puts "Failed to configure R2CORBA."
144
+ puts 'Running rake -- configure --without-tao'
145
+ unless system('rake -- configure --without-tao')
146
+ puts 'Failed to configure R2CORBA.'
147
147
  exit(1)
148
148
  end
149
149
  end
data/rakelib/build.rake CHANGED
@@ -44,7 +44,7 @@ CLOBBER.include orb_pidlc
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
46
  cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root}" <<
47
- " --stubs-only --expand-includes --search-includepath --no-libinit --interface-as-class=TypeCode orb.idl"
47
+ ' --stubs-only --expand-includes --search-includepath --no-libinit --interface-as-class=TypeCode orb.idl'
48
48
  sh(cmd)
49
49
  end
50
50
  Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, 'r2c_orb.rb')]
data/rakelib/config.rake CHANGED
@@ -29,7 +29,7 @@ namespace :r2corba do
29
29
  namespace :config do
30
30
  task :show do
31
31
  R2CORBA::CFGKEYS.each do |ck|
32
- puts "%20s => %s" % [ck, get_config(ck)]
32
+ puts '%20s => %s' % [ck, get_config(ck)]
33
33
  end
34
34
  end
35
35
  end
data/rakelib/config.rb CHANGED
@@ -86,8 +86,8 @@ if (Rake::Version::MAJOR.to_i == 10 &&
86
86
 
87
87
  begin
88
88
  return OptionParser.new do |opts|
89
- opts.banner = ""
90
- opts.separator ""
89
+ opts.banner = ''
90
+ opts.separator ''
91
91
 
92
92
  standard_rake_options.each { |args| opts.on(*args) }
93
93
  opts.environment('RAKEOPT')
@@ -367,9 +367,9 @@ module R2CORBA
367
367
  def self.define
368
368
  _argv = Rake.application.cleanup_args(ARGV)
369
369
  OptionParser.new do |opts|
370
- opts.banner = "Usage: rake [rake options] -- configure [options]"
370
+ opts.banner = 'Usage: rake [rake options] -- configure [options]'
371
371
 
372
- opts.separator ""
372
+ opts.separator ''
373
373
 
374
374
  opts.on('--prefix=path',
375
375
  "path prefix of target environment [#{get_config(:prefix)}]") {|v| set_config(:prefix, File.expand_path(v))}
@@ -429,7 +429,7 @@ module R2CORBA
429
429
  "build with debugger support [#{get_config('with-debug')}]") {|v| CONFIG[:'with-debug'] = true}
430
430
  end
431
431
 
432
- opts.separator ""
432
+ opts.separator ''
433
433
 
434
434
  opts.on('--help', 'Show this help message') { puts opts; puts; exit }
435
435
  end.parse!(_argv)
@@ -441,7 +441,7 @@ module R2CORBA
441
441
  if get_config('jacorb_home') == '' && File.directory?('jacorb')
442
442
  set_config('jacorb_home', File.expand_path('jacorb'))
443
443
  end
444
- raise "Cannot find JacORB. Missing JACORB_HOME configuration!" if get_config('jacorb_home').empty?
444
+ raise 'Cannot find JacORB. Missing JACORB_HOME configuration!' if get_config('jacorb_home').empty?
445
445
  else
446
446
  if Dir[File.join('ext', 'libACE.*')].empty? # Don't check for ACE/TAO installation when executed for binary gem install
447
447
 
@@ -466,8 +466,8 @@ module R2CORBA
466
466
  if get_config('taoroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'TAO')) || File.directory?(File.join('ACE', 'TAO')))
467
467
  set_config('taoroot', File.directory?(File.join(get_config('aceroot'), 'TAO')) ? File.expand_path(File.join(get_config('aceroot'), 'TAO')) : File.expand_path(File.join('ACE', 'TAO')))
468
468
  end
469
- if get_config('mpcroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'MPC')) || File.directory?(File.join('ACE', 'MPC')))
470
- set_config('mpcroot', File.directory?(File.join(get_config('aceroot'), 'MPC')) ? File.expand_path(File.join(get_config('aceroot'), 'MPC')) : File.expand_path(File.join('ACE', 'MPC')))
469
+ if get_config('mpcroot').empty? && (File.directory?(File.join('ACE', 'MPC')) || File.directory?(File.join(get_config('aceroot'), 'MPC')))
470
+ set_config('mpcroot', File.directory?(File.join('ACE', 'MPC')) ? File.expand_path(File.join('ACE', 'MPC')) : File.expand_path(File.join(get_config('aceroot'), 'MPC')))
471
471
  end
472
472
 
473
473
  set_config('aceinstdir', get_config('sodir')) if get_config('aceinstdir').empty?
@@ -515,7 +515,7 @@ module R2CORBA
515
515
 
516
516
  # check availability of RIDL; either as gem or in subdir
517
517
  unless File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
518
- raise "Missing RIDL installation. R2CORBA requires RIDL installed either as gem or in subdirectory ridl."
518
+ raise 'Missing RIDL installation. R2CORBA requires RIDL installed either as gem or in subdirectory ridl.'
519
519
  end
520
520
  end
521
521
 
data/rakelib/gem.rake CHANGED
@@ -67,7 +67,7 @@ namespace :r2corba do
67
67
  gem.summary = %Q{TAO sourcecode for building R2CORBA}
68
68
  gem.description = %Q{TAO sourcecode for building R2CORBA.}
69
69
  gem.email = 'mcorino@remedy.nl'
70
- gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
70
+ gem.homepage = 'https://www.remedy.nl/opensource/r2corba.html'
71
71
  gem.authors = ['Martin Corino', 'Johnny Willemsen']
72
72
  gem.files = Dir['lib/taosource/**/*']
73
73
  gem.files.concat(Dir["src/ACE+TAO-src-#{_ace_ver}.tar.gz"])
@@ -75,11 +75,11 @@ namespace :r2corba do
75
75
  gem.extensions = ['mkrf_conf_taogem.rb']
76
76
  gem.require_paths = %w{lib}
77
77
  gem.executables = []
78
- gem.required_ruby_version = '>= 2.0'
78
+ gem.required_ruby_version = '>= 2.4'
79
79
  gem.licenses = ['DOC']
80
80
  gem.metadata = {
81
- "bug_tracker_uri" => "https://github.com/DOCGroup/ACE_TAO/issues",
82
- "source_code_uri" => "https://github.com/DOCGroup/ACE_TAO"
81
+ 'bug_tracker_uri' => 'https://github.com/DOCGroup/ACE_TAO/issues',
82
+ 'source_code_uri' => 'https://github.com/DOCGroup/ACE_TAO'
83
83
  }
84
84
  end
85
85
  R2CORBA::Gem.build_gem(gemspec)
@@ -94,21 +94,21 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
94
94
  gem.summary = %Q{CORBA language mapping implementation for Ruby}
95
95
  gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
96
96
  gem.email = 'mcorino@remedy.nl'
97
- gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
97
+ gem.homepage = 'https://www.remedy.nl/opensource/r2corba.html'
98
98
  gem.authors = ['Martin Corino', 'Johnny Willemsen']
99
99
  gem.files = R2CORBA::Gem.manifest
100
100
  gem.extensions = ['mkrf_conf_srcgem.rb']
101
101
  gem.require_paths = %w{lib}
102
102
  gem.executables = %w{ridlc rins r2corba}
103
- gem.required_ruby_version = '>= 2.0'
103
+ gem.required_ruby_version = '>= 2.4'
104
104
  gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
105
105
  gem.require_paths << 'ext'
106
106
  gem.add_dependency 'ridl', '~> 2.8'
107
107
  gem.add_dependency 'rake', '>= 12.3.3'
108
108
  gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
109
109
  gem.metadata = {
110
- "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
111
- "source_code_uri" => "https://github.com/RemedyIT/r2corba"
110
+ 'bug_tracker_uri' => 'https://github.com/RemedyIT/r2corba/issues',
111
+ 'source_code_uri' => 'https://github.com/RemedyIT/r2corba'
112
112
  }
113
113
  end
114
114
  R2CORBA::Gem.build_gem(gemspec)
@@ -133,18 +133,18 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
133
133
  gem.summary = %Q{CORBA language mapping implementation for Ruby (extension binaries)}
134
134
  gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. (extension binaries)}
135
135
  gem.email = 'mcorino@remedy.nl'
136
- gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
136
+ gem.homepage = 'https://www.remedy.nl/opensource/r2corba.html'
137
137
  gem.authors = ['Martin Corino', 'Johnny Willemsen']
138
138
  gem.files = R2CORBA::Gem.manifest(:extbin)
139
139
  gem.extensions = []
140
140
  gem.require_paths = %w{ext}
141
141
  gem.executables = []
142
- gem.required_ruby_version = '>= 2.0'
142
+ gem.required_ruby_version = '>= 2.4'
143
143
  gem.licenses = ['Nonstandard', 'DOC']
144
144
  gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
145
145
  gem.metadata = {
146
- "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
147
- "source_code_uri" => "https://github.com/RemedyIT/r2corba"
146
+ 'bug_tracker_uri' => 'https://github.com/RemedyIT/r2corba/issues',
147
+ 'source_code_uri' => 'https://github.com/RemedyIT/r2corba'
148
148
  }
149
149
  end
150
150
  R2CORBA::Gem.build_gem(gemspec)
@@ -176,7 +176,7 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
176
176
  gem.summary = %Q{CORBA language mapping implementation for Ruby}
177
177
  gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
178
178
  gem.email = 'mcorino@remedy.nl'
179
- gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
179
+ gem.homepage = 'https://www.remedy.nl/opensource/r2corba.html'
180
180
  gem.authors = ['Martin Corino', 'Johnny Willemsen']
181
181
  gem.files = R2CORBA::Gem.manifest(:bin)
182
182
  gem.require_paths = %w{lib}
@@ -184,11 +184,11 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
184
184
  gem.extensions = ['mkrf_conf_bingem.rb']
185
185
  if defined?(JRUBY_VERSION)
186
186
  gem.require_paths << 'jacorb/lib'
187
- gem.required_ruby_version = '>= 2.0'
187
+ gem.required_ruby_version = '>= 2.4'
188
188
  gem.licenses = ['Nonstandard', 'GPL-2.0']
189
189
  else
190
190
  gem.files << File.join('ext', '.keep') unless ENV['FULL_BINGEM'] # to force installation of ext folder if libs are left out
191
- gem.required_ruby_version = '>= 2.0'
191
+ gem.required_ruby_version = '>= 2.4'
192
192
  gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
193
193
  gem.require_paths << 'ext'
194
194
  end
@@ -196,8 +196,8 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
196
196
  gem.add_dependency 'rake', '>= 12.3.3'
197
197
  gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
198
198
  gem.metadata = {
199
- "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
200
- "source_code_uri" => "https://github.com/RemedyIT/r2corba"
199
+ 'bug_tracker_uri' => 'https://github.com/RemedyIT/r2corba/issues',
200
+ 'source_code_uri' => 'https://github.com/RemedyIT/r2corba'
201
201
  }
202
202
  end
203
203
  R2CORBA::Gem.build_gem(gemspec)
@@ -219,7 +219,7 @@ unless defined?(JRUBY_VERSION)
219
219
  gem.summary = %Q{R2CORBA Devkit faker for RubyInstaller Rubies}
220
220
  gem.description = %Q{Fake Devkit loader to satisfy stupid RubyInstaller pre-install hook. }
221
221
  gem.email = 'mcorino@remedy.nl'
222
- gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
222
+ gem.homepage = 'https://www.remedy.nl/opensource/r2corba.html'
223
223
  gem.authors = ['Martin Corino', 'Johnny Willemsen']
224
224
  gem.files = 'lib/rubygems_plugin.rb'
225
225
  gem.require_paths = %w{lib}
@@ -228,8 +228,8 @@ unless defined?(JRUBY_VERSION)
228
228
  gem.required_ruby_version = '>= 2.0'
229
229
  gem.licenses = ['Nonstandard']
230
230
  gem.metadata = {
231
- "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
232
- "source_code_uri" => "https://github.com/RemedyIT/r2corba"
231
+ 'bug_tracker_uri' => 'https://github.com/RemedyIT/r2corba/issues',
232
+ 'source_code_uri' => 'https://github.com/RemedyIT/r2corba'
233
233
  }
234
234
  end
235
235
  R2CORBA::Gem.build_gem(gemspec)
data/rakelib/gem.rb CHANGED
@@ -98,7 +98,7 @@ module R2CORBA
98
98
  if gemtype == :bin || gemtype == :extbin
99
99
  gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
100
100
  end
101
- 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=
102
102
  block.call(gemspec) if block_given?
103
103
  gemspec
104
104
  end
data/rakelib/package.rake CHANGED
@@ -14,7 +14,7 @@ require 'rake/packagetask'
14
14
 
15
15
  require File.join(File.dirname(__FILE__), 'config.rb')
16
16
 
17
- Rake::PackageTask.new("r2corba", R2CORBA::R2CORBA_VERSION) do |p|
17
+ Rake::PackageTask.new('r2corba', R2CORBA::R2CORBA_VERSION) do |p|
18
18
  p.need_tar_gz = true
19
19
  p.need_zip = true
20
20
  p.package_files.include(%w{ext/**/*.{mwc,cpp,c,h}})
@@ -21,22 +21,22 @@ ARGV.options do |opts|
21
21
  script_name = File.basename($0)
22
22
  opts.banner = "Usage: ruby #{script_name} [options]"
23
23
 
24
- opts.separator ""
24
+ opts.separator ''
25
25
 
26
- opts.on("--k IORFILE",
27
- "Set IOR.",
26
+ opts.on('--k IORFILE',
27
+ 'Set IOR.',
28
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 }
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 }
35
35
 
36
- opts.separator ""
36
+ opts.separator ''
37
37
 
38
- opts.on("-h", "--help",
39
- "Show this help message.") { puts opts; exit }
38
+ opts.on('-h', '--help',
39
+ 'Show this help message.') { puts opts; exit }
40
40
 
41
41
  opts.parse!
42
42
  end
@@ -64,19 +64,19 @@ class MyCallback < POA::Callback
64
64
  end
65
65
  end
66
66
 
67
- end #of servant Callback
67
+ end # of servant Callback
68
68
 
69
69
  if defined?(JRUBY_VERSION)
70
70
  ## JacORB needs explicit activation of this option
71
71
  props = {
72
- "org.omg.PortableInterceptor.ORBInitializerClass.bidir_init" =>
73
- "org.jacorb.orb.giop.BiDirConnectionInitializer"
72
+ 'org.omg.PortableInterceptor.ORBInitializerClass.bidir_init' =>
73
+ 'org.jacorb.orb.giop.BiDirConnectionInitializer'
74
74
  }
75
75
  else
76
76
  props = {}
77
77
  end
78
78
 
79
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB', props)
79
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB', props)
80
80
 
81
81
  begin
82
82
 
@@ -19,19 +19,19 @@ ARGV.options do |opts|
19
19
  script_name = File.basename($0)
20
20
  opts.banner = "Usage: ruby #{script_name} [options]"
21
21
 
22
- opts.separator ""
22
+ opts.separator ''
23
23
 
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] = '' }
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] = '' }
30
30
 
31
- opts.separator ""
31
+ opts.separator ''
32
32
 
33
- opts.on("-h", "--help",
34
- "Show this help message.") { puts opts; exit }
33
+ opts.on('-h', '--help',
34
+ 'Show this help message.') { puts opts; exit }
35
35
 
36
36
  opts.parse!
37
37
  end
@@ -22,25 +22,25 @@ ARGV.options do |opts|
22
22
  script_name = File.basename($0)
23
23
  opts.banner = "Usage: ruby #{script_name} [options]"
24
24
 
25
- opts.separator ""
25
+ opts.separator ''
26
26
 
27
- opts.on("--o IORFILE",
28
- "Set IOR filename.",
27
+ opts.on('--o IORFILE',
28
+ 'Set IOR filename.',
29
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 }
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 }
39
39
 
40
- opts.separator ""
40
+ opts.separator ''
41
41
 
42
- opts.on("-h", "--help",
43
- "Show this help message.") { puts opts; exit }
42
+ opts.on('-h', '--help',
43
+ 'Show this help message.') { puts opts; exit }
44
44
 
45
45
  opts.parse!
46
46
  end
@@ -92,19 +92,19 @@ class Simple_Server_i < POA::Simple_Server
92
92
  return 0
93
93
  end
94
94
 
95
- end #of servant Simple_Server_i
95
+ end # of servant Simple_Server_i
96
96
 
97
97
  if defined?(JRUBY_VERSION)
98
98
  ## JacORB needs explicit activation of this option
99
99
  props = {
100
- "org.omg.PortableInterceptor.ORBInitializerClass.bidir_init" =>
101
- "org.jacorb.orb.giop.BiDirConnectionInitializer"
100
+ 'org.omg.PortableInterceptor.ORBInitializerClass.bidir_init' =>
101
+ 'org.jacorb.orb.giop.BiDirConnectionInitializer'
102
102
  }
103
103
  else
104
104
  props = {}
105
105
  end
106
106
 
107
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB', props)
107
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB', props)
108
108
 
109
109
  obj = orb.resolve_initial_references('RootPOA')
110
110
 
@@ -143,7 +143,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
143
143
  }
144
144
 
145
145
  Signal.trap('INT') do
146
- puts "SIGINT - shutting down ORB..."
146
+ puts 'SIGINT - shutting down ORB...'
147
147
  orb.shutdown()
148
148
  end
149
149
 
@@ -23,22 +23,22 @@ ARGV.options do |opts|
23
23
  script_name = File.basename($0)
24
24
  opts.banner = "Usage: ruby #{script_name} [options]"
25
25
 
26
- opts.separator ""
26
+ opts.separator ''
27
27
 
28
- opts.on("--k IORFILE",
29
- "Set IOR.",
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
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 }
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
37
 
38
- opts.separator ""
38
+ opts.separator ''
39
39
 
40
- opts.on("-h", "--help",
41
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
42
42
 
43
43
  opts.parse!
44
44
  end
@@ -51,7 +51,7 @@ else
51
51
  end
52
52
  require 'corba/naming'
53
53
 
54
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
54
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
55
55
 
56
56
  begin
57
57
 
@@ -60,7 +60,7 @@ begin
60
60
 
61
61
  nc = CosNaming::NamingContextExt._narrow(obj)
62
62
 
63
- 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)
64
64
 
65
65
  # list registered items in context
66
66
  binding_list, binding_iterator = nc.list(1)