solidusio / solidus_dev_support

A collection of tools for developing Solidus extensions.
MIT License
21 stars 27 forks source link

Allow a custom Gemfile for local development #9

Closed aldesantis closed 4 years ago

aldesantis commented 4 years ago

Some extension developers may want to use their own tools such as Pry or Byebug to develop and debug extensions. However, these shouldn't be installed automatically for all users, since everyone has their preference.

We could recommend adding the following to an extension's Gemfile:

load 'Gemfile-custom'

By ignoring Gemfile-custom in Git, users will essentially have a way to use their preferred debugging tools in the extension.

Related issues

elia commented 4 years ago

Consider using Gemfile.local which seems to be quite common, or to drop the thing entirely and let maintainers just set BUNDLE_GEMFILE=Gemfile.local, see also https://github.com/bundler/bundler/issues/183.

aldesantis commented 4 years ago

Gemfile.local sounds good, I think we can just add it to .gitignore and add something like the following to the Gemfile we generated with the template:

load 'Gemfile.local' if File.exists?('Gemfile.local')