bee 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/lib/bee.rb +7 -1
  3. data/lib/bee_task_default.rb +6 -3
  4. metadata +2 -2
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.7.0 (C) Michel Casabianca & Contributors - 2006-2010
28
+ bee version 0.7.1 (C) Michel Casabianca & Contributors - 2006-2010
data/lib/bee.rb CHANGED
@@ -35,7 +35,9 @@ module Bee
35
35
  'default' => :optional,
36
36
  'description' => :optional,
37
37
  'context' => :optional,
38
- 'extends' => :optional}
38
+ 'extends' => :optional,
39
+ 'abstract' => :optional
40
+ }
39
41
 
40
42
  # Build file.
41
43
  attr_reader :file
@@ -47,6 +49,8 @@ module Bee
47
49
  attr_reader :name
48
50
  # Parent build.
49
51
  attr_reader :extends
52
+ # Abstractness.
53
+ attr_reader :abstract
50
54
  # Default target, specified with default entry or fist target in build file.
51
55
  attr_accessor :default
52
56
  # Build description.
@@ -123,6 +127,7 @@ module Bee
123
127
  working_directory = Dir.getwd
124
128
  @listener.build_started(self, dry) if @listener
125
129
  begin
130
+ error "Abstract build file, must be extended to run" if @abstract
126
131
  evaluate_properties
127
132
  if not Bee::Util::url?(@base)
128
133
  Dir.chdir(@base)
@@ -185,6 +190,7 @@ module Bee
185
190
  @targets.default = @default
186
191
  @description = entry['description']
187
192
  @extends = entry['extends']
193
+ @abstract = entry['abstract']
188
194
  # load parent build if any
189
195
  if @extends
190
196
  absolute_path = Bee::Util::absolute_path(@extends, @base)
@@ -1191,9 +1191,12 @@ EOF
1191
1191
  require 'zip/zip'
1192
1192
  params_desc = {
1193
1193
  :root => { :mandatory => false, :type => :string },
1194
- :includes => { :mandatory => true, :type => :string_or_array },
1195
- :excludes => { :mandatory => false, :type => :string_or_array, :default => nil },
1196
- :dotmatch => { :mandatory => false, :type => :boolean, :default => false },
1194
+ :includes => { :mandatory => false, :type => :string_or_array,
1195
+ :default => "**/*"},
1196
+ :excludes => { :mandatory => false, :type => :string_or_array,
1197
+ :default => nil },
1198
+ :dotmatch => { :mandatory => false, :type => :boolean,
1199
+ :default => false },
1197
1200
  :dest => { :mandatory => true, :type => :string },
1198
1201
  :prefix => { :mandatory => false, :type => :string }
1199
1202
  }
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.7.0
4
+ version: 0.7.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: 2010-02-17 00:00:00 +01:00
12
+ date: 2010-04-01 00:00:00 +02:00
13
13
  default_executable: bee
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency