Where to save a gem config file?

543 views Asked by At

I'm writing a Ruby gem that will need an initial configuration (username, etc...). Where should I save this config file for it to be:

  • portable (various Linux distros / OS X)
  • not requiring sudo
  • not inside the gem directory as the config should persist between gem versions

Thanks!

EDIT: As suggested by @NeilSlater in the comments, I want to precise that the gem will install some CLI tools (some will be run through a GUI) and will not be used by developers, hence the need to make it as easy as possible to configure.

0

There are 0 answers