sprout 0.7.213-mswin32 → 0.7.215-mswin32

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.

@@ -205,6 +205,8 @@ module Sprout
205
205
 
206
206
  # Create a string that represents this configured tool for shell execution
207
207
  def to_shell
208
+ return @to_shell_proc.call(self) if(!@to_shell_proc.nil?)
209
+
208
210
  result = []
209
211
  result << @prepended_args unless @prepended_args.nil?
210
212
  params.each do |param|
@@ -415,6 +417,7 @@ module Sprout
415
417
  attr_writer :value
416
418
  attr_writer :delimiter
417
419
  attr_writer :shell_name
420
+ attr_writer :to_shell_proc
418
421
 
419
422
  # Set the file_expression (blob) to append to each path
420
423
  # in order to build the prerequisites FileList.
@@ -495,7 +498,9 @@ module Sprout
495
498
  end
496
499
 
497
500
  def to_shell
498
- if(hidden_name?)
501
+ if(!@to_shell_proc.nil?)
502
+ return @to_shell_proc.call(self)
503
+ elsif(hidden_name?)
499
504
  return shell_value
500
505
  elsif(hidden_value?)
501
506
  return shell_name
@@ -626,7 +631,10 @@ module Sprout
626
631
 
627
632
  # Concrete param object for :string values
628
633
  class StringParam < TaskParam # :nodoc:
629
-
634
+
635
+ def shell_value
636
+ value.gsub(/ /, "\ ")
637
+ end
630
638
  end
631
639
 
632
640
  # Concrete param object for :symbol values
@@ -718,6 +726,8 @@ module Sprout
718
726
 
719
727
  # Returns a shell formatted string of the collection
720
728
  def to_shell
729
+ return @to_shell_proc.call(self) if(!@to_shell_proc.nil?)
730
+
721
731
  result = []
722
732
  value.each do |str|
723
733
  result << "#{shell_name}#{delimiter}#{str}"
@@ -143,8 +143,12 @@ module Sprout
143
143
  if(@home)
144
144
  return @home
145
145
  end
146
-
147
- ["HOME", "USERPROFILE"].each do |homekey|
146
+
147
+ # Original implementation:
148
+ #["HOME", "USERPROFILE"].each do |homekey|
149
+ # Change submitted by Michael Fleet (disinovate)
150
+ # Does this work for everyone on Windows?
151
+ ["USERPROFILE", "HOME"].each do |homekey|
148
152
  return @home = ENV[homekey] if ENV[homekey]
149
153
  end
150
154
 
@@ -209,8 +213,8 @@ module Sprout
209
213
  tool = clean_path(tool)
210
214
  runner = get_process_runner("#{tool} #{options}")
211
215
 
212
- result = runner.read
213
216
  error = runner.read_err
217
+ result = runner.read
214
218
 
215
219
  if(result.size > 0)
216
220
  Log.puts result
@@ -3,7 +3,7 @@ module Sprout
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 7
6
- TINY = 213
6
+ TINY = 215
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
@@ -55,9 +55,10 @@ def apply_shared_spec(s)
55
55
 
56
56
  s.add_dependency('rubyzip', '>= 0.9.1')
57
57
  s.add_dependency('archive-tar-minitar', '>= 0.5.1')
58
- s.add_dependency('rubigen', '= 1.3.3')
58
+ s.add_dependency('rubigen', '= 1.5.2')
59
59
  s.add_dependency('net-sftp')
60
60
  s.add_dependency('net-ssh')
61
+ s.add_dependency('rake')
61
62
  end
62
63
 
63
64
  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.213
4
+ version: 0.7.215
5
5
  platform: mswin32
6
6
  authors:
7
7
  - Luke Bayes
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-22 00:00:00 -07:00
12
+ date: 2009-10-07 00:00:00 -07:00
13
13
  default_executable: sprout
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - "="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.3.3
43
+ version: 1.5.2
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: net-sftp
@@ -62,6 +62,16 @@ dependencies:
62
62
  - !ruby/object:Gem::Version
63
63
  version: "0"
64
64
  version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: rake
67
+ type: :runtime
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
65
75
  - !ruby/object:Gem::Dependency
66
76
  name: win32-open3
67
77
  type: :runtime