sprout 0.5.25 → 0.5.29
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/sprout.rb +5 -0
- data/lib/sprout/version.rb +1 -1
- data/lib/user.rb +4 -4
- data/rakefile.rb +8 -1
- metadata +2 -2
data/lib/sprout.rb
CHANGED
data/lib/sprout/version.rb
CHANGED
data/lib/user.rb
CHANGED
@@ -120,7 +120,7 @@ module PatternPark
|
|
120
120
|
def get_exe_path(executable)
|
121
121
|
paths = get_paths
|
122
122
|
paths.each do |path|
|
123
|
-
|
123
|
+
if(File.exists?(File.join(path, executable)))
|
124
124
|
return File.join(path, executable)
|
125
125
|
end
|
126
126
|
end
|
@@ -158,7 +158,7 @@ module PatternPark
|
|
158
158
|
if(tool.executable)
|
159
159
|
target = get_exe_path(tool.executable)
|
160
160
|
else
|
161
|
-
|
161
|
+
target = tool.archive_path
|
162
162
|
end
|
163
163
|
Log.puts(">> Execute: #{File.basename(target)} #{options}")
|
164
164
|
runner = get_process_runner("#{clean_path(target)} #{options}")
|
@@ -246,7 +246,7 @@ module PatternPark
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def clean_path(path)
|
249
|
-
path = path.split('/').join(
|
249
|
+
path = path.split('/').join("\\")
|
250
250
|
if(path.index(' '))
|
251
251
|
return %{"#{path}"}
|
252
252
|
end
|
@@ -289,7 +289,7 @@ module PatternPark
|
|
289
289
|
path = parts.shift().downcase + "/" + parts.join("/")
|
290
290
|
@home = "/cygdrive/" + path
|
291
291
|
end
|
292
|
-
|
292
|
+
return @home
|
293
293
|
end
|
294
294
|
|
295
295
|
end
|
data/rakefile.rb
CHANGED
@@ -64,7 +64,14 @@ spec = Gem::Specification.new do |s|
|
|
64
64
|
s.add_dependency('rake', '>= 0.7.1')
|
65
65
|
s.add_dependency('rubyzip', '>= 0.9.1')
|
66
66
|
s.add_dependency('archive-tar-minitar', '>= 0.5.1')
|
67
|
-
|
67
|
+
|
68
|
+
if(RUBY_PLATFORM =~ /vista/i ||
|
69
|
+
RUBY_PLATFORM =~ /mswin/i ||
|
70
|
+
RUBY_PLATFORM =~ /cygwin/i ||
|
71
|
+
RUBY_PLATFORM =~ /mingw/i)
|
72
|
+
s.add_dependency('win32-open3', '>= 0.2.5')
|
73
|
+
end
|
74
|
+
|
68
75
|
s.rdoc_options << '--exclude' << '.'
|
69
76
|
s.has_rdoc = false
|
70
77
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: sprout
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.5.29
|
7
|
+
date: 2007-10-13 00:00:00 -07:00
|
8
8
|
summary: "Sprouts is an open-source, cross-platform project generation and configuration
|
9
9
|
tool."
|
10
10
|
require_paths:
|