<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,14 @@
-require &quot;json/add/rails&quot;
+begin
+  # If the json gem is available, use it
+  require &quot;json/add/rails&quot;
+rescue MissingSourceFile
+  # Otherwise wrap the ActiveSupport JSON implementation for our simple use case
+  class JSON
+    def self.parse(i)
+      ActiveSupport::JSON.decode(i)
+    end
+  end
+end
 
 class Contacts
   class Gmail &lt; Base</diff>
      <filename>lib/contacts/gmail.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50f0ba8839583740d688a23d6341a5eabcef43fc</id>
    </parent>
  </parents>
  <author>
    <name>Bill Kirtley</name>
    <email>bill@virosity.com</email>
  </author>
  <url>http://github.com/cardmagic/contacts/commit/ff2d277d19af4c6d8b08a7a98f70bebcebcea53b</url>
  <id>ff2d277d19af4c6d8b08a7a98f70bebcebcea53b</id>
  <committed-date>2009-05-06T13:46:08-07:00</committed-date>
  <authored-date>2009-05-01T11:55:31-07:00</authored-date>
  <message>Tolerate absence of the json gem by wrapping ActiveSupport::JSON

Signed-off-by: Lucas Carlson &lt;lucas@rufy.com&gt;</message>
  <tree>058b1be57b283c9951726df4ae4cad55f8993ba9</tree>
  <committer>
    <name>Lucas Carlson</name>
    <email>lucas@rufy.com</email>
  </committer>
</commit>
