RudyGems

Matthew Rudy Jacobs
see me swim
Github
see some of my code
Thought Sauce
Hire me in Hong Kong

Bundler as a Gemfile dependency

Bundler is still a work in progress, so you can expect things to change.

One of these things that has changed between Bundler 1.0.6 and Bundler 1.0.7 is that the “METADATA” field has been removed.

So I’m running Bundler 1.0.7 (with no METADATA) and my colleagues are running 1.0.6 (with METADATA)

I keep getting this diff.

$ git diff Gemfile.lock
diff —git a/Gemfile.lock b/Gemfile.lock
index ec585b3..ee6ba65 100644
—- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -221,3 +221,7 @@ DEPENDENCIES
   whitelist_mail_proxy
   will_paginate!
   zipruby
-
-
-METADATA
-  version: 1.0.6

I want bundler to manage itself

# self-referential
gem “bundler”, “>=1.0.7”

And it works

but the message is a bit unpretty

RudiMac:merlot matthew$ bundle install

Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem “bundler”:
  In Gemfile:
    bundler (>= 1.0.7)

  Current Bundler version:
    bundler (1.0.6)

Your version of Bundler is older than the one requested by the Gemfile.
Perhaps you need to update Bundler by running `gem install bundler`.

I need to use “gem install”?

I wonder if we can patch bundler to install itself.

I recommend you always have a “>= x.x.x”… just for jokes try setting

gem “bundler”, “1.0.6”