Project

protobuffy

0.01
No commit activity in last 3 years
No release in over 3 years
Google Protocol Buffers serialization and RPC implementation for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

<= 2.0.4
= 2.3.0.6
~> 1.0
< 11.0
>= 3.0
~> 0.38.0
>= 0
>= 0

Runtime

 Project Readme

Protobuffy

(the JSON slayer)

Gem Version Build Status Gitter chat protobuf API Documentation

Protobuffy is an implementation of Google's protocol buffers in ruby, version 2.5.0 is currently supported.

Install

See our Installation Guide on the wiki.

Usage

The wiki contains in-depth guides on the various ways to use this gem including compiling definitions, object APIs, services, clients, and even an API roadmap.

Examples

In two different terminals run the follow pairs of commands:

Socket:

bundle exec bin/rpc_server start --socket ./examples/lib/example/reverse-service.rb
bundle exec examples/bin/reverse-client-socket '!skrow tekcos'

ZeroMQ:

bundle exec bin/rpc_server start --zmq ./examples/lib/example/reverse-service.rb
bundle exec examples/bin/reverse-client-zmq '!skrow qmorez'

HTTP:

bundle exec bin/rpc_server start --http ./examples/lib/example/reverse-service.rb
bundle exec examples/bin/reverse-client-http '!skrow ptth'

Alternatively, start the server as a Rack app using a rackup and a standard config.ru:

bundle exec rackup examples/config.ru -p 9399

Changelog

See recent changes in the release notes or the changelog.