<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,22 +3,24 @@ module Clipper
 
     class StringSerializer
       def self.load(value)
-        value.to_s
+        value.nil? ? nil : value.to_s
       end
     end
 
     class IntegerSerializer
       def self.load(value)
-        Integer(value)
+        value.nil? ? nil : Integer(value)
       end
     end
 
     class BooleanSerializer
       def self.load(value)
-        if value.nil? or value == false or value == 0
-          return false
+        if value.nil?
+          nil
+        elsif value == false or value == 0
+          false
         else
-          return true
+          true
         end
       end
     end</diff>
      <filename>lib/clipper/accessors/typed_accessor.rb</filename>
    </modified>
    <modified>
      <diff>@@ -37,5 +37,14 @@ class TypedAccessorTest &lt; Test::Unit::TestCase
 
     assert_equal(&quot;Bob&quot;, bob.name)
   end
+
+  def test_set_nil
+    bob = Person.new
+    Person.accessors[:name].set(bob, nil)
+    Person.accessors[:age].set(bob, nil)
+
+    assert_nil(bob.name)
+    assert_nil(bob.age)
+  end
 end
 </diff>
      <filename>tests/unit/accessors/typed_accessor_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b3d6065d2487d5b915aab1ba448ad0915198f965</id>
    </parent>
  </parents>
  <author>
    <name>Fabio Rehm</name>
    <email>fgrehm@gmail.com</email>
  </author>
  <url>http://github.com/wiecklabs/clipper/commit/94481a042778750b34e8e9f3eaecb5522bd14756</url>
  <id>94481a042778750b34e8e9f3eaecb5522bd14756</id>
  <committed-date>2009-09-22T18:36:45-07:00</committed-date>
  <authored-date>2009-09-22T18:36:45-07:00</authored-date>
  <message>Supporting nil values for TypedAccessor</message>
  <tree>5d9451e7ba1c3235f4ccdbab77b7230f7d13f678</tree>
  <committer>
    <name>Fabio Rehm</name>
    <email>fgrehm@gmail.com</email>
  </committer>
</commit>
