[svn] commit: r33 - in /experiments/graff-ccapi: protocol.txt ruby/lib/cc/message.rb

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Sep 25 18:01:49 UTC 2009


Author: mgraff
Date: Fri Sep 25 18:01:49 2009
New Revision: 33

Log:
use the example from the docs.

Modified:
    experiments/graff-ccapi/protocol.txt
    experiments/graff-ccapi/ruby/lib/cc/message.rb

Modified: experiments/graff-ccapi/protocol.txt
==============================================================================
--- experiments/graff-ccapi/protocol.txt (original)
+++ experiments/graff-ccapi/protocol.txt Fri Sep 25 18:01:49 2009
@@ -144,7 +144,7 @@
 {
   "from" => "sender at host",
   "to" => "recipient at host",
-  "seq" => "1234",
+  "seq" => 1234,
   "data" => {
     "list" => [ 1, 2, nil, "this" ],
     "description" => "Fun for all",

Modified: experiments/graff-ccapi/ruby/lib/cc/message.rb
==============================================================================
--- experiments/graff-ccapi/ruby/lib/cc/message.rb (original)
+++ experiments/graff-ccapi/ruby/lib/cc/message.rb Fri Sep 25 18:01:49 2009
@@ -192,9 +192,13 @@
 
 if $0 == __FILE__
   target = {
-    "foo" => "bar",
-    "this" => :that,
-    :array => [ 1, 2, 3, 4, 5, nil, "this", { "inner" => "outer" }, [:a, :b, :c]],
+    "from" => "sender at host",
+    "to" => "recipient at host",
+    "seq" => 1234,
+    "data" => {
+      "list" => [ 1, 2, nil, "this" ],
+      "description" => "Fun for all",
+    },
   }
 
   wire = CCMessage.to_wire(target)




More information about the bind10-changes mailing list