From 0eefd9e3550cd0de6a62c3cc1d55a6f58d070cd0 Mon Sep 17 00:00:00 2001 From: Ches Martin Date: Wed, 4 Nov 2015 02:23:07 +0700 Subject: [PATCH] v0.4.2 --- CHANGES.rdoc | 14 +++++++++++++- README.rdoc | 27 ++++++++++++++++++--------- lib/rack/gridfs/version.rb | 2 +- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/CHANGES.rdoc b/CHANGES.rdoc index 6829aed..82b541b 100644 --- a/CHANGES.rdoc +++ b/CHANGES.rdoc @@ -1,6 +1,13 @@ == CHANGE LOG -=== dev +=== 0.4.2 / November 3, 2015 + +{full commit log}[https://github.com/skinandbones/rack-gridfs/compare/v0.4.1...v0.4.2] + +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 @@ -8,6 +15,11 @@ - Add fs_name option as supported by the Mongo driver ({max-power}[https://github.com/max-power]) +==== 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}[https://github.com/skinandbones/rack-gridfs/issues/14] for instance. === 0.4.1 / June 26, 2011 diff --git a/README.rdoc b/README.rdoc index be89287..2dd498c 100644 --- a/README.rdoc +++ b/README.rdoc @@ -17,17 +17,26 @@ handle routing another way. == Ruby Version and Mongo Driver Compatibility Notes The library hasn't been updated for some time and is in the process of being -brought up to modern standards on the `master` branch. It probably does not yet -work with current versions of the `mongo` and `bson` gems (patches welcome if -you need it faster than we can deliver it). Support for Ruby 1.8 is almost -certainly already dropped on master—it was supported up to gem release/git tag -v0.4.1. - -If for some reason you need support for ancient versions of the `mongo` driver +brought up to modern standards on the +master+ branch. It does not yet work +with 2.x versions of the +mongo+ driver gem, which means that you will not be +able to use it together with Mongoid 5.x (patches welcome if you need it faster +than we can deliver it). Since Mongoid 3.x and 4.x use the +moped+ gem instead +of +mongo+, though, you may be able to use the current rack-gridfs release in +apps still using one of these older Mongoid versions. rack-gridfs should +support the latest 1.x +mongo+ releases, {which support MongoDB 3.0}[https://docs.mongodb.org/ecosystem/drivers/driver-compatibility-reference/#reference-compatibility-mongodb-ruby]. + +Support for Ruby 1.8 is no longer being tested and will be dropped in the next +version that supports +mongo+ 2.x (the driver itself officially drops 1.8 +support). It was supported up to rack-gridfs gem release/git tag v0.4.2. + +If for some reason you need support for ancient versions of the +mongo+ driver prior to v1.2, these were supported in rack-gridfs 0.3.0 and below. 0.4.x -supports `mongo` 1.2(.x?) which made substantial changes to the earlier GridFS +supports +mongo+ 1.2+ which made substantial changes to the earlier GridFS API. +If your head is spinning, {this official blog post}[https://www.mongodb.com/blog/post/announcing-ruby-driver-20-rewrite] +gives a good breakdown of driver version history and the future. + == Installation gem install rack-gridfs @@ -166,7 +175,7 @@ a Ruby project: $ bundle exec rake test Note that the test suite expects that you have MongoDB running locally on the -default port and will use a database called `test`. +default port and will use a database called +test+. == Copyright diff --git a/lib/rack/gridfs/version.rb b/lib/rack/gridfs/version.rb index 7fee1b4..0b05e1f 100644 --- a/lib/rack/gridfs/version.rb +++ b/lib/rack/gridfs/version.rb @@ -1,5 +1,5 @@ module Rack class GridFS - VERSION = "0.4.1" + VERSION = "0.4.2" end end