sprout 0.5.25 → 0.5.29

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.rb CHANGED
@@ -9,6 +9,11 @@ require 'uri'
9
9
  require 'fileutils'
10
10
  require 'zip/zipfilesystem'
11
11
  require 'archive/tar/minitar'
12
+ require 'platform'
13
+
14
+ if(Platform::OS == :win32)
15
+ require 'win32/open3'
16
+ end
12
17
 
13
18
  module PatternPark
14
19
  class SproutError < StandardError; end
@@ -2,7 +2,7 @@ module Sprout #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 26
5
+ TINY = 30
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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
- if(File.exists?(File.join(path, executable)))
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
- target = tool.archive_path
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(File::SEPARATOR)
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
- return @home
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
- # s.add_dependency('win32-open3', '>= 0.2.5')
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.25
7
- date: 2007-07-07 00:00:00 -07:00
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: