Hello!
I’m trying to give dry-system a spin and everything seems to be working great except properly cased class names – e.g., my STACsConfigRepo
class is not being registered under stacs_config_repo
(dry-system looks for StacsConfigRepo
instead).
I can side-step this by explicitly registering these cases with
register('stacs_config_repo') { STACsConfigRepo.new }
but I was wondering whether there is a better option. I have quite a few classes named like this (beggining with STAC
and SC
) and would much rather not have to special-case all of them.
A cursory look at the way dry-system resolves this (unsing the inflecto gem to create the class name from the key) seems to suggest this is not something easily fixable, but just wanted to double-check / fish for ideas.
Thanks so much for dry-system! I’m looking forward to rooting all of the explicit require_relative
s and hard-coded class names from my code.