README.md in config-1.7.2 vs README.md in config-2.0.0
- old
+ new
@@ -1,10 +1,9 @@
# Config
[![Build Status](https://api.travis-ci.org/railsconfig/config.svg?branch=master)](http://travis-ci.org/railsconfig/config)
[![Gem Version](https://badge.fury.io/rb/config.svg)](http://badge.fury.io/rb/config)
-[![Dependency Status](https://gemnasium.com/railsconfig/config.svg)](https://gemnasium.com/railsconfig/config)
[![Maintainability](https://api.codeclimate.com/v1/badges/85c206c13dce7de090af/maintainability)](https://codeclimate.com/github/railsconfig/config/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/85c206c13dce7de090af/test_coverage)](https://codeclimate.com/github/railsconfig/config/test_coverage)
## Summary
@@ -19,20 +18,23 @@
* support for multi-level settings (`Settings.group.subgroup.setting`)
* local developer settings ignored when committing the code
## Compatibility
-* Ruby `2.x`
-* Rails `>= 3.1`, `4` and `5`
-* Padrino
-* Sinatra
+* Interpreters
+ * [Ruby](https://www.ruby-lang.org/en/) `>= 2.4`
+ * [TruffleRuby](https://github.com/oracle/truffleruby) `>= 19.0.0`
+* Application frameworks
+ * Rails `>= 4.2` and `5`
+ * Padrino
+ * Sinatra
-For older versions of Rails or Ruby use [AppConfig](http://github.com/fredwu/app_config).
+For Ruby `2.0` to `2.3` or Rails `3` to `4.1` use version `1.x` of this gem. For older versions of Rails or Ruby use [AppConfig](http://github.com/fredwu/app_config).
## Installing
-### Installing on Rails 3, 4 or 5
+### Installing on Rails
Add `gem 'config'` to your `Gemfile` and run `bundle install` to install it. Then run
rails g config:install
@@ -268,10 +270,11 @@
* `const_name` - name of the object holing you settings. Default: `'Settings'`
### Merge customization
* `overwrite_arrays` - overwrite arrays found in previously loaded settings file. Default: `true`
+* `merge_hash_arrays` - merge hashes inside of arrays from previously loaded settings files. Makes sense only when `overwrite_arrays = false`. Default: `false`
* `knockout_prefix` - ability to remove elements of the array set in earlier loaded settings file. Makes sense only when `overwrite_arrays = false`, otherwise array settings would be overwritten by default. Default: `nil`
* `merge_nil_values` - `nil` values will overwrite an existing value when merging configs. Default: `true`.
```ruby
# merge_nil_values is true by default
@@ -315,10 +318,10 @@
If you define a schema it will automatically be used to validate your config. If validation fails it will
raise a `Config::Validation::Error` containing a nice message with information about all the mismatches
between the schema and your config.
-Check [dry-validation](https://github.com/dry-rb/dry-validation) for more details.
+Check [dry-schema](https://github.com/dry-rb/dry-schema) for more details.
### Missing keys
For an example settings file: