Open your terminal and then excute the commands down below:
$ brew doctor
$ brew tap InstantClientTap/instantclient
$ brew install instantclient-basic
$ brew install instantclient-sdk
$ brew install instantclient-sqlplus
$ brew cleanup
$ export OCI_DIR=$(brew --prefix)/lib
Enjoy!
Now you should be able to install Ruby gem ruby-oci8
with no problems.