2.1.0 🎄
This release is dedicated to the Ruby 3.0 release.
Features
- Added ability to specify the default YAML configs directory as a plain string or Pathname.
For example:
Anyway::Settings.default_config_path = "path/to/configs"
# or in Rails
config.anyway_config.default_config_path = Rails.root.join("my/configs")
- Added ability to load environment-less YAML configs in Rails.
Useful for configs having similar values in any environment. For example:
# envless.yml
host: localhost
port: 3002
Rails.env #=> production or development — doesn't matter
Anyway::Config.for(:envless) => {host: "localhost", port: 3003}
NOTE: This feature will be enabled by default in the future versions; currently, you should opt-in to enable it:
# Add to you configuration
config.anyway_config.future.use :unwrap_known_environments