<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <filename>COPYING.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,12 @@
+=== 0.0.2 / 2008-12-19
+
+* 2 major fixes
+
+  * Fixed test parameters
+
+  * Fixed script handling of relative file names
+
+
 === 0.0.1 / 2008-09-08
 
 * 1 major enhancement</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -54,7 +54,7 @@ require 'rdoc/usage'
 require 'yaml'
 
 class Frame
-  VERSION = &quot;0.0.1&quot;
+  VERSION = &quot;0.0.2&quot;
   
   def initialize (arguments)    
     @arguments = arguments</diff>
      <filename>lib/frame.rb</filename>
    </modified>
    <modified>
      <diff>@@ -102,20 +102,30 @@ class Move
   end
   
   def file_of_status file, status
-    &quot;#{status}/#{File.basename(file)}&quot;
+    &quot;#{@project_dir}/#{status}/#{File.basename(file)}&quot;
   end
     
   def file_path_in_project name
     # Default to preparatory if no directory provided
+    # FIXME add absolute and relative paths
     if name.index('/') == nil
-      &quot;preparatory/&quot; + name
+      &quot;#{@project_dir}/preparatory/&quot; + name
     else
       name
     end
   end
   
   def process_arguments
-    @work = file_path_in_project @arguments[0]
+    if File.dirname(@arguments[0]) == &quot;.&quot;
+      # filename only
+      @work = &quot;#{@project_dir}/preparatory/#{@arguments[0]}&quot;
+    elsif @arguments[0].index(@project_dir) != nil # Robustify me
+      # absolute path
+      @work = @arguments[0]
+    else
+      # status/filename
+      @work = &quot;#{@project_dir}/#{@arguments[0]}&quot;
+    end
     @destination = file_of_status @work, @status
   end
   </diff>
      <filename>lib/move.rb</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,16 @@ class Work
     opts.on('-v', '--version')        { output_version ; exit 0 }
     opts.on('-h', '--help')           { output_help }
     opts.on('-c FILE', '--copy FILE') do |source|
-      @source_work_name = &quot;#{@work_dir}/#{source}&quot; 
+      if File.dirname(source) == &quot;.&quot;
+        # filename only
+        @source_work_name = &quot;#{@work_dir}/#{source}&quot;
+      elsif source.index(@project_dir) != nil # Robustify me
+        # absolute path
+        @source_work_name = source
+      else
+        # status/filename
+        @source_work_name = &quot;#{@project_dir}/#{source}&quot;
+      end
     end
     # This consumes matched arguments from @arguments
     opts.parse!(@arguments) rescue return false</diff>
      <filename>lib/work.rb</filename>
    </modified>
    <modified>
      <filename>templates/template.psd</filename>
    </modified>
    <modified>
      <filename>templates/template.svg</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@ end
 
 # Test making a project
 
-Kernel.system '../bin/frame', 'test_project' 
+Kernel.system 'bin/frame', 'test_project'
 raise &quot;Couldn't make test project.&quot; unless File.exist? './test_project'
 
 
@@ -34,32 +34,32 @@ raise &quot;Couldn't make test project.&quot; unless File.exist? './test_project'
 
 Kernel.system 'test_project/script/work', 'work.svg' 
 raise &quot;Couldn't make test svg work.&quot; unless 
-  File.exist? './test_project/preparatory/work.svg'
+  File.exist? 'test_project/preparatory/work.svg'
 
 Kernel.system 'test_project/script/work', '-c', 'work.svg', 'work2.svg'
 raise &quot;Couldn't make relative test svg work copy.&quot; unless 
-  File.exist? './test_project/preparatory/work2.svg'
+  File.exist? 'test_project/preparatory/work2.svg'
 
 Kernel.system 'test_project/script/work', '-c', 
-              './test_project/preparatory/work2.svg', 'work3.svg'
+              'preparatory/work2.svg', 'work3.svg'
 raise &quot;Couldn't make absolute test svg work copy.&quot; unless 
-  File.exist? './test_project/preparatory/work3.svg'
+  File.exist? 'test_project/preparatory/work3.svg'
 
 
 # Test Move
 
 Kernel.system 'test_project/script/move', '--discard', 'work2.svg'
 raise &quot;Couldn't move work to discard.&quot; unless 
-  File.exist? './test_project/final/work2.svg'
+  File.exist? 'test_project/discard/work2.svg'
 
 Kernel.system 'test_project/script/move', '--final', 'work3.svg'
 raise &quot;Couldn't move work to final.&quot; unless 
-  File.exist? './test_project/final/work3.svg'
+  File.exist? 'test_project/final/work3.svg'
 
 Kernel.system 'test_project/script/move', '--discard', 'work.svg'
-Kernel.system 'test_project/script/move', '--preparatory', 'work.svg'
+Kernel.system 'test_project/script/move', '--preparatory', 'discard/work.svg'
 raise &quot;Couldn't move work back to preparatory.&quot; unless 
-  File.exist? './test_project/final/work.svg'
+  File.exist? 'test_project/preparatory/work.svg'
 
 
 # Test Release</diff>
      <filename>test/test_frame.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0ee26e5ab2e328c282d0d03f07edd854566e9ea8</id>
    </parent>
  </parents>
  <author>
    <name>Rob Myers</name>
    <email>rob@robmeyrs.org</email>
  </author>
  <url>http://github.com/robmyers/frame/commit/00efba16d6fa07be6923135d6003df31256f97bf</url>
  <id>00efba16d6fa07be6923135d6003df31256f97bf</id>
  <committed-date>2008-12-19T15:25:13-08:00</committed-date>
  <authored-date>2008-12-19T15:25:13-08:00</authored-date>
  <message>Fixed the test suite and handling of relative paths.</message>
  <tree>9cc6d4120a641f9641b8e76c1b5e1aca3b309518</tree>
  <committer>
    <name>Rob Myers</name>
    <email>rob@robmeyrs.org</email>
  </committer>
</commit>
