遅ればせながらMacをEl Capitanにアップデートしたらruby-oci8をgem installするときにこけるようになった。
どうやらセキュリティ周りの関係で適切なlibを参照できなくなったらしい。
ので、公式のgithubを参照して以下を実行
https://github.com/kubo/ruby-oci8/issues/89
$ cd /opt/instantclient_11_2 # インスタンスクライアントのインストール先
$ curl -O https://raw.githubusercontent.com/kubo/fix_oralib_osx/master/fix_oralib.rb
$ ruby fix_oralib.rb
$ cd # changed to other directory
$ git clone --depth=1 https://github.com/kubo/ruby-oci8.git
$ cd ruby-oci8
$ gem build ruby-oci8.gemspec # create a gem file
$ export OCI_DIR=/opt/instantclient_11_2 # set the instant client location
$ gem install ./ruby-oci8-2.2.0.gem
無事に直りました。