diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-21 15:18:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 15:18:47 +0900 |
commit | b5ef6d151a2639ccb91be83285eed1c7b9d2c965 (patch) | |
tree | b29bffdb1b4be6154d66ed752166f78cab488107 | |
parent | 9ea934ae080cea22afb91a765dd323c9cec62edb (diff) | |
parent | 74ccaa5e18c00944d1a67c5f9fd415a016db10c1 (diff) | |
download | ruby-openssl-b5ef6d151a2639ccb91be83285eed1c7b9d2c965.tar.gz |
Merge pull request #598 from headius/jruby_openssl
Stub gemspec for JRuby
-rw-r--r-- | openssl.gemspec | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/openssl.gemspec b/openssl.gemspec index 8d83b691..3a2f64f6 100644 --- a/openssl.gemspec +++ b/openssl.gemspec @@ -8,9 +8,15 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/ruby/openssl" spec.license = "Ruby" - spec.files = Dir["lib/**/*.rb", "ext/**/*.{c,h,rb}", "*.md", "BSDL", "LICENSE.txt"] - spec.require_paths = ["lib"] - spec.extensions = ["ext/openssl/extconf.rb"] + if Gem::Platform === spec.platform and spec.platform =~ 'java' or RUBY_ENGINE == 'jruby' + spec.platform = "java" + spec.files = [] + spec.add_runtime_dependency('jruby-openssl', '~> 0.14') + else + spec.files = Dir["lib/**/*.rb", "ext/**/*.{c,h,rb}", "*.md", "BSDL", "LICENSE.txt"] + spec.require_paths = ["lib"] + spec.extensions = ["ext/openssl/extconf.rb"] + end spec.extra_rdoc_files = Dir["*.md"] spec.rdoc_options = ["--main", "README.md"] |