<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -101,8 +101,8 @@ task :json_feeds =&gt; :prepare_targets do
   end
   
   file_path = WORKING / 'tmp' / 'sc' / 'targets.json'
-  FileUtils.mkdir_p(File.basename(file_path))
-  File.open(file_path, 'w+') { |f| f.write(json_hash.to_json) }
+  FileUtils.mkdir_p(File.dirname(file_path))
+  File.open(file_path, 'w') { |f| f.write(json_hash.to_json) }
   
   OPTS[:feeds] = {
     'sc/targets.json' =&gt; file_path</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>18945c0170e48c567177986875a4187f8deef277</id>
    </parent>
  </parents>
  <author>
    <name>Charles Jolley</name>
    <email>charles@sproutit.com</email>
  </author>
  <url>http://github.com/sproutit/sproutcore-samples/commit/3b0549302c1623646f700a9e6a47b54806028a1c</url>
  <id>3b0549302c1623646f700a9e6a47b54806028a1c</id>
  <committed-date>2009-08-27T14:53:31-07:00</committed-date>
  <authored-date>2009-08-27T14:53:31-07:00</authored-date>
  <message>Fix bug with Rakefile for building demos with targets.json does not yet exist.</message>
  <tree>e810879de27b677e2f2ac06f642ef89cbd5d7400</tree>
  <committer>
    <name>Charles Jolley</name>
    <email>charles@sproutit.com</email>
  </committer>
</commit>
