getsentry/raven-ruby — pull request #198 by mabutt (2014-07-30 00:40:30+00:00)
Title: Handle Pathname objects in

Sometimes the $LOAD_PATH array contains Pathname objects. In this case, prefix may contain a Pathname instead of a string and prefix.chomp will fail (chomp isn't a method on Pathname). Simply forcing a to_s on the prefix fixes this.