Hello….
Sorry if this a really basic, and even stupid question, but I couldn´t find the proper way of doing this…..
So, I´m developing a Gem, and my users might not have Bundler installed. If I add
require 'bundler/setup'
on a file and my user does not have bundler, then there is a dependency error.
If on the other hand, I do not add
require 'bundler/setup'
then when doing development, the system does not find my dependencies correctly.
How should I configure my bundler so that it allows for people to do: gem install <my_gem>?
Thanks
Gems should only need Bundler for development, and never depend on Bundler while they are running. You can use `bundle exec path/to/gem_command` or `bundle exec ruby` to have the gems in your Gemfile available and set up already.
Since this boilerplate is common, when you use `bundle gem` to create a new gem, we set this up for you.