I’ve been repeating similar config patterns over a number of years and Rails projects.
In short, I like to require some config values to be in ENV or credentials, or either. If the value is missing (and there’s no default), fail on boot with a helpful error. I’m also tired of parsing ENV booleans, numbers and list values.
With that in mind, finally made a gem. It doesn’t overtake existing Rails config, just lets you extend
useful helpers into it.
Would love to get some feedback, how do you feel about this?