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 CHANGED
@@ -25,4 +25,4 @@ or go to URL http://www.apache.org/licenses/LICENSE-2.0).
25
25
 
26
26
  = Copyright
27
27
 
28
- bee version 0.5.0 (C) Michel Casabianca & Contributors - 2006-2008
28
+ bee version 0.5.1 (C) Michel Casabianca & Contributors - 2006-2009
data/bin/bee CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright 2006-2008 Michel Casabianca <michel.casabianca@gmail.com>
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.
@@ -7,7 +7,7 @@ goto endofruby
7
7
  goto endofruby
8
8
  #!/usr/bin/env ruby
9
9
 
10
- # Copyright 2006-2008 Michel Casabianca <michel.casabianca@gmail.com>
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 Michel Casabianca <michel.casabianca@gmail.com>
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-2008 Michel Casabianca <michel.casabianca@gmail.com>
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,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright 2006-2008 Michel Casabianca <michel.casabianca@gmail.com>
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-2008 Michel Casabianca <michel.casabianca@gmail.com>
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
- depends = ' [' + @hash[name].last.depends.join(', ') + ']' if
467
- @hash[name].last.depends and @hash[name].last.depends.length > 0
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
- attr_reader :depends
505
+ attr_accessor :depends
497
506
  # Target description.
498
507
  attr_reader :description
499
508
  # Script that run in the target.
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 Michel Casabianca <michel.casabianca@gmail.com>
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-2008 Michel Casabianca <michel.casabianca@gmail.com>
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-2008 Michel Casabianca <michel.casabianca@gmail.com>
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-2008 Michel Casabianca <michel.casabianca@gmail.com>
1
+ # Copyright 2006-2009 Michel Casabianca <michel.casabianca@gmail.com>
2
2
  # 2006 Avi Bryant
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
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.0
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: 2008-12-31 00:00:00 +01:00
12
+ date: 2009-01-20 00:00:00 +01:00
13
13
  default_executable: bee
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency