limelight 0.4.0-java → 0.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/limelight.jar +0 -0
- data/lib/limelight/animation.rb +4 -3
- data/lib/limelight/builtin/players.rb +3 -1
- data/lib/limelight/builtin/players/image.rb +4 -0
- data/lib/limelight/builtin/players/stage_mover.rb +31 -0
- data/lib/limelight/builtin/players/stage_sizer.rb +34 -0
- data/lib/limelight/builtin/utilities_production/alert/players/alert.rb +11 -0
- data/lib/limelight/builtin/utilities_production/alert/props.rb +3 -0
- data/lib/limelight/builtin/utilities_production/alert/styles.rb +7 -0
- data/lib/limelight/builtin/utilities_production/incompatible_version/props.rb +3 -0
- data/lib/limelight/builtin/utilities_production/incompatible_version/styles.rb +3 -0
- data/lib/limelight/builtin/utilities_production/production.rb +3 -0
- data/lib/limelight/builtin/utilities_production/stages.rb +3 -0
- data/lib/limelight/builtin/utilities_production/styles.rb +3 -0
- data/lib/limelight/casting_director.rb +1 -1
- data/lib/limelight/commands/create_command.rb +33 -19
- data/lib/limelight/commands/freeze_command.rb +20 -5
- data/lib/limelight/commands/open_command.rb +2 -1
- data/lib/limelight/dsl/styles_builder.rb +40 -18
- data/lib/limelight/file_loader.rb +1 -1
- data/lib/limelight/gems.rb +3 -1
- data/lib/limelight/java_couplings.rb +1 -0
- data/lib/limelight/producer.rb +4 -47
- data/lib/limelight/production.rb +20 -0
- data/lib/limelight/prop.rb +32 -32
- data/lib/limelight/scene.rb +2 -1
- data/lib/limelight/specs/spec_helper.rb +24 -22
- data/lib/limelight/specs/test_scene_opener.rb +60 -0
- data/lib/limelight/string.rb +1 -1
- data/lib/limelight/studio.rb +28 -9
- data/lib/limelight/templates/production_templater.rb +5 -2
- data/lib/limelight/templates/scene_templater.rb +7 -6
- data/lib/limelight/templates/sources/production/production.rb.template +1 -1
- data/lib/limelight/templates/sources/production/spec/spec_helper.rb.template +8 -1
- data/lib/limelight/version.rb +1 -1
- data/productions/examples/sandbox/alerts/incompatible_production/default_scene/props.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/default_scene/styles.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/production.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/spec/default_scene/default_scene_spec.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/spec/spec_helper.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/stages.rb +3 -0
- data/productions/examples/sandbox/alerts/incompatible_production/styles.rb +3 -0
- data/productions/examples/sandbox/alerts/players/alerts.rb +3 -0
- data/productions/examples/sandbox/alerts/props.rb +3 -0
- data/productions/examples/sandbox/alerts/styles.rb +3 -0
- data/productions/examples/sandbox/background_images/props.rb +3 -0
- data/productions/examples/sandbox/header.rb +1 -0
- data/productions/examples/sandbox/images_scene/props.rb +8 -0
- data/productions/examples/sandbox/kiosk/players/kiosk.rb +3 -0
- data/productions/examples/sandbox/kiosk/props.rb +3 -0
- data/productions/examples/sandbox/kiosk/styles.rb +3 -0
- data/productions/examples/sandbox/spec/alerts/alerts_spec.rb +3 -0
- data/productions/examples/sandbox/stage_handles/players/sizer.rb +35 -0
- data/productions/examples/sandbox/stage_handles/props.rb +17 -0
- data/productions/examples/sandbox/stage_handles/styles.rb +58 -0
- data/productions/playbills.lll +1 -0
- data/productions/startup/production.rb +3 -0
- data/productions/startup/spec/default_scene/default_scene_spec.rb +3 -0
- data/productions/startup/spec/spec_helper.rb +3 -0
- data/productions/startup/styles.rb +3 -0
- data/spec/{builtin → limelight/builtin}/players/button_spec.rb +1 -1
- data/spec/{builtin → limelight/builtin}/players/check_box_spec.rb +1 -1
- data/spec/{builtin → limelight/builtin}/players/combo_box_spec.rb +1 -1
- data/spec/{builtin → limelight/builtin}/players/image_spec.rb +1 -2
- data/spec/{builtin → limelight/builtin}/players/password_box_spec.rb +1 -1
- data/spec/{builtin → limelight/builtin}/players/radio_button_spec.rb +1 -1
- data/spec/limelight/builtin/players/stage_mover_spec.rb +36 -0
- data/spec/limelight/builtin/players/stage_sizer_spec.rb +40 -0
- data/spec/{builtin → limelight/builtin}/players/text_area_spec.rb +1 -1
- data/spec/{builtin → limelight/builtin}/players/text_box_spec.rb +1 -1
- data/spec/limelight/builtin/utilities_production/spec_helper.rb +7 -0
- data/spec/{builtin → limelight/builtin}/utilities_production/utilities_production_spec.rb +3 -0
- data/spec/{casting_director_spec.rb → limelight/casting_director_spec.rb} +1 -1
- data/spec/{client → limelight/client}/playbills_spec.rb +1 -1
- data/spec/{commands → limelight/commands}/command_spec.rb +1 -1
- data/spec/{commands → limelight/commands}/create_command_spec.rb +23 -19
- data/spec/limelight/commands/freeze_command_spec.rb +143 -0
- data/spec/{commands → limelight/commands}/help_command_spec.rb +1 -1
- data/spec/{commands → limelight/commands}/open_command_spec.rb +1 -1
- data/spec/{commands → limelight/commands}/pack_command_spec.rb +1 -1
- data/spec/{commands → limelight/commands}/unpack_command_spec.rb +1 -1
- data/spec/{data_spec.rb → limelight/data_spec.rb} +1 -1
- data/spec/{dsl → limelight/dsl}/prop_builder_spec.rb +1 -1
- data/spec/{dsl → limelight/dsl}/stage_builder_spec.rb +1 -1
- data/spec/{dsl → limelight/dsl}/styles_builder_spec.rb +52 -13
- data/spec/{file_chooser_spec.rb → limelight/file_chooser_spec.rb} +1 -1
- data/spec/{file_filter_spec.rb → limelight/file_filter_spec.rb} +1 -1
- data/spec/{file_loader_spec.rb → limelight/file_loader_spec.rb} +1 -1
- data/spec/{gems_spec.rb → limelight/gems_spec.rb} +10 -4
- data/spec/{java_util_spec.rb → limelight/java_util_spec.rb} +1 -1
- data/spec/{main_spec.rb → limelight/main_spec.rb} +1 -1
- data/spec/{paint_action_spec.rb → limelight/paint_action_spec.rb} +1 -1
- data/spec/{pen_spec.rb → limelight/pen_spec.rb} +1 -1
- data/spec/{producer_spec.rb → limelight/producer_spec.rb} +4 -12
- data/spec/{production_spec.rb → limelight/production_spec.rb} +32 -11
- data/spec/{prop_spec.rb → limelight/prop_spec.rb} +30 -2
- data/spec/{scene_spec.rb → limelight/scene_spec.rb} +28 -2
- data/spec/{stage_spec.rb → limelight/stage_spec.rb} +1 -1
- data/spec/{string_spec.rb → limelight/string_spec.rb} +1 -1
- data/spec/{studio_spec.rb → limelight/studio_spec.rb} +16 -1
- data/spec/{styles_spec.rb → limelight/styles_spec.rb} +1 -1
- data/spec/{templates → limelight/templates}/production_templater_spec.rb +17 -6
- data/spec/{templates → limelight/templates}/scene_templater_spec.rb +15 -4
- data/spec/{templates → limelight/templates}/templater_logger_spec.rb +1 -1
- data/spec/{templates → limelight/templates}/templater_spec.rb +1 -1
- data/spec/{theater_spec.rb → limelight/theater_spec.rb} +1 -1
- data/spec/{util → limelight/util}/downloader_spec.rb +1 -1
- data/spec/spec_helper.rb +11 -0
- metadata +62 -70
- data/lib/limelight/dsl/production_builder.rb +0 -71
- data/spec/builtin/utilities_production/spec_helper.rb +0 -4
- data/spec/commands/freeze_command_spec.rb +0 -62
- data/spec/dsl/production_builder_spec.rb +0 -46
@@ -22,9 +22,12 @@ module Limelight
|
|
22
22
|
|
23
23
|
# To create a ProductionTemplater, provide a production_path and the name of the default scene.
|
24
24
|
#
|
25
|
-
def initialize(
|
25
|
+
def initialize(options)
|
26
|
+
production_path = options[:production_path]
|
27
|
+
default_scene_name = options[:scene_path]
|
26
28
|
super(File.dirname(production_path), Templater.source_dir)
|
27
29
|
@production_path = File.basename(production_path)
|
30
|
+
@spec_path = File.join(@production_path, options[:spec_path])
|
28
31
|
@tokens = {}
|
29
32
|
@tokens[:DEFAULT_SCENE_NAME] = default_scene_name
|
30
33
|
@tokens[:PRODUCTION_NAME] = File.basename(production_path).titleized
|
@@ -37,7 +40,7 @@ module Limelight
|
|
37
40
|
file(File.join(@production_path, "production.rb"), "production/production.rb.template", @tokens)
|
38
41
|
file(File.join(@production_path, "stages.rb"), "production/stages.rb.template", @tokens)
|
39
42
|
file(File.join(@production_path, "styles.rb"), "production/styles.rb.template", @tokens)
|
40
|
-
file(File.join(@
|
43
|
+
file(File.join(@spec_path, "spec_helper.rb"), "production/spec/spec_helper.rb.template", @tokens)
|
41
44
|
end
|
42
45
|
|
43
46
|
end
|
@@ -21,11 +21,12 @@ module Limelight
|
|
21
21
|
|
22
22
|
# The scene_path should be path to a desired scene inside a production directory.
|
23
23
|
#
|
24
|
-
def initialize(
|
25
|
-
|
26
|
-
@
|
27
|
-
@
|
28
|
-
@
|
24
|
+
def initialize(options)
|
25
|
+
@production_path = options[:production_path]
|
26
|
+
@scene_path = options[:scene_path]
|
27
|
+
@spec_path = options[:spec_path]
|
28
|
+
super(@production_path, Templater.source_dir)
|
29
|
+
@scene_name = File.basename(@scene_path)
|
29
30
|
@tokens = {}
|
30
31
|
@tokens[:SCENE_NAME] = @scene_name
|
31
32
|
@tokens[:SCENE_TITLE] = @scene_name.titleized
|
@@ -37,7 +38,7 @@ module Limelight
|
|
37
38
|
file(File.join(@scene_path, "props.rb"), "scene/props.rb.template", @tokens)
|
38
39
|
file(File.join(@scene_path, "styles.rb"), "scene/styles.rb.template", @tokens)
|
39
40
|
directory(File.join(@scene_path, "players"))
|
40
|
-
file(File.join(
|
41
|
+
file(File.join(@spec_path, @scene_path, "#{@scene_name}_spec.rb"), "scene_spec/scene_spec.rb.template", @tokens)
|
41
42
|
end
|
42
43
|
|
43
44
|
end
|
@@ -18,7 +18,7 @@ module Production
|
|
18
18
|
# end
|
19
19
|
#
|
20
20
|
# # Hook #1. Called when the production is newly created, before any loading has been done.
|
21
|
-
# # This is a good place to require needed files and instantiate objects in the
|
21
|
+
# # This is a good place to require needed files and instantiate objects in the business layer.
|
22
22
|
# def production_opening
|
23
23
|
# end
|
24
24
|
#
|
@@ -2,4 +2,11 @@ require 'rubygems'
|
|
2
2
|
require 'spec'
|
3
3
|
require 'limelight/specs/spec_helper'
|
4
4
|
|
5
|
-
|
5
|
+
# Set the Gem home to the frozen gems
|
6
|
+
$PRODUCTION_PATH = File.expand_path(File.dirname(__FILE__) + "/../")
|
7
|
+
Gem.use_paths(File.join($PRODUCTION_PATH , "__resources", "gems"), Gem.default_path)
|
8
|
+
|
9
|
+
|
10
|
+
Dir.glob(File.join("__resources", "gems", "gems", "**", "lib")).each do |dir|
|
11
|
+
$: << dir
|
12
|
+
end
|
data/lib/limelight/version.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file (props.rb) defines all the props that appear in a scene when loaded. It makes use of the
|
2
5
|
# PropBuilder DSL.
|
3
6
|
#
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file, (styles.rb) inside a scene, should define any styles specific to the containing scene.
|
2
5
|
# It makes use of the StyleBuilder DSL.
|
3
6
|
#
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file (production.rb) is the first file loaded opening a production. It must define a module named 'Production'.
|
2
5
|
# The containing production will acquire all the behavior defined in this module.
|
3
6
|
# You may define serveral hooks and initialization steps here.
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file (stages.rb) is used to define the stages within your production.
|
2
5
|
#
|
3
6
|
# Below is an example statge configuration.
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file, (styles.rb) in the root directory of the production, should define any styles that are used in multiple
|
2
5
|
# scenes. It makes use of the StyleBuilder DSL.
|
3
6
|
#
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file, (styles.rb) inside a scene, should define any styles specific to the containing scene.
|
2
5
|
# It makes use of the StyleBuilder DSL.
|
3
6
|
#
|
@@ -17,5 +17,6 @@ header do
|
|
17
17
|
example_link :text => "Background Image", :on_mouse_clicked => "scene.load('background_images')"
|
18
18
|
example_link :text => "Kiosk", :on_mouse_clicked => "scene.load('kiosk')"
|
19
19
|
example_link :text => "Alerts", :on_mouse_clicked => "scene.load('alerts')"
|
20
|
+
example_link :text => "Stage Handles", :on_mouse_clicked => "scene.load('stage_handles')"
|
20
21
|
end
|
21
22
|
|
@@ -21,6 +21,14 @@ arena :vertical_alignment => :center do
|
|
21
21
|
label :text => "Rotation:"
|
22
22
|
input :players => "text_box", :text => "0", :on_focus_lost => "scene.find('logo').rotation = text.to_f"
|
23
23
|
end
|
24
|
+
setting do
|
25
|
+
label :text => "Horizontal Align:"
|
26
|
+
input :players => "combo_box", :choices => %w{left center right}, :on_value_changed => "scene.find('logo').style.horizontal_alignment = text"
|
27
|
+
end
|
28
|
+
setting do
|
29
|
+
label :text => "Vertical Align:"
|
30
|
+
input :players => "combo_box", :choices => %w{top center bottom}, :on_value_changed => "scene.find('logo').style.vertical_alignment = text"
|
31
|
+
end
|
24
32
|
end
|
25
33
|
image_area do
|
26
34
|
logo :id => "logo", :players => "image", :image => "images/logo.png"
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
__install "header.rb"
|
2
5
|
arena do
|
3
6
|
action :id => "kiosk_button", :text => "Toggle Kiosk Mode: OFF", :on_mouse_clicked => "scene.toggle_kiosk_mode"
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file, (styles.rb) inside a scene, should define any styles specific to the containing scene.
|
2
5
|
# It makes use of the StyleBuilder DSL.
|
3
6
|
#
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Sizer
|
2
|
+
|
3
|
+
def casted
|
4
|
+
@animation = animate(:updates_per_second => 1) do
|
5
|
+
refloat
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def go(x, y)
|
10
|
+
@float_x = x
|
11
|
+
@float_y = y
|
12
|
+
refloat
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def refloat
|
18
|
+
return unless @float_x
|
19
|
+
style.x = float_x
|
20
|
+
style.y = float_y
|
21
|
+
end
|
22
|
+
|
23
|
+
def float_x
|
24
|
+
return 0 if @float_x == :left
|
25
|
+
return (parent.child_area.width - area.width) / 2 if @float_x == :center
|
26
|
+
return parent.child_area.width - area.width
|
27
|
+
end
|
28
|
+
|
29
|
+
def float_y
|
30
|
+
return 0 if @float_y == :top
|
31
|
+
return (parent.child_area.height - area.height) / 2 if @float_y == :center
|
32
|
+
return parent.child_area.height - area.height
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
4
|
+
__ :styles => "sandbox"
|
5
|
+
__install "header.rb"
|
6
|
+
arena do
|
7
|
+
mover :players => "stage_mover", :text => "Mover"
|
8
|
+
spacer
|
9
|
+
sizer_links do
|
10
|
+
[:top, :center, :bottom].each do |y|
|
11
|
+
[:left, :center, :right].each do |x|
|
12
|
+
sizer_link :text => "#{x}, #{y}", :on_mouse_clicked => "scene.find('sizer').go(:#{x}, :#{y})"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
sizer :id => "sizer", :players => "stage_sizer", :text => "Sizer"
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
4
|
+
mover {
|
5
|
+
width 100
|
6
|
+
height 100
|
7
|
+
background_color "#eee"
|
8
|
+
secondary_background_color "#777"
|
9
|
+
gradient :on
|
10
|
+
gradient_angle 270
|
11
|
+
text_color :green
|
12
|
+
font_size 12
|
13
|
+
alignment :center
|
14
|
+
border_color :black
|
15
|
+
border_width 1
|
16
|
+
}
|
17
|
+
|
18
|
+
spacer {
|
19
|
+
width "100%"
|
20
|
+
height 20
|
21
|
+
}
|
22
|
+
|
23
|
+
sizer_links {
|
24
|
+
width 180
|
25
|
+
horizontal_alignment :center
|
26
|
+
}
|
27
|
+
|
28
|
+
sizer_link {
|
29
|
+
width 60
|
30
|
+
height 60
|
31
|
+
background_color "#777"
|
32
|
+
border_color :black
|
33
|
+
border_width 1
|
34
|
+
text_color :black
|
35
|
+
font_size 8
|
36
|
+
horizontal_alignment :center
|
37
|
+
vertical_alignment :center
|
38
|
+
hover {
|
39
|
+
background_color "#77f"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
sizer {
|
44
|
+
width 100
|
45
|
+
height 100
|
46
|
+
background_color "#eee"
|
47
|
+
secondary_background_color "#777"
|
48
|
+
gradient :on
|
49
|
+
gradient_angle 270
|
50
|
+
text_color :green
|
51
|
+
font_size 12
|
52
|
+
alignment :center
|
53
|
+
border_color :black
|
54
|
+
border_width 1
|
55
|
+
float :on
|
56
|
+
x :left
|
57
|
+
y :top
|
58
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
http://limelightapps.com:6980/playbills.llp
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file (production.rb) is the first file loaded opening a production. It must define a module named 'Production'.
|
2
5
|
# The containing production will acquire all the behavior defined in this module.
|
3
6
|
# You may define serveral hooks and initialization steps here.
|
@@ -1,3 +1,6 @@
|
|
1
|
+
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
|
+
|
1
4
|
# This file, (styles.rb) in the root directory of the production, should define any styles that are used in multiple
|
2
5
|
# scenes. It makes use of the StyleBuilder DSL.
|
3
6
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/scene'
|
6
6
|
require 'limelight/prop'
|
7
7
|
require 'limelight/builtin/players/button'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/prop'
|
6
6
|
require 'limelight/builtin/players/check_box'
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/scene'
|
6
6
|
require 'limelight/prop'
|
7
7
|
require 'limelight/builtin/players/combo_box'
|
@@ -1,14 +1,13 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/builtin/players/image'
|
6
6
|
require 'limelight/prop'
|
7
7
|
|
8
8
|
describe Limelight::Builtin::Players::Image do
|
9
9
|
|
10
10
|
before(:each) do
|
11
|
-
# @scene = Limelight::Scene.new(:casting_director => make_mock("caster", :fill_cast => nil))
|
12
11
|
@prop = Limelight::Prop.new
|
13
12
|
@prop.include_player(Limelight::Builtin::Players::Image)
|
14
13
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/prop'
|
6
6
|
require 'limelight/builtin/players/password_box'
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#- Copyright � 2008-2009 8th Light, Inc. All Rights Reserved.
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
3
3
|
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + "
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
|
5
5
|
require 'limelight/scene'
|
6
6
|
require 'limelight/prop'
|
7
7
|
require 'limelight/builtin/players/radio_button'
|