autobuild 1.5.12 → 1.5.13

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.
@@ -1,3 +1,7 @@
1
+ == Version 1.5.13
2
+ * fix error messages in the oroGen packages, when the loaded oroGen file has an
3
+ error
4
+
1
5
  == Version 1.5.12
2
6
  * fix exception when git logs contain non-ASCII characters on Ruby 1.9 version
3
7
  compiled with another default encoding than UTF-8 (!)
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.12" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.13" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
  require 'autobuild/config'
@@ -68,7 +68,21 @@ module Autobuild
68
68
  def load(file)
69
69
  @orogen_file = file
70
70
  @base_dir = File.dirname(file)
71
- Kernel.eval(File.read(file), binding)
71
+
72
+ begin
73
+ Kernel.eval(File.read(file), binding, file, 0)
74
+ rescue ::Exception => e
75
+ backtrace = e.backtrace.dup
76
+ message = e.message.dup
77
+
78
+ backtrace.delete_if { |line| line !~ /(\s|^)#{Regexp.quote(file)}:/ }
79
+ if message =~ /^(#{Regexp.quote(file)}:\d+): (.*)/m
80
+ backtrace.unshift $1
81
+ message = $2
82
+ end
83
+ raise e, message, backtrace
84
+ end
85
+
72
86
  self
73
87
  end
74
88
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 12
9
- version: 1.5.12
8
+ - 13
9
+ version: 1.5.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sylvain Joyeux
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-09 00:00:00 +02:00
17
+ date: 2010-06-11 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency