| CARVIEW |
Hi! mojombo is using GitHub to share code with you!
But GitHub is more than just a place to share code. It's a place to keep tabs on your favorite developers and projects, easily contribute fixes and new features, and visualize what's going on inside your codebase!
Every repository with this icon (
Every repository with this icon (
| Description: | BERTRPC is a Ruby BERT-RPC client library. edit |
| Homepage: | edit |
| Public Clone URL: |
git://github.com/mojombo/bertrpc.git
Give this clone URL to anyone.
git clone git://github.com/mojombo/bertrpc.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mojombo/bertrpc.git
|
| name | age | message | |
|---|---|---|---|
| |
.document | Mon May 18 19:33:40 -0700 2009 | add readme [mojombo] |
| |
.gitignore | Mon May 18 19:24:30 -0700 2009 | Initial commit to bertrpc. [mojombo] |
| |
History.txt | Mon Oct 19 22:02:51 -0700 2009 | update history and readme for 1.0.0 release [mojombo] |
| |
LICENSE | Mon May 18 19:24:30 -0700 2009 | Initial commit to bertrpc. [mojombo] |
| |
README.md | Mon Oct 19 22:02:51 -0700 2009 | update history and readme for 1.0.0 release [mojombo] |
| |
Rakefile | Mon Oct 19 22:08:22 -0700 2009 | update history, readme, and deps for 1.0.0 release [mojombo] |
| |
VERSION | Mon Oct 19 22:03:31 -0700 2009 | Version bump to 1.0.0 [mojombo] |
| |
bertrpc.gemspec | Mon Oct 19 22:22:14 -0700 2009 | Regenerated gemspec for version 1.0.0 [mojombo] |
| |
lib/ | Thu Oct 08 18:29:27 -0700 2009 | Convert to use BERT gem [mojombo] |
| |
test/ | Thu Oct 08 18:29:27 -0700 2009 | Convert to use BERT gem [mojombo] |
BERTRPC
By Tom Preston-Werner (tom@mojombo.com)
BERT-RPC client library for Ruby. Makes it ridiculously simple to interface with BERT-RPC servers.
See the full BERT-RPC specification at bert-rpc.org.
This library currently only supports the following BERT-RPC features:
callrequestscastrequests
BERTRPC was developed for GitHub and is currently in production use performing millions of RPC requests every day. The stability and performance have been exemplary.
Installation
$ gem install bertrpc -s https://gemcutter.org
Examples
Require the library and create a service:
require 'bertrpc'
svc = BERTRPC::Service.new('localhost', 9999)
Make a call:
svc.call.calc.add(1, 2)
# => 3
The underlying BERT-RPC transaction of the above call is:
-> {call, calc, add, [1, 2]}
<- {reply, 3}
Make a cast:
svc.cast.stats.incr
# => nil
The underlying BERT-RPC transaction of the above cast is:
-> {cast, stats, incr, []}
<- {noreply}
Copyright
Copyright (c) 2009 Tom Preston-Werner. See LICENSE for details.








