<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
+*.swp
 pkg/
 tmp/
 coverage/</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,6 @@ spec = Gem::Specification.new do |s|
   s.email = EMAIL
   s.homepage = HOMEPAGE
   
-  s.add_dependency &quot;json&quot;
   s.add_dependency &quot;extlib&quot;
   s.add_dependency &quot;systemu&quot;
   s.add_dependency &quot;mixlib-cli&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,21 @@ require 'ohai/log'
 require 'ohai/mixin/from_file'
 require 'ohai/mixin/command'
 require 'ohai/mixin/string'
-require 'json'
+
+begin
+  require 'yajl/json_gem'
+rescue LoadError
+  begin
+    require 'json'
+  rescue LoadError
+    begin
+      require 'json/pure'
+    rescue LoadError
+      STDERR.puts &quot;No valid JSON library detected, please install one of 'yajl-ruby', 'json' or 'json-pure'.&quot;
+      exit -2
+    end
+  end
+end
 
 module Ohai
   class System</diff>
      <filename>lib/ohai/system.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1795eb3815181079efa405698ac23c5d7bf7031a</id>
    </parent>
  </parents>
  <author>
    <name>AJ Christensen</name>
    <email>aj@junglist.gen.nz</email>
  </author>
  <url>http://github.com/opscode/ohai/commit/f89baccc3b9ab587d23e0b6257f6fedffe223c02</url>
  <id>f89baccc3b9ab587d23e0b6257f6fedffe223c02</id>
  <committed-date>2009-10-06T04:57:41-07:00</committed-date>
  <authored-date>2009-10-06T04:57:41-07:00</authored-date>
  <message>OHAI-95: support YAJL &gt; JSON &gt; JSON pure

Removes the direct dependency on a JSON library, allowing for user
choice.

Recommended use of YAJL, it's far quicker.</message>
  <tree>23d887168e963c48e0afea0c8aab8f204581e465</tree>
  <committer>
    <name>AJ Christensen</name>
    <email>aj@junglist.gen.nz</email>
  </committer>
</commit>
