config_file
Simple library for reading configuration from different sources.
Installation
Add this line to your application's Gemfile:
gem 'config_file'
And then execute:
$ bundle
Or install it yourself as:
$ gem install config_file
Usage
require 'config_file'
config_file = ConfigFile.new
config1 = config_file.read "spec/config/test_config.yaml"
config2 = config_file.read "spec/config/test_config.json"
config3 = config_file.read "spec/config/test_config.rb"
config4 = config_file.read "spec/config/.test_config", ".rb"
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request