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
S3 broken in Ruby 2.0.0 #192
Comments
Thank you for reporting the issue. Please try to use the following form: object.write(data) # data should be an io-like object and respond to #size and #read This is the preferred way to upload an IO-like object via S3Object#write. The block form is deprecated. That said, we do support Ruby 2 and I'll take a look at why this is failing. |
Closing this issue for now. Currently it appears AWS::S3 works fine with Ruby 2 (with the exception of this deprecated |
I am re-opening this issue. A related issue (#215) trigger the same bug. I'm going to be pushing a fix that should resolve both. That said, I still recommend not using this block form for #write. |
Not sure you're officially supporting Ruby 2.0.0 but I ran into a problem that only happens in Ruby 2.0.0 but with 1.9.3 it works fine.
In my app I have a piece of code that uses the gem to upload to S3:
Like I said with 1.9.3 it works fine but in 2.0.0 it fails with the following trace:
The text was updated successfully, but these errors were encountered: