aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/google-protobuf.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/google-protobuf.gemspec')
-rw-r--r--ruby/google-protobuf.gemspec28
1 files changed, 15 insertions, 13 deletions
diff --git a/ruby/google-protobuf.gemspec b/ruby/google-protobuf.gemspec
index 87033ac4..a9e570ec 100644
--- a/ruby/google-protobuf.gemspec
+++ b/ruby/google-protobuf.gemspec
@@ -1,22 +1,24 @@
-class << Gem::Specification
- def find_c_source(dir)
- `cd #{dir}; git ls-files "*.c" "*.h" extconf.rb Makefile`.split
- .map{|f| "#{dir}/#{f}"}
- end
-end
-
Gem::Specification.new do |s|
s.name = "google-protobuf"
- s.version = "3.0.0.alpha.2"
+ s.version = "3.0.0.alpha.4.0.pre"
s.licenses = ["BSD"]
s.summary = "Protocol Buffers"
s.description = "Protocol Buffers are Google's data interchange format."
+ s.homepage = "https://developers.google.com/protocol-buffers"
s.authors = ["Protobuf Authors"]
s.email = "protobuf@googlegroups.com"
s.require_paths = ["lib"]
- s.extensions = ["ext/google/protobuf_c/extconf.rb"]
- s.files = ["lib/google/protobuf.rb"] +
- # extension C source
- find_c_source("ext/google/protobuf_c")
- s.test_files = `git ls-files -- tests`.split
+ s.files = `git ls-files -z`.split("\x0").find_all{|f| f =~ /lib\/.+\.rb/}
+ unless RUBY_PLATFORM == "java"
+ s.files += `git ls-files "*.c" "*.h" extconf.rb Makefile`.split
+ s.extensions= ["ext/google/protobuf_c/extconf.rb"]
+ else
+ s.files += ["lib/google/protobuf_java.jar"]
+ end
+ s.test_files = ["tests/basic.rb",
+ "tests/stress.rb",
+ "tests/generated_code_test.rb"]
+ s.add_development_dependency "rake-compiler"
+ s.add_development_dependency "test-unit"
+ s.add_development_dependency "rubygems-tasks"
end