bee 0.5.0 → 0.5.1
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.
- data/README +1 -1
- data/bin/bee +1 -1
- data/bin/bee.bat +1 -1
- data/egg/package/test_build.rb +1 -1
- data/egg/package/test_build_listener.rb +1 -1
- data/egg/package/test_suite.rb +1 -1
- data/lib/bee.rb +13 -4
- data/lib/bee_console.rb +1 -1
- data/lib/bee_task.rb +1 -1
- data/lib/bee_task_default.rb +1 -1
- data/lib/bee_util.rb +1 -1
- metadata +2 -2
data/README
CHANGED
data/bin/bee
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright 2006-
|
3
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
data/bin/bee.bat
CHANGED
@@ -7,7 +7,7 @@ goto endofruby
|
|
7
7
|
goto endofruby
|
8
8
|
#!/usr/bin/env ruby
|
9
9
|
|
10
|
-
# Copyright 2006-
|
10
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
11
11
|
#
|
12
12
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
13
13
|
# you may not use this file except in compliance with the License.
|
data/egg/package/test_build.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
data/egg/package/test_suite.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright 2006-
|
3
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
data/lib/bee.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -415,6 +415,12 @@ module Bee
|
|
415
415
|
@hash[name] = parent.hash[name]
|
416
416
|
end
|
417
417
|
end
|
418
|
+
# remove dependencies of the parent
|
419
|
+
for targets in parent.hash.values
|
420
|
+
for target in targets
|
421
|
+
target.depends.clear
|
422
|
+
end
|
423
|
+
end
|
418
424
|
# set default default target to parent one if none was set
|
419
425
|
@default = @default || parent.default
|
420
426
|
end
|
@@ -463,8 +469,11 @@ module Bee
|
|
463
469
|
description = {}
|
464
470
|
for name in @hash.keys
|
465
471
|
text = @hash[name].last.description
|
466
|
-
|
467
|
-
|
472
|
+
if @hash[name].last.depends and @hash[name].last.depends.length > 0
|
473
|
+
depends = ' [' + @hash[name].last.depends.join(', ') + ']'
|
474
|
+
else
|
475
|
+
depends = nil
|
476
|
+
end
|
468
477
|
description[name] = (text ? text : '') + (depends ? depends : '')
|
469
478
|
end
|
470
479
|
return description
|
@@ -493,7 +502,7 @@ module Bee
|
|
493
502
|
# Name of the target.
|
494
503
|
attr_reader :name
|
495
504
|
# Target dependencies.
|
496
|
-
|
505
|
+
attr_accessor :depends
|
497
506
|
# Target description.
|
498
507
|
attr_reader :description
|
499
508
|
# Script that run in the target.
|
data/lib/bee_console.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
data/lib/bee_task.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
data/lib/bee_task_default.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2006-
|
1
|
+
# Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
data/lib/bee_util.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Casabianca & Contributors
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-20 00:00:00 +01:00
|
13
13
|
default_executable: bee
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|