aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/README.md
diff options
context:
space:
mode:
authorGravatar temiola <temiola@google.com>2015-01-07 18:43:40 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2015-01-09 17:35:24 -0800
commit0f0a6bc4f0d58156a611f048f0ea16d632ead954 (patch)
treebf4903217abb61b666ab772ce17b0ca5b33c6d7d /src/ruby/README.md
parentc008ae5e506b7d92137d1b905117fc887036e701 (diff)
Switches to using protobuf-ruby.
- Adds a dependency to protobuf-ruby in the gemfile - Updates math.proto to proto3 - Updates math server and client to use protoc protos - Updates interop server and client to use protoc protos Also - Fixes/Updates the noproto samples TESTED: math_server and math_client can communicate locally. Change on 2015/01/07 by temiola <temiola@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83483448
Diffstat (limited to 'src/ruby/README.md')
-rwxr-xr-xsrc/ruby/README.md46
1 files changed, 2 insertions, 44 deletions
diff --git a/src/ruby/README.md b/src/ruby/README.md
index 3a5c50819b..23aec2b20a 100755
--- a/src/ruby/README.md
+++ b/src/ruby/README.md
@@ -20,67 +20,25 @@ DEPENDENCIES
The extension can be built and tested using
[rake](https://rubygems.org/gems/rake). However, the rake-extensiontask rule
is not supported on older versions of rubygems, and the necessary version of
-rubygems is not available on the latest version of Goobuntu.
+rubygems.
This is resolved by using [RVM](https://rvm.io/) instead; install a single-user
-ruby environment, and develop on the latest stable version of ruby (2.1.2).
-
-
-* Proto code generation
-
-To build generate service stubs and skeletons, it's currently necessary to use
-a patched version of a beefcake, a simple third-party proto2 library. This is
-feature compatible with proto3 and will be replaced by official proto3 support
-in protoc.
-
-* Patched protoc
-
-The patched version of beefcake in turn depends on a patched version of protoc.
-This is an update of the latest open source release of protoc with some forward
-looking proto3 patches.
+ruby environment, and develop on the latest stable version of ruby (2.1.5).
INSTALLATION PREREQUISITES
--------------------------
-Install the patched protoc
-
-$ cd <git_repo_dir>
-$ git clone sso://team/one-platform-grpc-team/protobuf
-$ cd protobuf
-$ ./configure --prefix=/usr
-$ make
-$ sudo make install
-
-Install an update to OpenSSL with ALPN support
-
-$ wget https://www.openssl.org/source/openssl-1.0.2-beta3.tar.gz
-$ tar -zxvf openssl-1.0.2-beta3.tar.gz
-$ cd openssl-1.0.2-beta3
-$ ./config shared
-$ make
-$ sudo make install
-
Install RVM
-$ # the -with-openssl-dir ensures that ruby uses the updated version of SSL
$ command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
$
$ # follow the instructions to ensure that your're using the latest stable version of Ruby
$ # and that the rvm command is installed
$
-$ rvm reinstall 2.1.5 --with-openssl-dir=/usr/local/ssl
$ gem install bundler # install bundler, the standard ruby package manager
-Install the patched beefcake, and update the Gemfile to reference
-
-$ cd <git_repo_dir>
-$ git clone sso://team/one-platform-grpc-team/grpc-ruby-beefcake beefcake
-$ cd beefcake
-$ bundle install
-$
-
HACKING
-------