sprout 0.7.235-x86-darwin-10 → 0.7.236-x86-darwin-10

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.

Files changed (3) hide show
  1. data/lib/sprout/version.rb +1 -1
  2. data/lib/sprout.rb +2 -1
  3. metadata +1 -1
@@ -3,7 +3,7 @@ module Sprout
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 7
6
- TINY = 235
6
+ TINY = 236
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
data/lib/sprout.rb CHANGED
@@ -474,13 +474,14 @@ EOF
474
474
 
475
475
  def self.get_implicit_project_path(path)
476
476
  # We have recursed to the root of the filesystem, return nil
477
- if(path.nil? || path == '/' || path.match(/[A-Z]\:\//))
477
+ if(path.nil? || File.dirname(path) == path || path == '/' || path.match(/^\w\:\/$/))
478
478
  return Dir.pwd
479
479
  end
480
480
  # Look for a rakefile as a child of the current path
481
481
  if(child_rakefile(path))
482
482
  return path
483
483
  end
484
+
484
485
  # No rakefile and no root found, check in parent dir
485
486
  return Sprout.get_implicit_project_path(File.dirname(path))
486
487
  end
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.235
4
+ version: 0.7.236
5
5
  platform: x86-darwin-10
6
6
  authors:
7
7
  - Luke Bayes