Nice. Although arguably, with the sql db, there’s now two files (although in-memory might make sense) - and the example might have benefitted from using the model(s).
With an in-memory database and some in-line seeding - the app might start to look like a real utility :)
I don’t see the bundler in-line technique used a lot. It is super handy especially for weird little one-off utilities I keep around and don’t want to also have to do something with a separate Gemfile.
Nice. Although arguably, with the sql db, there’s now two files (although in-memory might make sense) - and the example might have benefitted from using the model(s).
With an in-memory database and some in-line seeding - the app might start to look like a real utility :)
There’s a small collection of single file Ruby starters here: https://starters.wolfgangrittner.dev/scripts
I don’t see the bundler in-line technique used a lot. It is super handy especially for weird little one-off utilities I keep around and don’t want to also have to do something with a separate Gemfile.