protobuf/ruby
Chris Fallin 6ad8f547fe Updated Ruby README.
Change-Id: I8c3717f549c9b4e9d07c77ec5875c9cd62b296ac
2015-02-20 17:49:14 -08:00
..
ext/google/protobuf_c Merge pull request #211 from isaiah/map_inspect 2015-02-17 13:02:32 -06:00
lib/google Rename protobuf Ruby module to google/protobuf and rework its build 2014-12-12 15:58:26 -08:00
tests Merge pull request #211 from isaiah/map_inspect 2015-02-17 13:02:32 -06:00
google-protobuf.gemspec Two tests for Ruby code generator: 2015-01-14 15:44:46 -08:00
Rakefile Rename protobuf Ruby module to google/protobuf and rework its build 2014-12-12 15:58:26 -08:00
README.md Updated Ruby README. 2015-02-20 17:49:14 -08:00

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

First, 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

This gem includes the upb parsing and serialization library as a single-file amalgamation. It is up-to-date with upb git commit 535bc2fe2f2b467f59347ffc9449e11e47791257.