lib/gator/util.rb in gator-0.0.9.pre vs lib/gator/util.rb in gator-0.0.10.pre
- old
+ new
@@ -47,10 +47,10 @@
def self.find_gator_project_file(path= Dir.getwd)
gatorfile = nil
Pathname.new(path).ascend do |dir|
gatorfile = gator_files_for(dir).map { |g| Dir[g] }.flatten.first
- break unless gatorfile.nil?
+ break unless gatorfile.nil? || File.directory?(gatorfile)
end
gatorfile
end
def self.find_gator_project(path= Dir.getwd)
\ No newline at end of file