fog/fog — pull request #681 by nirvdrum (2011-12-29 21:23:50+00:00)
Title: S3 versioning models

This is based off pull request #672. It adds S3 model support for versioning. Since most of the model methods already allowed passing of an options hash, we can just pass through the 'versionId' value, which limited the number of changes necessary.

Feedback on the Versions model would be appreciated it. I tried to come up with a natural API. The tricky part is a version could be an object deletion, which would be a nil file with metadata. The Version model encapsulates the metadata with a corresponding method for fetching the file for a given version.