problems installing ruby gem foundation

Hello there, Iam running on Yosemite I got everything installed (Homebrew Node Ruby version 2.2.0,rbenv)then I get to the foundation gem installation. When I type sudo gem install foundation I get the following :

Fareedahs-MacBook-Pro:~ fareedahjames$ sudo gem install foundation ERROR: Loading command: install (LoadError) dlopen(/Users/fareedahjames/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method   Referenced from: /Users/fareedahjames/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle   Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib in /Users/fareedahjames/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle

I have not personally had that problem but googling for

Symbol not found: _SSLv2_client_method ruby

yields a number of hits that could be useful to you,