diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2014-12-09 17:27:54 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2014-12-09 17:27:54 -0800 |
commit | 261fe97a63316a4a4918afcaa6c8c0f4b0da45fc (patch) | |
tree | da0022d2cbe3a0700c02765a02e1be5a8b0c4f30 /ruby/README.md | |
parent | a0d9c59a7604139401cab78a27542b23f5724c19 (diff) | |
parent | 973f425725f1cc18211992792f2aed83d3d73831 (diff) | |
download | protobuf-261fe97a63316a4a4918afcaa6c8c0f4b0da45fc.tar.gz protobuf-261fe97a63316a4a4918afcaa6c8c0f4b0da45fc.tar.bz2 protobuf-261fe97a63316a4a4918afcaa6c8c0f4b0da45fc.zip |
Merge pull request #121 from cfallin/master
Provide a Ruby extension.
Diffstat (limited to 'ruby/README.md')
-rw-r--r-- | ruby/README.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ruby/README.md b/ruby/README.md new file mode 100644 index 00000000..c966a103 --- /dev/null +++ b/ruby/README.md @@ -0,0 +1,34 @@ +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 |