Random things

Sep 17

Rails 3.0.0 and rubygems 1.3.5 issue

If you’re running into a problem like this:

coneill@test:~/buildbot# bundle install
/sw/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:52:in `initialize’: Valid types are [:developmen
t, :runtime], not nil (ArgumentError)

Then your problem might be that you’re running rubygems 1.3.5.  I ran into this yesterday, and couldn’t find any good leads on what the problem might be.  This morning tried upgrading rubygems to 1.3.7 on a fluke, and that fixed my problem.  Actually, this seems to affect a number of things, since I first ran into the problem when trying to run “rake db:create” the first time.  I’m guessing that bundler has an unstated dependency on the newer version of rubygems.