YAML config loader with checking conflict from the example.
- You can load a config .yml file and get the hash from YAML.
- Notify the conflict between .yml and .yml.(example|sample)
# config.yml(not committed)
name: "taro"
# config.yml.sample(committed)
name: "sample name"
You can load config.yml.
require "configict"
p Configict.load_yml("config.yml")
# => {name: "taro"}
Then, a other developer updates config.yml.sample.
# config.yml.sample(committed)
fullname: "sample fullname"
age: 20
Configict raises the confliction error when you load it.
require "configict"
p Configict.load_yml("config.yml")
# => Configict::LoadError:
# You must specify follow keys in config file (config.yml)
# - fullname
# - age
#
# You must not specify follow keys in config file (config.yml):
# + name