google-drive-ruby
google-drive-ruby copied to clipboard
(download_to_file) fixed: ArgumentError: wrong number of arguments (given 2, expected 1) on Ruby3
Can we get a new version with this fix?
Monkey patch for me in another world:
require 'google_drive'
require 'fileutils'
module MonkeyPatch
def download_to_file(path, params = {})
@session.drive_service.get_file(
id,
**{ download_dest: path, supports_all_drives: true }.merge(params)
)
end
end
GoogleDrive::File.prepend(MonkeyPatch)