EnvPaths

Provides OS specific paths for your gem/application. A ruby port of env-paths.
Installation
Add this line to your application's Gemfile:
gem 'env_paths'
And then execute:
$ bundle
Or install it yourself as:
$ gem install env_paths
Usage
paths = EnvPaths.get('my_app')
paths.temp
# => /var/folders/82/6j4l32lj4_g09w60_vjxh09h392d05/T/my_app-ruby
paths.config
# => /Users/your_user/Library/Preferences/my_app-ruby
Options
suffix
If there is a conflict with a native application and the default suffix (ruby), you can pass a suffix key in the options hash:
paths = EnvPaths.get('my_app', suffix: 'my_suffix')
paths.temp
# => /var/folders/82/6j4l32lj4_g09w60_vjxh09h392d05/T/my_app-my_suffix
Or disable it entirely by passing false:
paths = EnvPaths.get('my_app', suffix: false)
paths.temp
# => /var/folders/82/6j4l32lj4_g09w60_vjxh09h392d05/T/my_app
Contributing
- Fork it ( https://github.com/nicktomlin/env_paths/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Run the tests
rake - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request