From understanding to repair : an empirical and agentic investigation of Ruby developer challenges