sprout 0.7.167 → 0.7.169
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/tasks/tool_task.rb +19 -3
- data/lib/sprout/user.rb +4 -1
- data/lib/sprout/version.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +3 -3
@@ -136,7 +136,7 @@ module Sprout
|
|
136
136
|
def prepare
|
137
137
|
# Get each added param to inject prerequisites as necessary
|
138
138
|
params.each do |param|
|
139
|
-
param.
|
139
|
+
param.prepare
|
140
140
|
end
|
141
141
|
# Ensure there are no duplicates in the prerequisite collection
|
142
142
|
@prerequisites = prerequisites.uniq
|
@@ -349,6 +349,10 @@ module Sprout
|
|
349
349
|
end
|
350
350
|
end
|
351
351
|
|
352
|
+
def prepare
|
353
|
+
prepare_prerequisites
|
354
|
+
end
|
355
|
+
|
352
356
|
def prepare_prerequisites
|
353
357
|
end
|
354
358
|
|
@@ -513,6 +517,17 @@ module Sprout
|
|
513
517
|
# Concrete param object for collections of files
|
514
518
|
class FilesParam < StringsParam # :nodoc:
|
515
519
|
|
520
|
+
def prepare
|
521
|
+
super
|
522
|
+
usr = User.new
|
523
|
+
path = nil
|
524
|
+
value.each_index do |index|
|
525
|
+
path = value[index]
|
526
|
+
value[index] = usr.clean_path path
|
527
|
+
# p = usr.clean_path p
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
516
531
|
def prepare_prerequisites
|
517
532
|
value.each do |f|
|
518
533
|
file f
|
@@ -522,9 +537,10 @@ module Sprout
|
|
522
537
|
end
|
523
538
|
|
524
539
|
# Concrete param object for collections of paths
|
525
|
-
class PathsParam <
|
526
|
-
|
540
|
+
class PathsParam < FilesParam # :nodoc:
|
541
|
+
|
527
542
|
def prepare_prerequisites
|
543
|
+
usr = User.new
|
528
544
|
value.each do |f|
|
529
545
|
files = FileList[f + file_expression]
|
530
546
|
files.each do |req_file|
|
data/lib/sprout/user.rb
CHANGED
@@ -221,7 +221,10 @@ module Sprout
|
|
221
221
|
|
222
222
|
def clean_path(path)
|
223
223
|
if(path.index(' '))
|
224
|
-
|
224
|
+
# Changed 2/26/2008 in attempt to support
|
225
|
+
# ToolTask.PathsParam s that have spaces in the values
|
226
|
+
return path.split(' ').join('\ ')
|
227
|
+
# return %{'#{path}'}
|
225
228
|
end
|
226
229
|
return path
|
227
230
|
end
|
data/lib/sprout/version.rb
CHANGED
data/rakefile.rb
CHANGED
@@ -56,7 +56,7 @@ def apply_shared_spec(s)
|
|
56
56
|
s.add_dependency('rubyzip', '>= 0.9.1')
|
57
57
|
s.add_dependency('archive-tar-minitar', '>= 0.5.1')
|
58
58
|
s.add_dependency('rails', '>= 2.0.2') # Shared generator implementation
|
59
|
-
s.add_dependency('net-sftp'
|
59
|
+
s.add_dependency('net-sftp')
|
60
60
|
end
|
61
61
|
|
62
62
|
osx_spec = Gem::Specification.new do |s|
|
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.169
|
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-
|
12
|
+
date: 2008-03-04 00:00:00 -08:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0
|
49
|
+
version: "0"
|
50
50
|
version:
|
51
51
|
description: Sprouts take the tedium and frustration out of creating new programming projects by automatically installing and configuring external tools, libraries, commands and build tasks.
|
52
52
|
email: projectsprouts@googlegroups.com
|