config
config copied to clipboard
Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.
I'm trying to use the gem with Rails engine, and noticed there might be some issue. ```ruby # Assume ENGINE_ROOT = /home/user/new_engine # in engine.gemspec s.add_dependency 'config' # Common step...
I followed [this](https://github.com/rubyconfig/config#fine-tuning) but I am unable to access the environment variable with `Settings` config.rb ```ruby Config.setup do |config| config.use_env = true config.env_prefix = 'SETTINGS' config.env_separator = '__' config.env_converter =...
When manually initializing Config with a YAML source, and then adding a hash source via `.add_source!()`, the `Settings.reload!()` method causes the hash source to be clobbered. Reversing the order of...
This PR adds functionality for optional namespaces when creating a new `Config::Sources::YAMLSource` source or using `Settings.add_source!` per discussion in #288. The functionality works like this: Given a YAML file like...
Version 2.0.0 I'm trying to use the `use_env` setting, but was noticing the override wasn't working. On closer inspection, it appears as if all of my settings are loaded prior...
Rails 4.1 introduces a built-in convention for having a secrets.yml with secrets in it: http://edgeguides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml It would be cool if this gem did some of these things: - Aliased `Rails.application.secrets`...
https://github.com/railsjedi/rails_config/blob/master/spec/fixtures/custom_types/hash.yml It would be beneficial to mention this kind of structure in the README
It alllows to use the gem in a project based on Ruby > 2.7. The changed method doesn't exist anymore.
Fixes https://github.com/rubyconfig/config/issues/276 # Problem Having the dependency on a fix dry-validation version generates multiple issues: - users who want another version of the dry-validation gem are blocked - the dry-validation...