I am not exactly sure what is the problem, maybe support for your ruby script is poor. You can try the following hello.rb, if it works, please send us your testing script, we will figure out the problem.
#!/usr/local/bin/ruby
print "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\nHello...