Skip to content

Releases: skinandbones/rack-gridfs

v0.4.3

04 Nov 21:11
Compare
Choose a tag to compare

No functional changes—same as v0.4.2, but v0.4.2 gem yanked because of faulty gemspec file (grumble).

v0.4.2

03 Nov 19:38
Compare
Choose a tag to compare

It's been awhile, eh? No compatibility with new mongo 2.x releases yet, we'll look to bring that in an 0.5 or 1.0 release. This is primarily a bug fix release for users affected by incompatible bson 2.x being allowed by some historical mongo driver versions.

Features

Bug Fixes

  • Prevent bson 2.x being allowed to resolve dependency constraints, where some historical versions of the mongo gem used a ">= 1.x" constraint spec. See #14 for instance.

v0.4.1

03 Nov 19:43
Compare
Choose a tag to compare

Bug Fixes

  • URL-decode before filename lookup so that non-ASCII filenames are handled correctly Konstantin Shabanov

v0.4.0

03 Nov 19:51
Compare
Choose a tag to compare

Major refactoring and loads of new features! Thanks to Ben Marini for his substantial contributions to this release.

Features

  • Allow configuration of MongoDB authentication (Steve Sloan)
  • Allow option to look up objects by GridFS filename instead of ObjectId (SHIBATA Hiroshi)
  • Return iterable GridIO object instead of file contents, so Rack can stream in chunks (Ches Martin)
  • Rack::GridFS::Endpoint: support for mounting as a Rack endpoint in addition to middleware (Ben Marini)
  • Cache headers: set Last-Modified and Etag so that Rack::ConditionalGet sends 304s. expires option to set Cache-Control (Alexander Gräfe & Ben Marini)
  • mime-types dependency so GridFS lib can determine content types (Ben Marini)
  • You can now pass a Mongo::DB instance instead of discrete database configuration parameters. Connections are retried so we take advantage of a ReplSetConnection in high-availability architectures (Ben Marini)

Bug Fixes

  • BSON::ObjectID renamed to ObjectId, and other changes supporting current versions of Mongo libraries