Same as v0.4.2, but v0.4.2 gem yanked because of faulty gemspec file (grumble).
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.
- Eliminate need for
:require
option in Gemfile (Konstantin Shabanov) - Add
fs_name
option as supported by the Mongo driver (max-power)
- 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.
- URL-decode before filename lookup so that non-ASCII filenames are handled correctly (Konstantin Shabanov)
Major refactoring and loads of new features! Thanks to Ben Marini for his substantial contributions to this release.
- 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
andEtag
so thatRack::ConditionalGet
sends 304s.expires
option to setCache-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 aReplSetConnection
in high-availability architectures (Ben Marini)
BSON::ObjectID
renamed toObjectId
, and other changes supporting current versions of Mongo libraries