Skip to content
Snippets Groups Projects
Commit d8521e75 authored by murgatroid99's avatar murgatroid99
Browse files

Update Ruby README with simpler install instructions

parent a9c61bc5
No related branches found
No related tags found
No related merge requests found
...@@ -13,41 +13,16 @@ PREREQUISITES ...@@ -13,41 +13,16 @@ PREREQUISITES
------------- -------------
- Ruby 2.x. The gRPC API uses keyword args. - Ruby 2.x. The gRPC API uses keyword args.
- [homebrew][] on Mac OS X. These simplify the installation of the gRPC C core.
INSTALLATION INSTALLATION
--------------- ---------------
**Linux (Debian):** **Linux and Mac OS X:**
Add [Debian jessie-backports][] to your `sources.list` file. Example:
```sh
echo "deb http://http.debian.net/debian jessie-backports main" | \
sudo tee -a /etc/apt/sources.list
```
Install the gRPC Debian package
```sh
sudo apt-get update
sudo apt-get install libgrpc-dev
```
Install the gRPC Ruby package
```sh ```sh
gem install grpc gem install grpc
``` ```
**Mac OS X**
Install [homebrew][]. Run the following command to install gRPC Ruby.
```sh
$ curl -fsSL https://goo.gl/getgrpc | bash -s ruby
```
This will download and run the [gRPC install script][], then install the latest version of gRPC Ruby gem. It also installs Protocol Buffers compiler (_protoc_) and the gRPC _protoc_ plugin for ruby.
BUILD FROM SOURCE BUILD FROM SOURCE
--------------------- ---------------------
- Clone this repository - Clone this repository
...@@ -95,8 +70,7 @@ Directory structure is the layout for [ruby extensions][] ...@@ -95,8 +70,7 @@ Directory structure is the layout for [ruby extensions][]
resp = stub.div(req) resp = stub.div(req)
GRPC.logger.info("Answer: #{resp.inspect}") GRPC.logger.info("Answer: #{resp.inspect}")
``` ```
[homebrew]:http://brew.sh
[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
[ruby extensions]:http://guides.rubygems.org/gems-with-extensions/ [ruby extensions]:http://guides.rubygems.org/gems-with-extensions/
[rubydoc]: http://www.rubydoc.info/gems/grpc [rubydoc]: http://www.rubydoc.info/gems/grpc
[grpc.io]: http://www.grpc.io/docs/installation/ruby.html [grpc.io]: http://www.grpc.io/docs/installation/ruby.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment