require_dependency should allow Pathname-like objects, not just String
Merge pull request #12412 from bf4/allow_pathname_for_require_dependency

Allow Pathname for require dependency