sprout 0.7.235-mswin32 → 0.7.236-mswin32
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 +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