Replace deprecated method that cause ruby warnings File.exit?

This commit is contained in:
Abdelkader Boudih committed 2014-10-08 12:02:36 +00:00
1 parent 27df982625
commit e313235b55
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ module Google
##
# Attempt to read in credentials from the specified file.
def load_credentials
if File.exist? self.path
if File.exists? self.path
File.open(self.path, 'r') do |file|
cached_credentials = JSON.load(file)
@authorization = Signet::OAuth2::Client.new(cached_credentials)