coderanger/raven-ruby — pull request #9 by hmarr (2012-06-08 14:42:54+00:00)
Title: Fallback to hostname when gethostbyname fails

As mentioned in the discussion on 9176e6b0667e585, `Socket.gethostbyname` sometimes fails on OS X. This adds the result of `Socket.gethostname` as a fallback for when `gethostbyname` does fail.

Thanks!