summaryrefslogtreecommitdiff
path: root/lib/config.rb
AgeCommit message (Collapse)Author
2026-03-01refactor: defer Config loading — add explicit Config.load! methodPaul Buetow
Loading config.toml at module eval time (during require) runs before the application's working directory is set, can slow down tests that don't use config at all, and gives no way to reload between calls. Move the load logic into Config.load! (mirrors the Options.parse! pattern added in the previous commit). The module body now just initialises @@config to {}. Call Config.load! alongside Options.parse! at the top of configure() so all entry points reload from the correct directory. Also qualify File as ::File inside the RCM module to avoid resolving it as RCM::File once the keyword files are loaded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01gracefully handle missing toml gem in config.rbPaul Buetow
2024-12-08use of endless methodsPaul Buetow
2024-12-06refactorPaul Buetow