qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

Issue #125: Object#content now aware of @content initilization #126

Closed lisa closed 6 years ago

lisa commented 6 years ago

More details in #125:

With fc4d193 a change was made to S3::Object#initialize which initializes the value of @content to nil. In Ruby this is enough to satisfy Object#defined? (as instance-variable). This had an unintended consequence of the content(reload = false) method always return nil unless reload = true.

This commit will make the method more aware and address the issue in the existing test suite.