jruby/jruby-ossl — Issue #15: JRuby-openssl breaks Ruby MRI
Author: Agiley
Created: 2012-01-30 22:29:07+00:00
State: open

Hey!

I do my development in Ruby MRI (1.9.3-p0) and deploy using JRuby. This has worked fine so far but since a few days ago this is no longer working - which I highly believe is due to JRuby-openssl 0.7.5.

When I do rails console, run a rake task etc I get the following error: https://gist.github.com/0f012595f60e7bf71f67 .

Somehow JRuby-openssl is loaded even though it's MRI and can't locate jopenssl (jruby-openssl-0.7.5/lib/shared/openssl.rb:10 ).

Steps to reproduce:
1. rvm use 1.9.3-p0@jruby_bug_test --create
2. gem install rails
3. rails new jruby_bug_test && cd jruby_bug_test
4. Use the following Gemfile: https://gist.github.com/5164e2e2dd24e380b9fd
5. rm -rf Gemfile.lock && bundle install
6. rails console

It's the gem majestic_seo_api that's pulling in JRuby-openssl. See it's Gemfile here: https://gist.github.com/251be3c1ca1badebd9d3

Is this just happening for me or anyone else doing dev on MRI and deploys on JRuby?