Problem upgrading to Rails 3.1 using capistrano.

I've upgraded a Rails 3.0 app to Rails 3.1. It's working fine on my
development Windows PC using Webrick / ruby 1.8.7.

I tried to deploy using Capistrano to a server using Passenger/nginx/
REE, but am getting this error :

  * executing "cd /home/.../releases/20110808200618 && bundle install
--gemfile /home/.../releases/20110808200618/Gemfile --path /home/.../
shared/bundle --quiet --without development test resque_development
resque_scheduler_development"
    servers: ["..."]
    [...] executing command
** [out :: ...] /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/version.rb:202:in `bump': undefined method `succ' for
nil:NilClass (NoMethodError)
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:17
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:134:in `call'
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:134:in `satisfied_by?'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/source.rb:231:in `all?'
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:134:in `each'
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:134:in `all?'
** [out :: ...] from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/
rubygems/requirement.rb:134:in `satisfied_by?'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/rubygems_ext.rb:138:in `matches_spec?'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/index.rb:47:in `search_for_all_platforms'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/index.rb:47:in `select'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/index.rb:47:in `search_for_all_platforms'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:357:in `search'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:346:in `gems_size'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:179:in `resolve'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/source.rb:231:in `sort_by'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:175:in `each'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:175:in `sort_by'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:175:in `resolve'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:160:in `start'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:128:in `resolve'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:127:in `catch'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/resolver.rb:127:in `resolve'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/definition.rb:151:in `resolve'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/definition.rb:90:in `specs'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/definition.rb:85:in `resolve_remotely!'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/installer.rb:43:in `run'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/installer.rb:8:in `install'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/cli.rb:220:in `install'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/vendor/thor/task.rb:22:in `send'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/vendor/thor/task.rb:22:in `run'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/vendor/thor/invocation.rb:118:in `invoke_task'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/vendor/thor.rb:263:in `dispatch'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/lib/
bundler/vendor/thor/base.rb:386:in `start'
** [out :: ...] from /home/.../rails3/gems/gems/bundler-1.0.16/bin/
bundle:13
** [out :: ...] from /home/.../rails3/bin/bundle:19:in `load'
** [out :: ...] from /home/.../rails3/bin/bundle:19

Any pointers ?

Seems to have been fixed overnight by new bundler version 1.0.17 : see
https://github.com/carlhuda/bundler/issues/1342