ANN: ConfigToolkit 2.3.0 Released

Version 2.3.0 of the ConfigToolkit has been released. The
ConfigToolkit is a Ruby Gem that allows configuration files to be
parsed and used within programs easily and robustly.

  • It allows programmers to specify the data that should be loaded from
    a configuration file (including the type of each parameter, whether
    the parameter is required, and custom constraints). The ConfigToolkit
    automagically generates a class from the specification of the
    configuration, including parameter accessor methods (getters, setters,
    and predicates to test for presence), an equality operator, and a
    to_s method. This allows configurations to be used easily within
    programs.
  • It can handle configurations nested within each other and
    configuration parameters that are Arrays.
  • It loads configuration files into instances of configuration
    classes. It validates the configuration file while doing so, ensuring
    that the value for each parameter is of the correct type, that all
    required parameters are present, and that all custom constraints are
    satisfied.
  • It can write a configuration class instance to a configuration file
    (generating configuration files programatically).
  • It can read/write a variety of configuration file formats, including
    YAML files, UNIX key/value files, and Ruby configuration files. In
    addition, it allows Readers and Writers to be created by users for
    other configuration file formats.
  • It is written in pure Ruby and works with the MRI, with JRuby, etc.

For full information, see: http://configtoolkit.rubyforge.org/

Tony


Tony S.
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

I forgot to add that we would love to hear feedback.

Tony