{"action":"opened","issue":{"url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/232","repository_url":"https://api.github.com/repos/gimite/google-drive-ruby","labels_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/232/comments","events_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/232/events","html_url":"https://github.com/gimite/google-drive-ruby/issues/232","id":180102508,"number":232,"title":"download_to_file: undefined method `flush' for #<Pathname: when path is a string","user":{"login":"Carpela","id":866693,"avatar_url":"https://avatars.githubusercontent.com/u/866693?v=3","gravatar_id":"","url":"https://api.github.com/users/Carpela","html_url":"https://github.com/Carpela","followers_url":"https://api.github.com/users/Carpela/followers","following_url":"https://api.github.com/users/Carpela/following{/other_user}","gists_url":"https://api.github.com/users/Carpela/gists{/gist_id}","starred_url":"https://api.github.com/users/Carpela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carpela/subscriptions","organizations_url":"https://api.github.com/users/Carpela/orgs","repos_url":"https://api.github.com/users/Carpela/repos","events_url":"https://api.github.com/users/Carpela/events{/privacy}","received_events_url":"https://api.github.com/users/Carpela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-29T16:44:11Z","updated_at":"2016-09-29T16:44:11Z","closed_at":null,"body":"When using the download_to_file method, if using a string\r\n\r\ne.g. \r\n\r\n    path = Rails.root+pathname\r\n    file.download_to_file(path)\r\n\r\nundefined method `flush' for #<Pathname:\r\n\r\nHowever, if using\r\n\r\n    path = (Rails.root+pathname).to_path\r\n\r\nThis works fine. I think it's supposed to work with both..."}}
{"actor":{"display_login":"Carpela"}}