ridl 2.5.5 → 2.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 487ad002804614ca82ead17a468922b304642d64
4
- data.tar.gz: 419cd1417bbdd7498f589c245bf26ce50bb60b10
3
+ metadata.gz: 314694ac1e00cdc3cbc8d6afdc18e1e7e3884670
4
+ data.tar.gz: 9899c45caa2b63b1ac39c444e9e4a6c3adce1bfa
5
5
  SHA512:
6
- metadata.gz: faf5353bc1a577cccf62034414744a012de908d8373bf38102edb5b6de39e970f223c140374278a2e7c86b6b00453351f9b123d20c4a93541a2c10cf35615e78
7
- data.tar.gz: 6b3660bc7debee36367f8118c8114d49e6d05b7a9100902f567a59f8eb6d864adda462f838110b5fa5eec9b37143219933a023ddba2bc5617ca8e328a6b03d80
6
+ metadata.gz: 0d0dbd35ff3af48b46bc0fc8f3a0c34c136ce65a8a62e3a2314563af00ed73efa96938d16a7fa12526a6817b9dbb125781b7d36cdc5a166a483a79a3a2156bbf
7
+ data.tar.gz: 51ac6bf5289b2e18e87bc3f0389c43a980f0d3188f2c97c0cbccc315cb0f6bdecd72cc103bd2599d219a1ee5e6b1f4fe083d9dfda10719d434db0bbb228bb0da
data/LICENSE CHANGED
@@ -46,4 +46,4 @@ IN NO EVENT WILL REMEDY IT OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE
46
46
  FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL
47
47
  DAMAGES, EVEN IF REMEDY IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
48
48
 
49
- RIDL is Copyright Remedy IT. Nijkerk, The Netherlands, 2006-2013.
49
+ RIDL is Copyright Remedy IT. Nijkerk, The Netherlands, 2006-2015.
@@ -30,7 +30,7 @@ If you find a bug, please report it at the RIDL project's
30
30
 
31
31
  == License
32
32
 
33
- RIDL is Copyright (c) 2007-2013 Remedy IT Expertise BV, The Netherlands.
33
+ RIDL is Copyright (c) 2007-2015 Remedy IT Expertise BV, The Netherlands.
34
34
 
35
35
  It is free software, and may be redistributed under the terms specified in
36
36
  the LICENSE file.
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -119,7 +119,7 @@ module IDL
119
119
 
120
120
  input_base = File.basename(argv.first)
121
121
  if (input_base != argv.first)
122
- options[:xincludepaths] << File.dirname(argv.first)
122
+ options[:xincludepaths] << (File.dirname(argv.first)+'/')
123
123
  end
124
124
 
125
125
  return !parse("#include \"#{input_base}\"", options).nil?
@@ -196,7 +196,7 @@ module IDL
196
196
  _fname
197
197
  else
198
198
  _fp = _opts[:includepaths].find do |_p|
199
- _f = _p + "/" + _fname
199
+ _f = _p + _fname
200
200
  File.file?(_f) && File.readable?(_f)
201
201
  end
202
202
  _opts[:outputdir] = _fp unless _fp.nil? || !_opts[:outputdir].nil?
@@ -205,7 +205,7 @@ module IDL
205
205
  end
206
206
  _arg = _fpath unless _fpath.nil?
207
207
  end
208
- _opts[:xincludepaths] << File.dirname(_arg)
208
+ _opts[:xincludepaths] << (File.dirname(_arg)+'/')
209
209
 
210
210
  _opts[:outputdir] ||= '.'
211
211
 
@@ -235,7 +235,7 @@ module IDL
235
235
  opts.separator ""
236
236
  opts.on("-I PATH", "--include=PATH", String,
237
237
  "Adds include searchpath.",
238
- "Default: nil") { |v| @options[:includepaths] << v }
238
+ "Default: none") { |v| @options[:includepaths] << (v.end_with?('\\','/') ? v : v+'/') }
239
239
  opts.on('-Dmacro=[value]', String, 'defines preprocessor macro') { |v|
240
240
  name, value = v.split('=')
241
241
  @options[:macros][name] = (value ? value : true)
@@ -252,7 +252,7 @@ module IDL
252
252
  opts.on('--stdidl',
253
253
  'Adds include path to standard IDL files provided with RIDL.',
254
254
  'Default: not set') { |v|
255
- @options[:includepaths] << File.expand_path(File.join(File.dirname(__FILE__), '..', 'idl'))
255
+ @options[:includepaths] << (File.expand_path(File.join(File.dirname(__FILE__), '..', 'idl'))+'/')
256
256
  }
257
257
  opts.on("--search-includepath",
258
258
  "Use include paths to find main IDL source.",
@@ -266,21 +266,23 @@ module IDL
266
266
  # search transient include paths if allowed (quoted includes)
267
267
  fp = if all then
268
268
  @xincludepaths.find do |p|
269
- f = p + '/' + fname
270
- File.file?(f) && File.readable?(f)
269
+ check_include(p, fname)
271
270
  end
272
271
  else
273
272
  nil
274
273
  end
275
274
  # search system include paths if still needed
276
275
  fp = @includepaths.find do |p|
277
- f = p + '/' + fname
278
- File.file?(f) && File.readable?(f)
276
+ check_include(p, fname)
279
277
  end unless fp
280
- fp += '/' + fname if fp
278
+ fp += fname if fp
281
279
  fp
282
280
  end
283
281
  end
282
+ def check_include(path, fname)
283
+ fp = path + fname
284
+ File.file?(fp) && File.readable?(fp)
285
+ end
284
286
 
285
287
  def position
286
288
  @in.position
@@ -296,7 +298,7 @@ module IDL
296
298
  end
297
299
  @stack << [:include, @prefix, @ifdef, @in, @ifskip]
298
300
  # record file dir as new searchpath
299
- @xincludepaths << File.dirname(fpath)
301
+ @xincludepaths << (File.dirname(fpath)+'/')
300
302
  @prefix = nil
301
303
  @ifdef = Array.new
302
304
  @in = In.new(File.open(fpath, 'r'), fpath)
@@ -15,7 +15,7 @@ module IDL
15
15
 
16
16
  RIDL_VERSION_MAJOR = 2.freeze
17
17
  RIDL_VERSION_MINOR = 5.freeze
18
- RIDL_VERSION_RELEASE = 5.freeze
18
+ RIDL_VERSION_RELEASE = 6.freeze
19
19
  RIDL_VERSION = "#{RIDL_VERSION_MAJOR}.#{RIDL_VERSION_MINOR}.#{RIDL_VERSION_RELEASE}"
20
20
  RIDL_COPYRIGHT = "Copyright (c) 2007-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
4
+ version: 2.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: OMG v. 3.3 compliant native Ruby IDL compiler frontend with support for
14
14
  pluggable (and stackable) backends.