google-protobuf.gemspec 808 B

123456789101112131415161718192021222324
  1. class << Gem::Specification
  2. def find_c_source(dir)
  3. `cd #{dir}; git ls-files "*.c" "*.h" extconf.rb Makefile`.split
  4. .map{|f| "#{dir}/#{f}"}
  5. end
  6. end
  7. Gem::Specification.new do |s|
  8. s.name = "google-protobuf"
  9. s.version = "3.0.0.alpha.2"
  10. s.licenses = ["BSD"]
  11. s.summary = "Protocol Buffers"
  12. s.description = "Protocol Buffers are Google's data interchange format."
  13. s.authors = ["Protobuf Authors"]
  14. s.email = "protobuf@googlegroups.com"
  15. s.require_paths = ["lib"]
  16. s.extensions = ["ext/google/protobuf_c/extconf.rb"]
  17. s.files = ["lib/google/protobuf.rb"] +
  18. # extension C source
  19. find_c_source("ext/google/protobuf_c")
  20. s.test_files = ["tests/basic.rb",
  21. "tests/stress.rb",
  22. "tests/generated_code_test.rb"]
  23. end