Where to save a gem config file?

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!


Source: ruby

Leave a Reply