diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2014-12-12 16:49:45 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2014-12-12 16:49:45 -0800 |
commit | ed52203481af7ede91b8706b2f8e9d58eecb9fbc (patch) | |
tree | 6a2fc1a9242659963b5f3bae9c146d957027f5e2 /ruby/Rakefile | |
parent | f473bb9903370cc9324b0881873e0d0861f5d325 (diff) | |
parent | 91473dcebfbd90a8e256568e287e168b70c77ff0 (diff) | |
download | protobuf-ed52203481af7ede91b8706b2f8e9d58eecb9fbc.tar.gz protobuf-ed52203481af7ede91b8706b2f8e9d58eecb9fbc.tar.bz2 protobuf-ed52203481af7ede91b8706b2f8e9d58eecb9fbc.zip |
Merge pull request #134 from cfallin/master
Update Ruby build setup to produce gems successfully. Include upb as a single .c / .h file.
Diffstat (limited to 'ruby/Rakefile')
-rw-r--r-- | ruby/Rakefile | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/ruby/Rakefile b/ruby/Rakefile index b782b403..ae7d8059 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -1,35 +1,19 @@ require "rake/extensiontask" require "rake/testtask" -spec = Gem::Specification.new do |s| - s.name = "protobuf" - s.version = "2.6.2" - s.licenses = ["BSD"] - s.summary = "Protocol Buffers" - s.description = "Protocol Buffers are Google's data interchange format." - s.authors = ["Protobuf Authors"] - s.email = "protobuf@googlegroups.com" - - s.files = ["lib/protobuf_c.so", "lib/protobuf.rb"] -end +spec = Gem::Specification.load("google-protobuf.gemspec") Rake::ExtensionTask.new("protobuf_c", spec) do |ext| - ext.lib_dir = "lib" - ext.config_script = "extconf.rb" + ext.ext_dir = "ext/google/protobuf_c" + ext.lib_dir = "lib/google" end Rake::TestTask.new(:test => :build) do |t| t.test_files = FileList["tests/*.rb"] end -task :chmod do - File.chmod(0755, "lib/protobuf_c.so") -end - Gem::PackageTask.new(spec) do |pkg| end -task :package => :chmod -task :gem => :chmod task :build => [:clean, :compile] task :default => [:build] |