Ruby off Rails
summary
Builds a small Ruby CLI that actually runs: uses an autoloader (cyber autoloading), parses flags with option parsing with optparse and centralizes settings in a tiny singleton built from a data-defined value object. Adds swappable logging and a Benchmark-based measure/trace wrapper that logs durations, renders ERB templates via a compact view context, and reimplements small helpers (monetize-as-cents and basic date advance/change from ActiveSupport) so the CLI stays dependency-light and testable.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 1:10Life beyond Rails in Ruby
- 2:37Ruby beyond web apps
- 7:59Building a CLI from scratch
- 9:00Autoloading dependencies
- 10:45CLI entry point setup
- 11:51Parsing CLI options
- 12:57Configuration singleton
- 16:06Configurable module
- 17:11Logging setup
- 19:59ActiveSupport concerns
- 20:44Performance tracing
- 22:59View templating
- 25:29Building the slides CLI
- 26:56Reusable CLI components
- 28:00Monetizable attributes
- 29:26Date and time helpers
- 31:09Q&A
