lib/vim-flavor/lockfile.rb in vim-flavor-4.0.1 vs lib/vim-flavor/lockfile.rb in vim-flavor-4.0.2
- old
+ new
@@ -3,19 +3,19 @@
module Vim
module Flavor
class LockFile
def self.load_or_new(lockfile_path)
l = new(lockfile_path)
- l.load() if File.exists?(lockfile_path)
+ l.load() if File.exist?(lockfile_path)
l
end
def self.path_from(dir_path, error)
lockfile_path = dir_path.to_lockfile_path
new_path = Pathname.new(lockfile_path).relative_path_from(Pathname.getwd())
old_path = new_path.dirname() / 'VimFlavor.lock'
- if error and FileTest.exists?(old_path)
+ if error and FileTest.exist?(old_path)
Console::error "#{old_path} is no longer used. Rename it to #{new_path}."
end
new_path.to_s
end