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.
Files changed (113) hide show
  1. data/lib/limelight.jar +0 -0
  2. data/lib/limelight/animation.rb +4 -3
  3. data/lib/limelight/builtin/players.rb +3 -1
  4. data/lib/limelight/builtin/players/image.rb +4 -0
  5. data/lib/limelight/builtin/players/stage_mover.rb +31 -0
  6. data/lib/limelight/builtin/players/stage_sizer.rb +34 -0
  7. data/lib/limelight/builtin/utilities_production/alert/players/alert.rb +11 -0
  8. data/lib/limelight/builtin/utilities_production/alert/props.rb +3 -0
  9. data/lib/limelight/builtin/utilities_production/alert/styles.rb +7 -0
  10. data/lib/limelight/builtin/utilities_production/incompatible_version/props.rb +3 -0
  11. data/lib/limelight/builtin/utilities_production/incompatible_version/styles.rb +3 -0
  12. data/lib/limelight/builtin/utilities_production/production.rb +3 -0
  13. data/lib/limelight/builtin/utilities_production/stages.rb +3 -0
  14. data/lib/limelight/builtin/utilities_production/styles.rb +3 -0
  15. data/lib/limelight/casting_director.rb +1 -1
  16. data/lib/limelight/commands/create_command.rb +33 -19
  17. data/lib/limelight/commands/freeze_command.rb +20 -5
  18. data/lib/limelight/commands/open_command.rb +2 -1
  19. data/lib/limelight/dsl/styles_builder.rb +40 -18
  20. data/lib/limelight/file_loader.rb +1 -1
  21. data/lib/limelight/gems.rb +3 -1
  22. data/lib/limelight/java_couplings.rb +1 -0
  23. data/lib/limelight/producer.rb +4 -47
  24. data/lib/limelight/production.rb +20 -0
  25. data/lib/limelight/prop.rb +32 -32
  26. data/lib/limelight/scene.rb +2 -1
  27. data/lib/limelight/specs/spec_helper.rb +24 -22
  28. data/lib/limelight/specs/test_scene_opener.rb +60 -0
  29. data/lib/limelight/string.rb +1 -1
  30. data/lib/limelight/studio.rb +28 -9
  31. data/lib/limelight/templates/production_templater.rb +5 -2
  32. data/lib/limelight/templates/scene_templater.rb +7 -6
  33. data/lib/limelight/templates/sources/production/production.rb.template +1 -1
  34. data/lib/limelight/templates/sources/production/spec/spec_helper.rb.template +8 -1
  35. data/lib/limelight/version.rb +1 -1
  36. data/productions/examples/sandbox/alerts/incompatible_production/default_scene/props.rb +3 -0
  37. data/productions/examples/sandbox/alerts/incompatible_production/default_scene/styles.rb +3 -0
  38. data/productions/examples/sandbox/alerts/incompatible_production/production.rb +3 -0
  39. data/productions/examples/sandbox/alerts/incompatible_production/spec/default_scene/default_scene_spec.rb +3 -0
  40. data/productions/examples/sandbox/alerts/incompatible_production/spec/spec_helper.rb +3 -0
  41. data/productions/examples/sandbox/alerts/incompatible_production/stages.rb +3 -0
  42. data/productions/examples/sandbox/alerts/incompatible_production/styles.rb +3 -0
  43. data/productions/examples/sandbox/alerts/players/alerts.rb +3 -0
  44. data/productions/examples/sandbox/alerts/props.rb +3 -0
  45. data/productions/examples/sandbox/alerts/styles.rb +3 -0
  46. data/productions/examples/sandbox/background_images/props.rb +3 -0
  47. data/productions/examples/sandbox/header.rb +1 -0
  48. data/productions/examples/sandbox/images_scene/props.rb +8 -0
  49. data/productions/examples/sandbox/kiosk/players/kiosk.rb +3 -0
  50. data/productions/examples/sandbox/kiosk/props.rb +3 -0
  51. data/productions/examples/sandbox/kiosk/styles.rb +3 -0
  52. data/productions/examples/sandbox/spec/alerts/alerts_spec.rb +3 -0
  53. data/productions/examples/sandbox/stage_handles/players/sizer.rb +35 -0
  54. data/productions/examples/sandbox/stage_handles/props.rb +17 -0
  55. data/productions/examples/sandbox/stage_handles/styles.rb +58 -0
  56. data/productions/playbills.lll +1 -0
  57. data/productions/startup/production.rb +3 -0
  58. data/productions/startup/spec/default_scene/default_scene_spec.rb +3 -0
  59. data/productions/startup/spec/spec_helper.rb +3 -0
  60. data/productions/startup/styles.rb +3 -0
  61. data/spec/{builtin → limelight/builtin}/players/button_spec.rb +1 -1
  62. data/spec/{builtin → limelight/builtin}/players/check_box_spec.rb +1 -1
  63. data/spec/{builtin → limelight/builtin}/players/combo_box_spec.rb +1 -1
  64. data/spec/{builtin → limelight/builtin}/players/image_spec.rb +1 -2
  65. data/spec/{builtin → limelight/builtin}/players/password_box_spec.rb +1 -1
  66. data/spec/{builtin → limelight/builtin}/players/radio_button_spec.rb +1 -1
  67. data/spec/limelight/builtin/players/stage_mover_spec.rb +36 -0
  68. data/spec/limelight/builtin/players/stage_sizer_spec.rb +40 -0
  69. data/spec/{builtin → limelight/builtin}/players/text_area_spec.rb +1 -1
  70. data/spec/{builtin → limelight/builtin}/players/text_box_spec.rb +1 -1
  71. data/spec/limelight/builtin/utilities_production/spec_helper.rb +7 -0
  72. data/spec/{builtin → limelight/builtin}/utilities_production/utilities_production_spec.rb +3 -0
  73. data/spec/{casting_director_spec.rb → limelight/casting_director_spec.rb} +1 -1
  74. data/spec/{client → limelight/client}/playbills_spec.rb +1 -1
  75. data/spec/{commands → limelight/commands}/command_spec.rb +1 -1
  76. data/spec/{commands → limelight/commands}/create_command_spec.rb +23 -19
  77. data/spec/limelight/commands/freeze_command_spec.rb +143 -0
  78. data/spec/{commands → limelight/commands}/help_command_spec.rb +1 -1
  79. data/spec/{commands → limelight/commands}/open_command_spec.rb +1 -1
  80. data/spec/{commands → limelight/commands}/pack_command_spec.rb +1 -1
  81. data/spec/{commands → limelight/commands}/unpack_command_spec.rb +1 -1
  82. data/spec/{data_spec.rb → limelight/data_spec.rb} +1 -1
  83. data/spec/{dsl → limelight/dsl}/prop_builder_spec.rb +1 -1
  84. data/spec/{dsl → limelight/dsl}/stage_builder_spec.rb +1 -1
  85. data/spec/{dsl → limelight/dsl}/styles_builder_spec.rb +52 -13
  86. data/spec/{file_chooser_spec.rb → limelight/file_chooser_spec.rb} +1 -1
  87. data/spec/{file_filter_spec.rb → limelight/file_filter_spec.rb} +1 -1
  88. data/spec/{file_loader_spec.rb → limelight/file_loader_spec.rb} +1 -1
  89. data/spec/{gems_spec.rb → limelight/gems_spec.rb} +10 -4
  90. data/spec/{java_util_spec.rb → limelight/java_util_spec.rb} +1 -1
  91. data/spec/{main_spec.rb → limelight/main_spec.rb} +1 -1
  92. data/spec/{paint_action_spec.rb → limelight/paint_action_spec.rb} +1 -1
  93. data/spec/{pen_spec.rb → limelight/pen_spec.rb} +1 -1
  94. data/spec/{producer_spec.rb → limelight/producer_spec.rb} +4 -12
  95. data/spec/{production_spec.rb → limelight/production_spec.rb} +32 -11
  96. data/spec/{prop_spec.rb → limelight/prop_spec.rb} +30 -2
  97. data/spec/{scene_spec.rb → limelight/scene_spec.rb} +28 -2
  98. data/spec/{stage_spec.rb → limelight/stage_spec.rb} +1 -1
  99. data/spec/{string_spec.rb → limelight/string_spec.rb} +1 -1
  100. data/spec/{studio_spec.rb → limelight/studio_spec.rb} +16 -1
  101. data/spec/{styles_spec.rb → limelight/styles_spec.rb} +1 -1
  102. data/spec/{templates → limelight/templates}/production_templater_spec.rb +17 -6
  103. data/spec/{templates → limelight/templates}/scene_templater_spec.rb +15 -4
  104. data/spec/{templates → limelight/templates}/templater_logger_spec.rb +1 -1
  105. data/spec/{templates → limelight/templates}/templater_spec.rb +1 -1
  106. data/spec/{theater_spec.rb → limelight/theater_spec.rb} +1 -1
  107. data/spec/{util → limelight/util}/downloader_spec.rb +1 -1
  108. data/spec/spec_helper.rb +11 -0
  109. metadata +62 -70
  110. data/lib/limelight/dsl/production_builder.rb +0 -71
  111. data/spec/builtin/utilities_production/spec_helper.rb +0 -4
  112. data/spec/commands/freeze_command_spec.rb +0 -62
  113. 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(production_path, default_scene_name)
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(@production_path, "spec", "spec_helper.rb"), "production/spec/spec_helper.rb.template", @tokens)
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(production_path, scene_path)
25
- super(production_path, Templater.source_dir)
26
- @production_path = production_path
27
- @scene_path = scene_path
28
- @scene_name = File.basename(scene_path)
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("spec", @scene_path, "#{@scene_name}_spec.rb"), "scene_spec/scene_spec.rb.template", @tokens)
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 busines layer.
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
- $PRODUCTION_PATH = File.expand_path(File.dirname(__FILE__) + "/../")
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
@@ -5,7 +5,7 @@ module Limelight
5
5
  module VERSION #:nodoc:
6
6
  unless defined? MAJOR
7
7
  MAJOR = 0
8
- MINOR = 4
8
+ MINOR = 5
9
9
  TINY = 0
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
@@ -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
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
5
 
3
6
  describe "Default Scene" do
@@ -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
  require 'rubygems'
2
5
  require 'spec'
3
6
  require 'limelight/specs/spec_helper'
@@ -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
  module Alerts
2
5
 
3
6
  prop_reader :message_input
@@ -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
  label :text => "Alert Message:"
@@ -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
  __ :name => "sandbox"
2
5
  __install "header.rb"
3
6
  arena :vertical_alignment => :center do
@@ -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
  module Kiosk
2
5
 
3
6
  prop_reader :kiosk_button, :fullscreen_button
@@ -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
  #
@@ -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
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
5
 
3
6
  describe "Alerts" do
@@ -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
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
5
 
3
6
  describe "Default Scene" do
@@ -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
  require 'rubygems'
2
5
  require 'spec'
3
6
  require 'limelight/specs/spec_helper'
@@ -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__) + "/../../spec_helper")
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__) + "/../../spec_helper")
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__) + "/../../spec_helper")
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__) + "/../../spec_helper")
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__) + "/../../spec_helper")
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__) + "/../../spec_helper")
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'