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 => “[email protected]: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?
Tim_U
2
What is a good strategy for dealing with this?
Unfortunately, the only strategy I’ve found is to vote for