using bundler while developing a gem.

I want to be able to specify something like this.

group :development do   gem 'mygem', :path => File.expand_path(File.dirname(__FILE__) + '/../mygem') end

group :production do     gem 'bingatron-core', :git => "git@github.com:myaccount/mygem.git" end

Bundler doesn't like this at all and complains I am specifying the same gemname twice

I tried doing something like if ::Socket.gethostname == 'myhost' gem ...

but that doesn't work either because the Gemfile.lock ends up with the wrong gem when capistrano deploys.

What is a good strategy for dealing with this?

What is a good strategy for dealing with this?

Unfortunately, the only strategy I've found is to vote for

- D