dev 1.0.134 → 1.0.135
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/lib/dev/Tasks.rb +4 -2
- metadata +1 -1
data/lib/dev/Tasks.rb
CHANGED
@@ -21,9 +21,7 @@ CLOBBER.include('bin','obj')
|
|
21
21
|
def generate_task_hash(project)
|
22
22
|
task_hash = {
|
23
23
|
:info=> { :desc=> 'display information about the rakefile' },
|
24
|
-
:compile=> { :desc=> 'compile' },
|
25
24
|
:test=> { :desc=> 'run unit tests' },
|
26
|
-
:replace=> { :desc=> 'replace text' },
|
27
25
|
:loc=> { :desc=> 'count the lines of code' },
|
28
26
|
:setup=> { :desc=> 'setup the project environment' },
|
29
27
|
:pull=> { :desc=> 'rake working copies of dependencies' },
|
@@ -34,6 +32,10 @@ def generate_task_hash(project)
|
|
34
32
|
task_hash[:commit]={ :desc=> 'commit changes to source code management' }
|
35
33
|
task_hash[:update]={ :desc=> 'updates changes from source code management' }
|
36
34
|
end
|
35
|
+
|
36
|
+
task_hash[:compile] = { :desc=> 'compile source code' } if !project[:compile].nil?
|
37
|
+
task_hash[:replace] = { :desc=> 'replace text' } if !project[:replace].nil?
|
38
|
+
|
37
39
|
if project[:type]=="gem" || project[:type]=="ruby"
|
38
40
|
task_hash[:features] = { :desc=> 'tests cucumber features' }
|
39
41
|
end
|