Chris Fallin eb33f9d3d6 Updated based on code-review comments. před 10 roky
..
ext eb33f9d3d6 Updated based on code-review comments. před 10 roky
lib 91473dcebf Rename protobuf Ruby module to google/protobuf and rework its build před 11 roky
tests e2debef5d8 Ruby extension: added oneof accessor. před 11 roky
README.md 973f425725 Provide a Ruby extension. před 11 roky
Rakefile 91473dcebf Rename protobuf Ruby module to google/protobuf and rework its build před 11 roky
google-protobuf.gemspec 3f3820d8f8 Two tests for Ruby code generator: před 11 roky

README.md

This directory contains the Ruby extension that implements Protocol Buffers functionality in Ruby.

The Ruby extension makes use of generated Ruby code that defines message and enum types in a Ruby DSL. You may write definitions in this DSL directly, but we recommend using protoc's Ruby generation support with .proto files. The build process in this directory only installs the extension; you need to install protoc as well to have Ruby code generation functionality.

Installation

To build this Ruby extension, you will need:

  • Rake
  • Bundler
  • Ruby development headers
  • a C compiler
  • the upb submodule

First, ensure that upb/ is checked out:

$ cd ..   # top level protobuf directory
$ git submodule init
$ git submodule update

Then install the required Ruby gems:

$ sudo gem install bundler rake rake-compiler rspec rubygems-tasks

Then build the Gem:

$ rake gem
$ gem install pkg/protobuf-$VERSION.gem