README.md in bertrpc-0.2.0 vs README.md in bertrpc-0.3.0
- old
+ new
@@ -15,24 +15,46 @@
Installation
------------
- gem install mojombo-bertrpc -s http://gems.github.com
+From GemCutter:
+ gem install bertrpc
-Example
--------
+From GitHub:
+ gem install mojombo-bertrpc -s http://gems.github.com \
+ -s http://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
-This generates a BERT-RPC request like so:
+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
---------