From 27e2b57830c328b83286e055752bf92790587953 Mon Sep 17 00:00:00 2001 From: Isaiah Peng Date: Wed, 24 Dec 2014 15:48:41 +0100 Subject: add jruby support by protobuf-java reflection API --- ruby/README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'ruby/README.md') diff --git a/ruby/README.md b/ruby/README.md index 8331d286..d2fa76ab 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -60,15 +60,28 @@ To build this Ruby extension, you will need: * Ruby development headers * a C compiler -First, install the required Ruby gems: +To Build the JRuby extension, you will need: - $ sudo gem install bundler rake rake-compiler rspec rubygems-tasks +* Maven +* The latest version of the protobuf java library +* Install JRuby via rbenv or RVM + +First switch to the desired platform with rbenv or RVM. + +Then install the required Ruby gems: + + $ gem install bundler + $ bundle Then build the Gem: $ rake gem $ gem install pkg/protobuf-$VERSION.gem +To run the specs: + + $ rake test + This gem includes the upb parsing and serialization library as a single-file amalgamation. It is up-to-date with upb git commit `535bc2fe2f2b467f59347ffc9449e11e47791257`. -- cgit v1.2.3