sprout 0.7.167-x86-linux → 0.7.169-x86-linux

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.

@@ -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.prepare_prerequisites
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 < StringsParam # :nodoc:
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|
@@ -221,7 +221,10 @@ module Sprout
221
221
 
222
222
  def clean_path(path)
223
223
  if(path.index(' '))
224
- return %{'#{path}'}
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
@@ -2,7 +2,7 @@ module Sprout
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 167
5
+ TINY = 169
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -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', '>= 0.0.0')
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.167
4
+ version: 0.7.169
5
5
  platform: x86-linux
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-24 00:00:00 -08:00
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.0.0
49
+ version: "0"
50
50
  version:
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: open4