Trouble installing mocha

I am trying to install mocha on my OS X MBP and when I use

sudo gem install mocha

I get this error:

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ETIMEDOUT: Operation timed out - connect(2) (http://
gems.rubyforge.org/gems/mocha-0.9.7.gem)

I got it last night and thought maybe the service was down, but I get
the same error this morning.

Thanks in Advance,
Chas Lemley

Nevermind, I figured it out. I was having a DNS issue with my router.