Howdy all, I have been trying to get started with setting up my application with dry-system and I am also reading through some other code bases and the book Ruby on Roda. I am trying to work through the docs but am having a hard time getting things tied together.
A couple of questions to start:
Are the docs updated to represent the API as is?
Is there documentation on the available plugins?
Are there some eli5 walkthroughs or anything? I am down to write some blogs on the process, I am just having a hard time wrapping my head around the library.
I attempted to extract the loader into its own provider:
# frozen_string_literal: true
# This file contains logger configuration.
loader = Zeitwerk::Loader.new
loader.enable_reloading if target[:env] == 'development'
loader.eager_load if target[:env] == 'production'
And then in the config.ru I attempted to get code reloading with the listen gem.
I appreciate the pointer. I’ve seen those and unfortunately, they are not much help. They show configuring Zeitwerk with a system adapter, but I have a more complicated ask that might require the full features including collapsing, glob ignoring, etc.
In my example above the provider does load the application, I just need to figure out how to appropriately reload the code with a Roda application.