lib/spandx/database.rb in spandx-0.1.7 vs lib/spandx/database.rb in spandx-0.2.0
- old
+ new
@@ -12,10 +12,11 @@
def update!
dotgit? ? pull! : clone!
end
def read(file)
- IO.read(File.join(path, file))
+ full_path = File.join(path, file)
+ IO.read(full_path) if File.exist?(full_path)
end
private
def path_for(url)