What is Anyway Config
masterAnyway Config is a configuration library for Ruby gems and applications designed to abstract the configuration layer.
It introduces configuration classes that define available parameters and their default values. This approach provides several benefits:
- Testability: Configuration is represented by Ruby classes, making it easy to test.
- Computed Parameters: You can easily add helper methods and computed parameters to your configuration.
- Decoupling: It frees your code from direct dependencies on
ENV, credentials, or secrets by using configuration classes instead. - Multi-source Loading: It automatically handles loading parameters from various sources like YAML, credentials, and environment variables using an internal pipeline pattern.
For library authors, it enables zero-code configuration (no boilerplate initializers) and built-in support for per-environment and local settings.