sprout-flashplayer-bundle 9.115.6 → 9.115.8

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.
@@ -3,7 +3,7 @@ module Sprout
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 9
5
5
  MINOR = 115
6
- TINY = 6
6
+ TINY = 8
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -171,7 +171,8 @@ module Sprout
171
171
  end
172
172
 
173
173
  def run(tool, version, swf)
174
- target = User.clean_path(Sprout.get_executable(tool, nil, version))
174
+ path_to_exe = Sprout.get_executable(tool, nil, version)
175
+ target = User.clean_path(path_to_exe)
175
176
  @player_pid = nil
176
177
 
177
178
  thread_out = $stdout
@@ -184,22 +185,19 @@ module Sprout
184
185
  else
185
186
  require 'open4'
186
187
  @player_pid, stdin, stdout, stderr = Open4.popen4(command)
187
- focus_player_on_mac(thread_out)
188
+ focus_player_on_mac(thread_out, path_to_exe)
188
189
  stdout.read
189
190
  end
190
191
  }
191
192
  end
192
193
 
193
- def focus_player_on_mac(out)
194
- if(User.new.is_a?(OSXUser))
195
- require 'rbosa'
196
- system_events = OSA.app("System Events")
197
- system_events.application_processes.each do |process|
198
- if(process.name == "Flash Player")
199
- #out.puts "Focusing Flash Player now"
200
- process.frontmost = true
201
- end
194
+ def focus_player_on_mac(out, exe)
195
+ begin
196
+ if(User.new.is_a?(OSXUser))
197
+ require 'appscript'
198
+ Appscript.app(exe).activate
202
199
  end
200
+ rescue
203
201
  end
204
202
  end
205
203
 
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.115.6
4
+ version: 9.115.8
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-02-09 00:00:00 -08:00
12
+ date: 2008-02-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -31,7 +31,6 @@ extra_rdoc_files: []
31
31
 
32
32
  files:
33
33
  - lib
34
- - pkg
35
34
  - rakefile.rb
36
35
  - samples
37
36
  - test