limelight 0.5.4-java → 0.5.5-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ module Limelight
12
12
  # Pack a limelight production into a .llp file.
13
13
  # options:
14
14
  # -h, --help Prints this usage summary.
15
+ # -n, --name Name of the generated llp file. Defaults to the production folder name.
15
16
  #
16
17
  class PackCommand < Command
17
18
 
@@ -34,9 +35,16 @@ module Limelight
34
35
 
35
36
  def process #:nodoc:
36
37
  packer = Limelight::Util::Packer.new
37
- packer.pack(@production_path)
38
+ if @llp_name
39
+ packer.pack(@production_path, @llp_name)
40
+ else
41
+ packer.pack(@production_path)
42
+ end
38
43
  end
39
44
 
45
+ def build_options(spec) #:nodoc:
46
+ spec.on("-n <llp_name>", "--name=<llp_name>", "Name of the generated llp file. Defaults to the production folder name.") { |value| @llp_name = value}
47
+ end
40
48
  end
41
49
 
42
50
  end
@@ -159,7 +159,7 @@ module Limelight
159
159
 
160
160
  # When true, the stage will remain on top of all other windows.
161
161
  #
162
- def always_on_top=(value)
162
+ def always_on_top=(value)
163
163
  @frame.always_on_top = value
164
164
  end
165
165
 
@@ -266,6 +266,7 @@ module Limelight
266
266
 
267
267
  # Invoked when the stage has been closed.
268
268
  # System hook that should NOT be called by you.
269
+ # It's not garunteed that this hook will be called when Limelight is shutting down.
269
270
  #
270
271
  def closed(e)
271
272
  @current_scene.visible = false if @current_scene
@@ -6,7 +6,7 @@ module Limelight
6
6
  unless defined? MAJOR
7
7
  MAJOR = 0
8
8
  MINOR = 5
9
- TINY = 4
9
+ TINY = 5
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
data/lib/limelight.jar CHANGED
Binary file
@@ -23,4 +23,21 @@ describe Limelight::Commands::PackCommand do
23
23
  @command.run(["production_to_pack"])
24
24
  end
25
25
 
26
+ describe "specifying the name" do
27
+ it "should use -n for the name of the llp file" do
28
+ mock_packer = mock("packer")
29
+ Limelight::Util::Packer.should_receive(:new).and_return(mock_packer)
30
+ mock_packer.should_receive(:pack).with("production_to_pack", "llp_name")
31
+
32
+ @command.run(["production_to_pack", "-n", "llp_name"])
33
+ end
34
+
35
+ it "should use --name for the name of the llp file" do
36
+ mock_packer = mock("packer")
37
+ Limelight::Util::Packer.should_receive(:new).and_return(mock_packer)
38
+ mock_packer.should_receive(:pack).with("production_to_pack", "llp_name")
39
+
40
+ @command.run(["production_to_pack", "--name=llp_name"])
41
+ end
42
+ end
26
43
  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.5.4
4
+ version: 0.5.5
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: 2009-11-01 01:00:00 -05:00
12
+ date: 2009-11-03 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -413,6 +413,6 @@ rubyforge_project: limelight
413
413
  rubygems_version: 1.3.1
414
414
  signing_key:
415
415
  specification_version: 2
416
- summary: Limelight-0.5.4 - Limelight http://limelight.8thlight.com
416
+ summary: Limelight-0.5.5 - Limelight http://limelight.8thlight.com
417
417
  test_files: []
418
418