sprout 0.7.165 → 0.7.167
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout.rb +1 -1
- data/lib/sprout/project_model.rb +3 -0
- data/lib/sprout/tasks/tool_task.rb +4 -3
- data/lib/sprout/version.rb +1 -1
- metadata +2 -2
data/lib/sprout.rb
CHANGED
data/lib/sprout/project_model.rb
CHANGED
@@ -44,6 +44,8 @@ module Sprout
|
|
44
44
|
# The relative path to the directory where swc files should be kept.
|
45
45
|
# This value defaults to lib_dir
|
46
46
|
attr_accessor :swc_dir
|
47
|
+
# Directory where documentation should be placed.
|
48
|
+
attr_accessor :doc_dir
|
47
49
|
# Relative path to the folder that contains your test cases
|
48
50
|
attr_accessor :test_dir
|
49
51
|
# The test executable
|
@@ -71,6 +73,7 @@ module Sprout
|
|
71
73
|
def initialize
|
72
74
|
super
|
73
75
|
@project_name = ''
|
76
|
+
@doc_dir = 'doc'
|
74
77
|
@src_dir = 'src'
|
75
78
|
@lib_dir = 'lib'
|
76
79
|
@swc_dir = 'lib'
|
@@ -194,7 +194,7 @@ module Sprout
|
|
194
194
|
|
195
195
|
# First ensure the named accessor doesn't yet exist...
|
196
196
|
if(param_hash[name])
|
197
|
-
raise
|
197
|
+
raise ToolTaskError.new("TaskBase.add_param called with existing parameter name: #{name}")
|
198
198
|
end
|
199
199
|
|
200
200
|
param = create_param(type)
|
@@ -221,7 +221,7 @@ module Sprout
|
|
221
221
|
if(param_hash.has_key? other_param.to_s)
|
222
222
|
param_hash[name.to_s] = param_hash[other_param.to_s]
|
223
223
|
else
|
224
|
-
raise
|
224
|
+
raise ToolTaskError.new("TaskBase.add_param_alis called with")
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
@@ -345,7 +345,7 @@ module Sprout
|
|
345
345
|
|
346
346
|
def validate
|
347
347
|
if(required? && !visible?)
|
348
|
-
raise
|
348
|
+
raise ToolTaskError.new("#{name} is required and must not be nil")
|
349
349
|
end
|
350
350
|
end
|
351
351
|
|
@@ -426,6 +426,7 @@ module Sprout
|
|
426
426
|
end
|
427
427
|
|
428
428
|
# Concrete param object for :symbol values
|
429
|
+
# like class names
|
429
430
|
class SymbolParam < TaskParam # :nodoc:
|
430
431
|
end
|
431
432
|
|
data/lib/sprout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.167
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-24 00:00:00 -08:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|