Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(download_to_file) fixed: ArgumentError: wrong number of arguments (given 2, expected 1) on Ruby3 #406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Inversion-des
Copy link

No description provided.

@alessandrostein
Copy link

alessandrostein commented Aug 7, 2022

Can we get a new version with this fix?

@bigwheel
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants