From 5e114ac7278089add0b73c97b5d1cc28e9e2ae8e Mon Sep 17 00:00:00 2001 From: Martyn Loughran Date: Mon, 30 Apr 2012 15:43:54 +0100 Subject: [PATCH] Support jruby via the jruby-openssl gem --- .travis.yml | 6 ++---- signature.gemspec | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3b1f876..69b1fe0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,8 @@ rvm: - 1.8.7 - 1.9.2 - 1.9.3 -# JRuby fails with -# java.security.NoSuchAlgorithmException: sha256 MessageDigest not available -# - jruby-18mode # JRuby in 1.8 mode -# - jruby-19mode # JRuby in 1.9 mode + - jruby-18mode # JRuby in 1.8 mode + - jruby-19mode # JRuby in 1.9 mode - rbx-18mode - rbx-19mode diff --git a/signature.gemspec b/signature.gemspec index 48eb387..1f757da 100644 --- a/signature.gemspec +++ b/signature.gemspec @@ -17,5 +17,6 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] + s.add_dependency "jruby-openssl" if defined?(JRUBY_VERSION) s.add_development_dependency "rspec", "~> 2.9.0" end