Set platform to "java" under JRuby

Proposed fix for #1594
This commit is contained in:
Jason Lunn 2016-09-29 00:18:55 -04:00 committed by GitHub
parent 3d598eecee
commit 07f3cab3dd

View File

@ -10,6 +10,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.files = Dir.glob('lib/**/*.rb')
if RUBY_PLATFORM == "java"
s.platform = "java"
s.files += ["lib/google/protobuf_java.jar"]
else
s.files += Dir.glob('ext/**/*')