{"action":"created","issue":{"url":"https://api.github.com/repos/janko-m/shrine/issues/18","labels_url":"https://api.github.com/repos/janko-m/shrine/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/janko-m/shrine/issues/18/comments","events_url":"https://api.github.com/repos/janko-m/shrine/issues/18/events","html_url":"https://github.com/janko-m/shrine/pull/18","id":118590614,"number":18,"title":"Ruby 2.3 bug","user":{"login":"deivid-rodriguez","id":2887858,"avatar_url":"https://avatars.githubusercontent.com/u/2887858?v=3","gravatar_id":"","url":"https://api.github.com/users/deivid-rodriguez","html_url":"https://github.com/deivid-rodriguez","followers_url":"https://api.github.com/users/deivid-rodriguez/followers","following_url":"https://api.github.com/users/deivid-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/deivid-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/deivid-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deivid-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/deivid-rodriguez/orgs","repos_url":"https://api.github.com/users/deivid-rodriguez/repos","events_url":"https://api.github.com/users/deivid-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/deivid-rodriguez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T11:48:06Z","updated_at":"2015-11-24T17:54:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/janko-m/shrine/pulls/18","html_url":"https://github.com/janko-m/shrine/pull/18","diff_url":"https://github.com/janko-m/shrine/pull/18.diff","patch_url":"https://github.com/janko-m/shrine/pull/18.patch"},"body":"I run into this issue when running my app using `2.3.0-preview1`. Only the last block of the file would be copied. Not sure why it happens but it seems that `IO.copy_stream(io, filename)`  no longer works as expected. So I changed it to `IO.copy_stream(io, io)`"},"comment":{"url":"https://api.github.com/repos/janko-m/shrine/issues/comments/159355347","html_url":"https://github.com/janko-m/shrine/pull/18#issuecomment-159355347","issue_url":"https://api.github.com/repos/janko-m/shrine/issues/18","id":159355347,"user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T17:54:18Z","updated_at":"2015-11-24T17:54:18Z","body":"Thanks for the patch. However, this seems to be a [bug](https://bugs.ruby-lang.org/issues/11199) in Ruby trunk, which will hopefully get fixed once 2.3.0 is out. The bug is with the second argument being a Pathname, if it's a String then things work. While I could just call `#to_s`, I don't like the general idea of making workarounds for preview Ruby versions.\r\n\r\nI don't think it makes much sense to run \"head\" Ruby versions in the Travis build. The reason is that they will usually have bugs until the stable version is released, and I don't think that there is any change that should be done in Shrine in that case, because the goal is to support only stable versions. I'm aware that you added them to \"allowed failures\", but it slows down the Travis build and I'm not sure what are the benefits."}}