aesterline/rumbster — Issue #2: Dependency on jruby-openssl
Author: dsgh
Created: 2012-02-28 19:45:18+00:00
State: open

Currently, the rumbster gem requires `jruby-openssl`, even when installing on non-jruby platforms. This makes it unusable in non-jruby projects:

```
Loading jruby-openssl in a non-JRuby interpreter
Loading jruby-openssl in a non-JRuby interpreter
.../lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- jopenssl (LoadError)
```

Question: Is openssl even needed as a gem dependency? Where is it used?

If not it could simply be removed from the gemspec.

If it's really needed, I believe this problem is due to the unresolved issue in jeweler: https://github.com/technicalpickles/jeweler/issues/170

There is a proposed solution there:

```ruby
gem.add_dependency "jruby-openssl" if RUBY_PLATFORM == "java"
gem.add_dependency "openssl" if RUBY_PLATFORM == "ruby"
```

This could be applied manually in rumbster's gemspec as a workaround for now, if you agree.