limelight 0.2.0-java → 0.2.1-java

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.
Files changed (51) hide show
  1. data/bin/limelight +2 -3
  2. data/lib/limelight.jar +0 -0
  3. data/lib/limelight/animation.rb +32 -12
  4. data/lib/limelight/build_exception.rb +3 -0
  5. data/lib/limelight/builtin/players/button.rb +17 -2
  6. data/lib/limelight/builtin/players/check_box.rb +21 -2
  7. data/lib/limelight/builtin/players/combo_box.rb +31 -3
  8. data/lib/limelight/builtin/players/combo_box_popup_list.rb +1 -1
  9. data/lib/limelight/builtin/players/combo_box_popup_list_item.rb +1 -1
  10. data/lib/limelight/builtin/players/curtains.rb +1 -1
  11. data/lib/limelight/builtin/players/radio_button.rb +27 -3
  12. data/lib/limelight/builtin/players/text_area.rb +11 -2
  13. data/lib/limelight/builtin/players/text_box.rb +11 -2
  14. data/lib/limelight/button_group_cache.rb +2 -2
  15. data/lib/limelight/casting_director.rb +6 -1
  16. data/lib/limelight/commands.rb +10 -24
  17. data/lib/limelight/file_chooser.rb +16 -3
  18. data/lib/limelight/file_filter.rb +10 -3
  19. data/lib/limelight/java_couplings.rb +11 -10
  20. data/lib/limelight/java_util.rb +36 -3
  21. data/lib/limelight/limelight_exception.rb +3 -1
  22. data/lib/limelight/loaders/file_scene_loader.rb +1 -1
  23. data/lib/limelight/main.rb +108 -0
  24. data/lib/limelight/menu_bar.rb +31 -12
  25. data/lib/limelight/paint_action.rb +4 -2
  26. data/lib/limelight/pen.rb +39 -9
  27. data/lib/limelight/producer.rb +35 -7
  28. data/lib/limelight/production.rb +18 -9
  29. data/lib/limelight/production_builder.rb +22 -5
  30. data/lib/limelight/prop.rb +127 -45
  31. data/lib/limelight/prop_builder.rb +70 -11
  32. data/lib/limelight/scene.rb +25 -21
  33. data/lib/limelight/stage.rb +68 -18
  34. data/lib/limelight/stage_builder.rb +68 -27
  35. data/lib/limelight/styles.rb +327 -30
  36. data/lib/limelight/styles_builder.rb +91 -21
  37. data/lib/limelight/theater.rb +23 -11
  38. data/lib/limelight/util.rb +28 -6
  39. data/lib/limelight/version.rb +1 -1
  40. data/productions/startup/players/browse_button.rb +1 -1
  41. data/spec/builtin/players/check_box_spec.rb +1 -1
  42. data/spec/builtin/players/radio_button_spec.rb +2 -2
  43. data/spec/builtin/players/text_area_spec.rb +1 -1
  44. data/spec/builtin/players/text_box_spec.rb +1 -1
  45. data/spec/commands_spec.rb +4 -3
  46. data/spec/prop_builder_spec.rb +40 -29
  47. data/spec/prop_spec.rb +5 -1
  48. data/spec/stage_spec.rb +15 -15
  49. data/spec/styles_spec.rb +36 -0
  50. data/spec/theater_spec.rb +8 -8
  51. metadata +6 -3
@@ -0,0 +1,36 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/spec_helper")
2
+ require 'limelight/styles'
3
+
4
+ describe Limelight::Styles do
5
+
6
+ def const_format(name)
7
+ return name.gsub(" ", "")
8
+ end
9
+
10
+ def method_format(name)
11
+ return name.downcase.gsub(" ", "_")
12
+ end
13
+
14
+ it "should have all the styles" do
15
+ Limelight::Styles::Style::STYLE_LIST.each do |descriptor|
16
+ const_name = const_format(descriptor.name)
17
+ Limelight::Styles.const_get(const_name)
18
+ end
19
+ end
20
+
21
+ # it "should generate code" do
22
+ # Limelight::Styles::Style::STYLE_LIST.each do |descriptor|
23
+ # const_name = const_format(descriptor.name)
24
+ # method_name = method_format(descriptor.name)
25
+ # spaces = 40 - const_name.length
26
+ # puts "# Specifies the #{descriptor.name} of a prop."
27
+ # puts "#"
28
+ # puts "# style.#{method_name} = <value>"
29
+ # puts "#"
30
+ # puts "#{const_name} #{'' * spaces} = Limelight::Styles::Style::STYLE_LIST.get(#{descriptor.index})"
31
+ # puts ""
32
+ # end
33
+ # end
34
+
35
+
36
+ end
data/spec/theater_spec.rb CHANGED
@@ -9,14 +9,14 @@ describe Limelight::Theater do
9
9
 
10
10
  before(:each) do
11
11
  @theater = Limelight::Theater.new
12
- @stage = Limelight::Stage.new(@theater, "default")
12
+ @__stage__ = Limelight::Stage.new(@theater, "default")
13
13
  end
14
14
 
15
15
  it "should allow adding of stages" do
16
- @theater.add_stage(@stage)
16
+ @theater.add_stage(@__stage__)
17
17
 
18
18
  @theater.stages.length.should == 1
19
- @theater.stages[0].should == @stage
19
+ @theater.stages[0].should == @__stage__
20
20
  end
21
21
 
22
22
  it "should not return the actual_list of stages" do
@@ -26,24 +26,24 @@ describe Limelight::Theater do
26
26
  it "should know it's active stage" do
27
27
  stage2 = Limelight::Stage.new(@theater, "two")
28
28
 
29
- @theater.add_stage(@stage)
29
+ @theater.add_stage(@__stage__)
30
30
  @theater.add_stage(stage2)
31
31
 
32
32
  @theater.active_stage.should == nil
33
33
  @theater.stage_activated(stage2)
34
34
  @theater.active_stage.should == stage2
35
- @theater.stage_activated(@stage)
36
- @theater.active_stage.should == @stage
35
+ @theater.stage_activated(@__stage__)
36
+ @theater.active_stage.should == @__stage__
37
37
  end
38
38
 
39
39
  it "should allow recalling stage by name" do
40
40
  stage2 = Limelight::Stage.new(@theater, "two")
41
41
  stage3 = Limelight::Stage.new(@theater, "three")
42
- @theater.add_stage(@stage)
42
+ @theater.add_stage(@__stage__)
43
43
  @theater.add_stage(stage2)
44
44
  @theater.add_stage(stage3)
45
45
 
46
- @theater["default"].should == @stage
46
+ @theater["default"].should == @__stage__
47
47
  @theater["two"].should == stage2
48
48
  @theater["three"].should == stage3
49
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limelight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: java
6
6
  authors:
7
7
  - Micah Martin, 8th Light
@@ -9,7 +9,7 @@ autorequire: init
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-11 00:00:00 -05:00
12
+ date: 2008-09-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -45,6 +45,7 @@ files:
45
45
  - lib/limelight/java_util.rb
46
46
  - lib/limelight/limelight_exception.rb
47
47
  - lib/limelight/loaders/file_scene_loader.rb
48
+ - lib/limelight/main.rb
48
49
  - lib/limelight/menu_bar.rb
49
50
  - lib/limelight/paint_action.rb
50
51
  - lib/limelight/pen.rb
@@ -86,6 +87,7 @@ files:
86
87
  - spec/stage_builder_spec.rb
87
88
  - spec/stage_spec.rb
88
89
  - spec/styles_builder_spec.rb
90
+ - spec/styles_spec.rb
89
91
  - spec/theater_spec.rb
90
92
  - productions/examples
91
93
  - productions/examples/8thlight.com
@@ -280,7 +282,7 @@ rubyforge_project: limelight
280
282
  rubygems_version: 1.2.0
281
283
  signing_key:
282
284
  specification_version: 2
283
- summary: Limelight-0.2.0 - Limelight http://limelight.8thlight.com
285
+ summary: Limelight-0.2.1 - Limelight http://limelight.8thlight.com
284
286
  test_files:
285
287
  - spec/casting_director_spec.rb
286
288
  - spec/commands_spec.rb
@@ -298,4 +300,5 @@ test_files:
298
300
  - spec/stage_builder_spec.rb
299
301
  - spec/stage_spec.rb
300
302
  - spec/styles_builder_spec.rb
303
+ - spec/styles_spec.rb
301
304
  - spec/theater_spec.rb