rdp / os

The OS gem allows for some easy telling if you’re on windows or not. OS.windows? as well as some other helper utilities
MIT License
145 stars 33 forks source link

Add app_config_path for determining app config location #29

Closed kyledrake closed 7 years ago

kyledrake commented 7 years ago

This adds OS.app_config_path(name), which you can use to create a directory to store your app's config files in. I started by writing a gem for this, then realized it's probably better in something like this gem.

It's basically a port of the logic of application-config-path from NodeJS to ruby: https://github.com/LinusU/node-application-config-path

I think it's related to #23.

Tested on Linux, but not yet tested on OSX or Windows. There's no tests for windows yet because I'm not sure what the variables would look like. It would be lovely if someone tested it over on those platforms.

rdp commented 7 years ago

I like it, thanks!