Replace deprecated method that cause ruby warnings File.exit?
This commit is contained in:
1 parent
27df982625
commit
e313235b55
4 files changed
+4
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user