sprout 0.7.235 → 0.7.236
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 +2 -1
- data/lib/sprout/version.rb +1 -1
- metadata +1 -1
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(
|
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
|
data/lib/sprout/version.rb
CHANGED