sprout-flashplayer-bundle 9.124.3 → 9.151.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,8 @@ module Sprout
2
2
  class FlashPlayer #:nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 9
5
- MINOR = 124
6
- TINY = 3
5
+ MINOR = 151
6
+ TINY = 0
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -176,6 +176,18 @@ module Sprout
176
176
  return @gem_version ||= nil
177
177
  end
178
178
 
179
+ # If you're already running through the as3 or mxmlc bundle, you can tell the FlashPlayerTask
180
+ # to execute the SWF file via FDB (Flex Debugger). This will allow you to take advantage of
181
+ # all the features of FDB.
182
+ # Of course command-line deubugging isn't for everyone, but it can often be better than nothing!
183
+ def use_fdb=(use_fdb)
184
+ @use_fdb = use_fdb
185
+ end
186
+
187
+ def use_fdb?
188
+ @use_fdb
189
+ end
190
+
179
191
  # Full name of the sprout tool gem that this tool task will use.
180
192
  # This defaults to sprout-flashplayer-tool
181
193
  def gem_name=(name)
@@ -227,11 +239,23 @@ module Sprout
227
239
  rescue
228
240
  puts '[WARNING] FlashPlayer encountered an error working with the mm.cfg log and/or editing the Trust file'
229
241
  end
230
-
231
- @running_process = nil
232
- @thread = run(gem_name, gem_version, swf)
233
- read_log(@thread, log_file)
234
- @thread.join
242
+
243
+ if(use_fdb?)
244
+ sprout 'as3'
245
+
246
+ my_fdb = fdb :fdb_task do |t|
247
+ t.file = swf
248
+ t.run
249
+ t.continue
250
+ end
251
+
252
+ my_fdb.execute
253
+ else
254
+ @running_process = nil
255
+ @thread = run(gem_name, gem_version, swf)
256
+ read_log(@thread, log_file)
257
+ @thread.join
258
+ end
235
259
  end
236
260
 
237
261
  def close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprout-flashplayer-bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.124.3
4
+ version: 9.151.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pattern Park
@@ -9,7 +9,7 @@ autorequire: sprout/flashplayer
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-19 00:00:00 -07:00
12
+ date: 2009-01-06 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,7 @@ extra_rdoc_files: []
32
32
 
33
33
  files:
34
34
  - lib
35
+ - pkg
35
36
  - rakefile.rb
36
37
  - samples
37
38
  - test
@@ -63,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
64
  requirements: []
64
65
 
65
66
  rubyforge_project: sprout
66
- rubygems_version: 1.2.0
67
+ rubygems_version: 1.3.1
67
68
  signing_key:
68
69
  specification_version: 2
69
70
  summary: Supporting tasks for Flash Player Rake integration