<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ and signed using X.509 certificates and RSA cryptographic keys.
 
 To run it:
   1. Make sure you have AMQP setup properly (same setup as simpleagent example)
-  2. run a secure agent ('nanite-agent --token secure --format :secure')
+  2. run a secure agent ('nanite-agent --token secure --format secure')
   3. run ./cli.rb
 
 This will send a request to the agent telling it to print some output using</diff>
      <filename>examples/secure/README</filename>
    </modified>
    <modified>
      <diff>@@ -69,7 +69,7 @@ module Nanite
       end
 
       opts.on(&quot;-f&quot;, &quot;--format FORMAT&quot;, &quot;The serialization type to use for transfering data. Can be marshal, json or yaml. Default is marshal&quot;) do |fmt|
-        options[:format] = fmt
+        options[:format] = fmt.to_sym
       end
 
       opts.on(&quot;-d&quot;, &quot;--daemonize&quot;, &quot;Run #{type} as a daemon&quot;) do |d|</diff>
      <filename>lib/nanite/config.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,7 +35,7 @@ module Nanite
     #
     # identity    : identity of this mapper, may be any string
     #
-    # format      : format to use for packets serialization. Can be :marshal, :json or :yaml.
+    # format      : format to use for packets serialization. Can be :marshal, :json or :yaml or :secure.
     #               Defaults to Ruby's Marshall format. For interoperability with
     #               AMQP clients implemented in other languages, use JSON.
     #
@@ -43,6 +43,9 @@ module Nanite
     #               and ActiveSupport's JSON encoder may cause clashes
     #               if ActiveSupport is loaded after JSON gem.
     #
+    #               Also using the secure format requires prior initialization of the serializer, see
+    #               SecureSerializer.init
+    #
     # log_level   : the verbosity of logging, can be debug, info, warn, error or fatal.
     #
     # agent_timeout   : how long to wait before an agent is considered to be offline</diff>
      <filename>lib/nanite/mapper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ module Nanite
     # The secure serializer should not be part of the cascading
     def initialize(preferred_format = :marshal)
       preferred_format ||= :marshal
-      if preferred_format == :secure
+      if preferred_format.to_s == 'secure'
         @serializers = [ SecureSerializer ]
       else
         preferred_serializer = SERIALIZERS[preferred_format.to_sym]</diff>
      <filename>lib/nanite/serializer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>443038429657c11831a23c6618d2ee838909b3e1</id>
    </parent>
  </parents>
  <author>
    <name>raphael</name>
    <email>simon.raphael@gmail.com</email>
  </author>
  <url>http://github.com/ezmobius/nanite/commit/a3791c97d2b5caf0996644ed91629897b967fb60</url>
  <id>a3791c97d2b5caf0996644ed91629897b967fb60</id>
  <committed-date>2009-04-15T21:41:33-07:00</committed-date>
  <authored-date>2009-04-15T11:51:18-07:00</authored-date>
  <message>Fixed issues with --format argument parsing for secure serializer initialization.

Signed-off-by: ezmobius &lt;ez@engineyard.com&gt;</message>
  <tree>e7472a14045d65b15f36454d6614aefce93abd8c</tree>
  <committer>
    <name>ezmobius</name>
    <email>ez@engineyard.com</email>
  </committer>
</commit>
