<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,8 @@
 
 Test whether a parsed JSON type conforms to a type specification, read
 from a string or file that matches the proposed ECMAScript 4.0 type
-syntax.
+syntax (PDF[http://www.ecmascript.org/es4/spec/overview.pdf]).
+
 
 == Install
 
@@ -20,9 +21,19 @@ syntax.
 
 == RSpec Matcher
 
-      1.should conform_to_js('int')
-      1.should_not conform_to_js('string')
-  
+  [1, 'xyzzy'].should conform_to_js('[int, string]')
+  [1, 2, 'xyzzy'].should_not conform_to_js('[int, string]')
+  {:x =&gt; 1}.should conform_to_js('{x: int}')
+
+Use this with the &quot;JavaScriptFu&quot;[http://osteele.com/archives/2008/04/javascript-fu-rails-plugin] plugin to test JSON arguments:
+
+  '&lt;script&gt;fn(&quot;id&quot;, {x:1, y:2}, true)&lt;/script&gt;'.should call_js('fn') do |args|
+    args[0].should conform_to_js('string')
+    args[1].should conform_to_js('{x:int, y:int}')
+    args[2].should conform_to_js('boolean')
+    # or:
+    args.should conform_to_js('[string, {x:int, y:int}, boolean]')
+  end
 
 == License
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -4,12 +4,14 @@ require 'spec/rake/spectask'
 
 PKG_VERSION = '0.1'
 
+task :test =&gt; :spec
+
 Echoe.new('jcon', PKG_VERSION) do |p|
   p.summary       = &quot;Test JSON values against a schema.&quot;
   p.url           = 'http://jcon.rubyforge.org'
   p.description    = &lt;&lt;-EOF
     Test JSON values for conformance with ECMAScript 4.0 types.
-EOF
+  EOF
   p.author         = 'Oliver Steele'
   p.email          = 'steele@osteele.com'
   p.ignore_pattern = /^(.git|.*#.*#)$/</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
 = JCon TODO
 
 Next:
-* docs
-* locate the failure
+* docs -- add the README
+* check the spec
+* add method to display path to mismatch
 * rename SimpleType
-* detect circular references
 
 Error detection:
 * circular references</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -39,8 +39,10 @@ describe JCON::Matchers do
       [[[1], 2], {'x' =&gt; 1, 'y' =&gt; 2, 'z' =&gt; 3}].should conform_to_js('[[Array, (int, boolean)], {x: double, y: double, z: double?}]')
     end
     
-    it &quot;should test optional properties&quot; do
-      pending { {'x' =&gt; 1, 'y' =&gt; 2}.should conform_to_js('{x: double, y: double, z: double?}') }
+    it &quot;should work with the examples in the README&quot; do
+      [1, 'xyzzy'].should conform_to_js('[int, string]')
+      [1, 2, 'xyzzy'].should_not conform_to_js('[int, string]')
+      {:x =&gt; 1}.should conform_to_js('{x: int}')
     end
   end
 end</diff>
      <filename>spec/matchers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f134969e5326f55a2382f696cab69347fe5f2016</id>
    </parent>
  </parents>
  <author>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </author>
  <url>http://github.com/osteele/jcon/commit/8471760c58c1bcd2c64788b93feefb0a58ce9759</url>
  <id>8471760c58c1bcd2c64788b93feefb0a58ce9759</id>
  <committed-date>2008-04-16T19:11:54-07:00</committed-date>
  <authored-date>2008-04-16T19:11:54-07:00</authored-date>
  <message>add example of js fu integration</message>
  <tree>ccffe27ae6e6211a00940148113c2aed83478f9a</tree>
  <committer>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </committer>
</commit>
