google-drive-ruby icon indicating copy to clipboard operation
google-drive-ruby copied to clipboard

Wrong number of arguments error/crash for download_to_file()

Open thomergil opened this issue 1 year ago • 1 comments

There is a proposed (and verified working) fix in https://github.com/gimite/google-drive-ruby/pull/406/files/cf1ba661bc1153ae89667e4f4d138207df343584

Please merge. Thank you.

thomergil avatar Aug 22 '24 15:08 thomergil

Here's a workaround in the meantime:

File.open(local_path, 'wb') do |new_file|
  file.download_to_io(new_file)
end

Working 2025-07-08 with:

google_drive (3.0.7)
  google-apis-drive_v3 (>= 0.5.0, < 1.0.0)
  google-apis-sheets_v4 (>= 0.4.0, < 1.0.0)
  googleauth (>= 0.5.0, < 1.0.0)
  nokogiri (>= 1.5.3, < 2.0.0)

zsarge avatar Jul 08 '25 13:07 zsarge