sprout-as3-bundle 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Sprout # :nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- TINY = 21
6
+ TINY = 22
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -142,6 +142,7 @@ module Sprout #:nodoc:
142
142
  attr_writer :kill_on_fault
143
143
 
144
144
  def initialize_task # :nodoc:
145
+ Thread.abort_on_exception = true
145
146
  @default_gem_name = 'sprout-flex3sdk-tool'
146
147
  @default_gem_path = 'bin/fdb'
147
148
  @kill_on_fault = false
@@ -191,6 +192,9 @@ module Sprout #:nodoc:
191
192
 
192
193
  buffer.join # wait here until the buffer is closed.
193
194
 
195
+ if(buffer.runtime_exception_encountered && kill_on_fault?)
196
+ raise FDBTaskError.new("[ERROR] ActionScript runtime exception encountered")
197
+ end
194
198
  self
195
199
  end
196
200
 
@@ -494,6 +498,8 @@ module Sprout #:nodoc:
494
498
  attr_accessor :test_result_file
495
499
  attr_accessor :test_result_prelude
496
500
  attr_accessor :test_result_closing
501
+
502
+ attr_reader :runtime_exception_encountered
497
503
  attr_writer :kill_on_fault
498
504
 
499
505
  PLAYER_TERMINATED = 'Player session terminated'
@@ -599,6 +605,7 @@ module Sprout #:nodoc:
599
605
  write('info locals') # Output local variables
600
606
  write('kill') # Kill the running SWF file
601
607
  write('y') # Confirm killing SWF
608
+ @runtime_exception_encountered = true
602
609
  write('quit') # Quit FDB safely
603
610
  }
604
611
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprout-as3-bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pattern Park
@@ -9,7 +9,7 @@ autorequire: sprout/as3
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-26 00:00:00 -08:00
12
+ date: 2009-01-28 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency