README.md in qonfig-0.24.0 vs README.md in qonfig-0.24.1

- old
+ new

@@ -999,10 +999,12 @@ ### Config reloading - method signature: `#reload!(configurations = {}, &configuration)`; ```ruby +# -- config example --- + class Config < Qonfig::DataSet setting :db do setting :adapter, 'postgresql' end @@ -1011,22 +1013,30 @@ config = Config.new config.settings.db.adapter # => 'postgresql' config.settings.logger # => #<Logger:0x00007ff9> +``` +```ruby +# --- redefine some settings (or add a new one) -- + config.configure { |conf| conf.logger = nil } # redefine some settings (will be reloaded) # re-define and append settings class Config setting :db do setting :adapter, 'mongoid' # re-define defaults end setting :enable_api, false # append new setting end +``` +```ruby +# --- reload --- + # reload settings config.reload! config.settings.db.adapter # => 'mongoid' config.settings.logger # => #<Logger:0x00007ff9> (reloaded from defaults) @@ -3205,15 +3215,16 @@ --- ## Roadmap - **Major**: - - distributed configuration server; - - cli toolchain; - support for Rails-like secrets; - support for persistent data storages (we want to store configs in multiple databases and files); - - Rails reload plugin; + - rails plugin; + - support for pattern matching; - **Minor**: + - An ability to flag `Qonfig::Configurable`'s config object as `compacted` (`Qonfig::Compacted`); + - External validation class with an importing api for better custom validations; ## Build ```shell bin/rspec -w # test the core functionality and plugins