The boot-resilience release. Hardens the gem against several boot-time crash paths so that information gathering and configuration generation can never prevent the host application from starting.
Fixes
- Fix
initialize_from_databasewhen the database is unreachable on Rails 7.1+. Connections are now established lazily at query time, so errors surface fromselect_valueasActiveRecord::StatementInvalidor adapter-level errors (e.g.PG::ConnectionBad) that don't inherit fromActiveRecordError. The rescue is broadened toStandardErrorso that DB metadata collection never prevents the application from booting (e.g. runningbin/rails db:createon a fresh checkout). - Guard
Modulorails::Data#initialize_from_configurationagainst a missingconfig.name: fall back to the Rails application class name and use safe navigation when deriving@environment_name, so a forgottenconfig.name '...'no longer crashes the boot withNoMethodError: undefined method 'parameterize' for nil. - Move the body construction in
Modulorails.send_datainside itsbegin/rescueblock so that an unexpected failure inModulorails::Data.new(e.g. a malformed configuration) is caught instead of bubbling out ofafter_initializeand breaking Rails boot.