1Gem::Specification.new do |s|
2  s.name        = "google-protobuf"
3  s.version     = "3.0.0.alpha.6.0.0"
4  s.licenses    = ["BSD"]
5  s.summary     = "Protocol Buffers"
6  s.description = "Protocol Buffers are Google's data interchange format."
7  s.homepage    = "https://developers.google.com/protocol-buffers"
8  s.authors     = ["Protobuf Authors"]
9  s.email       = "protobuf@googlegroups.com"
10  s.require_paths = ["lib"]
11  s.files       = Dir.glob('lib/**/*.rb')
12  if RUBY_PLATFORM == "java"
13    s.files     += ["lib/google/protobuf_java.jar"]
14  else
15    s.files     += Dir.glob('ext/**/*')
16    s.extensions= ["ext/google/protobuf_c/extconf.rb"]
17    s.add_development_dependency "rake-compiler-dock"
18  end
19  s.test_files  = ["tests/basic.rb",
20                  "tests/stress.rb",
21                  "tests/generated_code_test.rb"]
22  s.add_development_dependency "rake-compiler"
23  s.add_development_dependency "test-unit"
24  s.add_development_dependency "rubygems-tasks"
25end
26