epall-limelight 0.5.3-java → 0.5.4-java

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -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
@@ -310,7 +310,7 @@ module Limelight
310
310
  # Invoked when the stage has lost status as the active stage. Only 1 stage my have focus at a time.
311
311
  # System hook that should NOT be called by you.
312
312
  #
313
- def deactivated(e)
313
+ def deactivated(e)
314
314
  @theater.stage_deactivated(self)
315
315
  end
316
316
 
@@ -6,7 +6,7 @@ module Limelight
6
6
  unless defined? MAJOR
7
7
  MAJOR = 0
8
8
  MINOR = 5
9
- TINY = 3
9
+ TINY = 4
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
@@ -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: epall-limelight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: java
6
6
  authors:
7
7
  - Eric Allen
@@ -328,6 +328,6 @@ rubyforge_project: limelight
328
328
  rubygems_version: 1.3.5
329
329
  signing_key:
330
330
  specification_version: 3
331
- summary: Limelight-0.5.3 - Limelight http://limelight.8thlight.com
331
+ summary: Limelight-0.5.4 - Limelight http://limelight.8thlight.com
332
332
  test_files: []
333
333