google-protobuf.gemspec 1.3 KB

1234567891011121314151617181920212223242526272829
  1. Gem::Specification.new do |s|
  2. s.name = "google-protobuf"
  3. s.version = "4.0.0.rc.2"
  4. git_tag = "v#{s.version.to_s.sub('.rc.', '-rc')}" # Converts X.Y.Z.rc.N to vX.Y.Z-rcN, used for the git tag
  5. s.licenses = ["BSD-3-Clause"]
  6. s.summary = "Protocol Buffers"
  7. s.description = "Protocol Buffers are Google's data interchange format."
  8. s.homepage = "https://developers.google.com/protocol-buffers"
  9. s.authors = ["Protobuf Authors"]
  10. s.email = "protobuf@googlegroups.com"
  11. s.metadata = { "source_code_uri" => "https://github.com/protocolbuffers/protobuf/tree/#{git_tag}/ruby" }
  12. s.require_paths = ["lib"]
  13. s.files = Dir.glob('lib/**/*.rb')
  14. if RUBY_PLATFORM == "java"
  15. s.platform = "java"
  16. s.files += ["lib/google/protobuf_java.jar"]
  17. else
  18. s.files += Dir.glob('ext/**/*')
  19. s.extensions= ["ext/google/protobuf_c/extconf.rb"]
  20. s.add_development_dependency "rake-compiler-dock", ">= 1.0.1", "< 2.0"
  21. end
  22. s.test_files = ["tests/basic.rb",
  23. "tests/stress.rb",
  24. "tests/generated_code_test.rb"]
  25. s.required_ruby_version = '>= 2.3'
  26. s.add_development_dependency "rake-compiler", "~> 1.1.0"
  27. s.add_development_dependency "test-unit", '~> 3.0', '>= 3.0.9'
  28. s.add_development_dependency "rubygems-tasks", "~> 0.2.4"
  29. end