For example, I'm developing a gem, and while I'm developing, I use pry
instead of IRB, and debugger
for debugging. However, I don't want possible contributors to have to install them (because they may not need them). My first idea was to put them in a Bundler group:
source :rubygems
gemspec
group :extras do
gem "pry"
gem "debugger"
end
And then people could use:
$ bundle install --without extras
But I want it to be a default that they're not installed. What would be perfect is that they're not in my Gemfile
, but that I can still require them (if they exist on the computer). This solution would be ok because I don't care at which version they're locked. Can it be done?