guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

Errno::EAFNOSUPPORT #106

Closed vinsonchuong closed 11 years ago

vinsonchuong commented 11 years ago

On my Arch Linux machine, TCPSocket (in the running? method of spork_instance.rb) throws a Errno::EAFNOSUPPORT instead of a Errno::ECONNREFUSED exception when Spork has not started yet.

In other words, running? should also return false when a Errno::EAFNOSUPPORT is thrown.

Alternatively, you can pass '127.0.0.1' instead of 'localhost' into TCPSocket.new.

thibaudgg commented 11 years ago

Can you please also update specs. Thanks!

vinsonchuong commented 11 years ago

Sorry about that. I've fixed the failing specs.

vinsonchuong commented 11 years ago

(Hit the wrong button.)

I've fixed the failing unit tests. Let me know if there's more that needs to be done when submitting fixes.

thibaudgg commented 11 years ago

Perfect, thanks!