autobuild 1.6.0.b1 → 1.6.0.b2

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.
@@ -197,8 +197,8 @@ module Autobuild
197
197
  return if failed?
198
198
 
199
199
  begin
200
- do_isolate = Autobuild.ignore_errors
201
- Autobuild.ignore_errors = false
200
+ toplevel = !Thread.current[:isolate_errors]
201
+ Thread.current[:isolate_errors] = true
202
202
  yield
203
203
  rescue Interrupt
204
204
  raise
@@ -208,7 +208,7 @@ module Autobuild
208
208
  @failed = true
209
209
  end
210
210
 
211
- if do_isolate
211
+ if Autobuild.ignore_errors
212
212
  lines = e.to_s.split("\n")
213
213
  if lines.empty?
214
214
  lines = e.message.split("\n")
@@ -225,7 +225,9 @@ module Autobuild
225
225
  raise
226
226
  end
227
227
  ensure
228
- Autobuild.ignore_errors = do_isolate
228
+ if toplevel
229
+ Thread.current[:isolate_errors] = false
230
+ end
229
231
  end
230
232
  end
231
233
 
@@ -234,7 +234,9 @@ module Autobuild
234
234
  end
235
235
 
236
236
  if needs_regen
237
- isolate_errors { regen }
237
+ isolate_errors do
238
+ regen
239
+ end
238
240
  end
239
241
  end
240
242
 
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.6.0.b1" unless defined? Autobuild::VERSION
2
+ VERSION = "1.6.0.b2" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 51
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
9
  - 0
10
10
  - b
11
- - 1
12
- version: 1.6.0.b1
11
+ - 2
12
+ version: 1.6.0.b2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Sylvain Joyeux