aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/README.md
diff options
context:
space:
mode:
authorGravatar Isaiah Peng <issaria@gmail.com>2014-12-24 15:48:41 +0100
committerGravatar Isaiah Peng <issaria@gmail.com>2015-03-10 23:14:08 +0100
commit27e2b57830c328b83286e055752bf92790587953 (patch)
tree6cf4de2cbcb24d53b2475ed15d6a61a98712685c /ruby/README.md
parenta5f7bb8ebb60d636c21c18ad2ffeda80e8f80a48 (diff)
add jruby support by protobuf-java reflection API
Diffstat (limited to 'ruby/README.md')
-rw-r--r--ruby/README.md17
1 files changed, 15 insertions, 2 deletions
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`.