nulayer/webify — pull request #1 by chrismendis (2012-03-28 18:24:12+00:00)
Title: Fix for error when starting Webify v 0.3.0 with --thin option

On Webify v 0.3.0, when I run webify -t, I get the following error:

```
runner.rb:44:in `start!': uninitialized constant Webify::Runner::Socket (NameError)
```

This error is due to our use of Ruby's Socket class in runner.rb:

```ruby
msg = "Serving: #{options[:dir]}\nURL: http://#{Socket.gethostname}:#{options[:port]}"
```

This is not an issue when you run Webify with no options, presumably because Webrick (the default backend) itself includes Socket.

To fix the error, I've simply required Socket in runner.rb. It could be a bit overkill, since we are only using Socket in runner.rb to notify the user of the hostname, but I thought I'd send a pull request in any case. It's really nice to see the host name when you start Webify.