<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,14 +23,18 @@ module Workling
       
       # subscribe to a queue
       def subscribe(key)
-        @amq.queue(key).subscribe do |value|
+        @amq.queue(key).subscribe do |data|
+          value = Marshal.load(data)
           yield value
         end
       end
       
       # request and retrieve work
       def retrieve(key); @amq.queue(key); end
-      def request(key, value); @amq.queue(key).publish(value); end
+      def request(key, value)
+        data = Marshal.dump(value)
+        @amq.queue(key).publish(data)
+      end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/workling/clients/amqp_client.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>550799ddffacb7db86f0d7c712cde647ccb6e600</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </author>
  <url>http://github.com/purzelrakete/workling/commit/a7b52c7c158ab0f9ccaf963d0aa56266a5e91c00</url>
  <id>a7b52c7c158ab0f9ccaf963d0aa56266a5e91c00</id>
  <committed-date>2009-03-18T11:34:00-07:00</committed-date>
  <authored-date>2009-03-18T07:49:45-07:00</authored-date>
  <message>Marshal AMQP message data

The AMQP client does not seem to work with the latest tmm1-amqp gem.
The message placed on the queue was the result of calling
value#to_s. When the message was pulled off the queue it was the
string representation of the value hash.

This patch marshals the message Hash before placing publishing it
and then unmarshals when it picks it up.

Signed-off-by: Rany Keddo &lt;rany@playtype.net&gt;</message>
  <tree>4637e702101e34457dbfa9232bd94efb9aacc4ec</tree>
  <committer>
    <name>Rany Keddo</name>
    <email>rany@playtype.net</email>
  </committer>
</commit>
