It seems very funny to me that when I search something related ruby, all ruby on rails related results popped up. So nobody using raw ruby anymore?
However, I am new to
Ruby 1.9.2+ simple command.
ruby -run -e httpd . -p 5000
from this article http://til.justincampbell.me/start-an-http-server-with-ruby-run/ other article https://gist.github.com/willurd/5720255