README.md in app_configuration-0.0.1 vs README.md in app_configuration-0.0.2
- old
+ new
@@ -2,12 +2,11 @@
[![Build Status](https://travis-ci.org/guidomb/app_configuration.png)](https://travis-ci.org/guidomb/app_configuration)
[![Coverage Status](https://coveralls.io/repos/guidomb/app_configuration/badge.png?branch=master)](https://coveralls.io/r/guidomb/app_configuration)
<a href="/github/guidomb/app_configuration/badges"><img alt="App_configuration" src="https://codeclimate.com/github/guidomb/app_configuration.png" style="position: relative; top: 4px"></a>
-**AppConfiguration** is a very simple gem that helps you configure your Ruby applications. It was extracted from a Rails project
-but it also can be used in non Rails projects. **AppConfiguration** uses YAML config files or environmental variales to set
+**AppConfiguration** is a very simple gem that helps you configure your Ruby applications. **AppConfiguration** uses YAML config files or environmental variales to set
the configuration parameters.
## Installation
Add this line to your application's Gemfile:
@@ -94,9 +93,16 @@
github.api_key
```
In the previous example the name of the configuration file is assumed to be `.github.yml` and all the environmental variables
will be prefixed with `GITHUB_`. You can change this behaviour by passing a configuration block to the `for` method.
+For example if you want to change the local path you can register the configuration as follows
+
+```ruby
+AppConfiguration.for :github do
+ base_local_path Rails.root
+end
+```
### Default values ###
To change the default local path and the default global path for all the `AppConfiguration::Config` objects all you
need to do is