semilla 0.0.5 → 0.0.6

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,4 +1,5 @@
1
1
  require_relative "platform"
2
+ require 'flashsdk'
2
3
 
3
4
  module Semilla
4
5
 
@@ -17,5 +18,15 @@ module Semilla
17
18
  return %x[#{command}]
18
19
 
19
20
  end
21
+
22
+ def self.get_player
23
+ #Use the flash player info found in the Environment Variable if defined.
24
+ return ENV['FLASH_PLAYER'] unless ENV['FLASH_PLAYER'].nil?
25
+
26
+ #Else use the flash player provided byu Sprout
27
+ return Sprout::Executable.load(:flashplayer,
28
+ FlashPlayer::NAME,
29
+ FlashPlayer::VERSION).path
30
+ end
20
31
 
21
32
  end
data/lib/semilla/test.rb CHANGED
@@ -57,7 +57,7 @@ module Semilla
57
57
 
58
58
  begin
59
59
  status = Timeout::timeout @timeout do
60
- flashbin = ENV['FLASH_PLAYER']
60
+ flashbin = Semilla::get_player
61
61
  #Run the flash player
62
62
  puts "Running flash..."
63
63
  fr = Semilla::run_player(flashbin, swf)
@@ -1,3 +1,3 @@
1
1
  module Semilla
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: flashsdk
16
- requirement: &2164452900 !ruby/object:Gem::Requirement
16
+ requirement: &2156286760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.1.0.pre
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2164452900
24
+ version_requirements: *2156286760
25
25
  description: ! 'Rake tasks for executing flex unit 4 tests.
26
26
 
27
27
  It should be used in addition to the sprout gem.