google-drive-ruby
google-drive-ruby copied to clipboard
Failure when config file name is a Pathname
When passing a Pathname
object to GoogleDrive::Session.from_config
, it fails since it expects a Config
object. I suggest instead of check if the object is a string, to check if the object responds to one of the required methods (eg :client_id
), and if not, treat it as a string. Thanks!
Thanks for the feedback. Sounds good to add support for Pathname. I don't think people pass anything other than String and Pathname for a path, so I would probably just add handling for Pathname.