I keep forgetting how to install eventmachine on El Capitan Mac OS X.

So adding this post to lookup when required.

$ gem install eventmachine -v '1.0.8' -- --with-cppflags=-I/usr/local/opt/openssl/include

More details can be found here and here