title: Gem install error due to invalid ssl using rbenv
body: <p>I'm trying to install a new gem (<code>gem install lunchy</code>), but am getting the following error due to the ssl certificate:</p>
  
  <p><code>ERROR:  Loading command: install (LoadError)
      dlopen(/usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
    Referenced from: /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle
    Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
   in /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle - /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle
  ERROR:  While executing gem ... (NoMethodError)
      undefined method 'invoke_with_build_args' for nil:NilClass</code></p>
  
  <p>I've tried a number of fixes:</p>
  
  <p>Tried <code>gem update --system</code> per this answer <a href="https://stackoverflow.com/questions/10246023/bundle-install-fails-with-ssl-certificate-verification-error">bundle install fails with SSL certificate verification error</a> but get the same error on that command.</p>
  
  <p>Tried <code>brew install openssl</code> followed by <code>brew link openssl --force</code> per this question but to no avail: <a href="https://stackoverflow.com/questions/17181075/openssl-error-installing-ruby-2-0-0-p195-on-mac-with-rbenv">OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv</a></p>
  
  <p>Even tried reinstalling rbenv and ruby but that didn't work either, still get the same error.</p>