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
@@ -63,7 +63,7 @@ module Google
end
while filename == nil
search_path ||= File.expand_path('.')
if File.exist?(File.join(search_path, 'client_secrets.json'))
if File.exists?(File.join(search_path, 'client_secrets.json'))
filename = File.join(search_path, 'client_secrets.json')
elsif search_path == '/' || search_path =~ /[a-zA-Z]:[\/\\]/
raise ArgumentError,