DEV Community

Discussion on: Make a Ruby gem configurable

Collapse
 
mereghost profile image
Marcello Rocha

Unless I'm trying to avoid dependencies, my usual go to for configuration is dry-configurable as it provides a nice way to to define, even deeply nested, settings.

As a bonus you get settings thread safety.

Collapse
 
vinistock profile image
Vinicius Stock

Oh, nice! I had not heard about that one, will have to check it out. And yeah, the solution in this article is not thread safe.

Collapse
 
mereghost profile image
Marcello Rocha

Dry-rb has a lot of nice gems with basically no heavy dependencies.

Totally worth a look. Maybe worth an internal presentation @ Shopify, fellow Shopifolk.