Skip to content

Commit

Permalink
Merge pull request #598 from headius/jruby_openssl
Browse files Browse the repository at this point in the history
Stub gemspec for JRuby
  • Loading branch information
hsbt committed Feb 21, 2023
2 parents 9ea934a + 74ccaa5 commit b5ef6d1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions openssl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit b5ef6d1

Please sign in to comment.