<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Manifest.txt</filename>
    </added>
    <added>
      <filename>README</filename>
    </added>
    <added>
      <filename>VERSION</filename>
    </added>
    <added>
      <filename>pow.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,23 @@
 require 'rubygems'
-require 'hoe'
-require './lib/pow.rb'
 
-Hoe.new('pow', Pow::VERSION) do |p|
-  p.rubyforge_name = 'pow' # if different than lowercase project name
-  p.developer('proabablycorey', 'probablycorey@gmail.com')
-end
\ No newline at end of file
+require File.dirname(__FILE__) + &quot;/lib/pow.rb&quot;
+
+task &quot;gemspec&quot; =&gt; &quot;update_version&quot;
+
+task &quot;update_version&quot; do
+  `echo '#{Pow::VERSION}' &gt; VERSION`
+end
+
+begin
+  require 'jeweler'
+  Jeweler::Tasks.new do |gemspec|
+    gemspec.name = &quot;pow&quot;
+    gemspec.summary = &quot;Easy file and directory handling&quot;
+    gemspec.description = &quot;Manipulating files and directories in Ruby is boring and tedious -- it's missing POW! Pow treats files and directories as ruby objects giving you more power and flexibility.&quot;
+    gemspec.email = &quot;probablycorey@gmail.com&quot;
+    gemspec.homepage = &quot;http://github.com/probablycorey/pow&quot;
+    gemspec.authors = [&quot;Corey Johnson&quot;]
+  end
+rescue LoadError
+  puts &quot;Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com&quot;
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,4 @@
-Make recursive permisions
\ No newline at end of file
+[ ] Make recursive permisions
+[ ] Make copy/move take multiple arguments, not just POW objects
+[ ] Pow objects should figure out if they are a file or directory on each call
+[ ] Path.name should take extension as an optional parameter
\ No newline at end of file</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 require 'fileutils'
 
-require 'pow/pow'
-require 'pow/directory'
-require 'pow/file'
+require File.dirname(__FILE__) + '/pow/pow'
+require File.dirname(__FILE__) + '/pow/directory'
+require File.dirname(__FILE__) + '/pow/file'
 
 module Pow
   VERSION = '0.2.2'</diff>
      <filename>lib/pow.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,6 +35,7 @@ module Pow
     
     def copy_to(dest)
       FileUtils.cp(path.to_s, dest.to_s)
+      Pow(dest)
     end
     alias_method :cp, :copy_to
     
@@ -47,7 +48,7 @@ module Pow
         
     def move_to(dest)
       if FileUtils.mv(path.to_s, dest.to_s)
-        self.path = dest
+        self.path = dest.path
       end
     end
     alias_method :mv, :move_to</diff>
      <filename>lib/pow/file.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,21 +17,15 @@ module Pow
 
     def self.open(*paths, &amp;block) #:nodoc:
       paths.collect! {|path| path.to_s}
-      
-      raw_path = ::File.join(paths)
-      expanded_path = ::File.expand_path(raw_path)
-      klass = nil
-      
-      path = [raw_path, expanded_path].detect { |loc|
-          klass = if ::File.directory?(loc)
-            Directory
-          elsif ::File.file?(loc)
-            File
-          end
-      } 
-      
-      path ||= raw_path
-      klass ||= self
+      path = ::File.join(paths)
+  
+      klass = if ::File.directory?(path)
+        Directory
+      elsif ::File.file?(path)
+        File
+      else
+        self
+      end
   
       klass.new(path, &amp;block)
     end
@@ -50,6 +44,10 @@ module Pow
       path_must_exist
     end
     
+    def write(string)
+      create_file.write(string)
+    end
+        
     def copy_to(dest)
       path_must_exist
     end
@@ -213,4 +211,4 @@ module Pow
       @path = ::File::expand_path(value)
     end
   end
-end
+end
\ No newline at end of file</diff>
      <filename>lib/pow/pow.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,14 +8,14 @@ require 'fileutils'
 require File.dirname(__FILE__) + '/../lib/pow'
 
 describe &quot;A Directory object&quot; do
-  before do
+  setup do
     FileUtils.mkpath &quot;./test_dir/sub_dir&quot;
     
     @dir = Pow(&quot;./test_dir&quot;)
     @sub_dir = @dir/&quot;sub_dir&quot;
   end 
   
-  after do
+  teardown do
     FileUtils.rm_r @dir.to_s if FileTest.exist?(@dir.to_s)
   end
 
@@ -85,7 +85,7 @@ describe &quot;A Directory object&quot; do
 end
 
 describe &quot;The children of a Directory&quot; do
-  before do
+  setup do
     FileUtils.mkpath &quot;./earth/people&quot;
     FileUtils.mkpath &quot;./earth/places&quot;
     FileUtils.mkpath &quot;./earth/things&quot;
@@ -95,7 +95,7 @@ describe &quot;The children of a Directory&quot; do
     @dir = Pow(&quot;./earth/&quot;)
   end
   
-  after do
+  teardown do
     FileUtils.rm_r @dir.to_s if FileTest.exist?(@dir.to_s)
   end
   
@@ -136,14 +136,14 @@ describe &quot;The children of a Directory&quot; do
 end
   
 describe &quot;Enumerable parts of Directory&quot; do
-  before do
+  setup do
     FileUtils.mkpath &quot;./test_dir/sub_dir&quot;
     
     @dir = Pow(&quot;./test_dir&quot;)
     @sub_dir = @dir/&quot;sub_dir&quot;
   end 
   
-  after do
+  teardown do
     FileUtils.rm_r @dir.to_s if FileTest.exist?(@dir.to_s)
   end
   
@@ -167,12 +167,12 @@ describe &quot;Enumerable parts of Directory&quot; do
 end
 
 describe &quot;Using blocks to create Directory structure&quot; do
-  before do
+  setup do
     FileUtils.mkpath &quot;./test_dir/&quot;
     @dir = Pow(&quot;./test_dir&quot;)
   end
   
-  after do
+  teardown do
     FileUtils.rm_r @dir.to_s if FileTest.exist?(@dir.to_s)
   end
   
@@ -209,4 +209,4 @@ describe &quot;Using blocks to create Directory structure&quot; do
     sub_sub_dir.should be_kind_of(Pow::Directory)
     sub_sub_dir.exists?.should be_true
   end
-end
+end
\ No newline at end of file</diff>
      <filename>spec/directory_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ require 'spec'
 require File.dirname(__FILE__) + '/../lib/pow'
 
 describe Pow::File do
-  before do
+  setup do
     @dir_pathname = &quot;./test_dir&quot;
     @filename = &quot;file.txt&quot;  
     FileUtils.mkpath @dir_pathname
@@ -18,7 +18,7 @@ describe Pow::File do
     @file = Pow(&quot;#{@dir_pathname}/#{@filename}&quot;)
   end 
   
-  after do
+  teardown do
     FileUtils.rm_r @dir_pathname
   end
 
@@ -153,4 +153,4 @@ describe Pow::File do
   it &quot;has a parent dir&quot; do    
     @file.parent.should == @dir
   end
-end
+end
\ No newline at end of file</diff>
      <filename>spec/file_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,22 +3,16 @@ require File.dirname(__FILE__) + '/spec_helper.rb'
 require 'pow'
 
 describe Pow::Base, &quot;object creation&quot; do
-  before do
+  setup do
     @dir_pathname = &quot;./test_dir&quot;
     FileUtils.mkdir(@dir_pathname)
     
     @file_pathname = &quot;./test_dir/file&quot;
     open(@file_pathname, &quot;w+&quot;)
-    
-    @home_dir = File.expand_path(&quot;~/&quot;)
-    @home_filename = &quot;you_scream.i_scream.for.specs.txt&quot;  
-    @home_file_path = File.join( @home_dir, @home_filename )
-    open( @home_file_path , &quot;w+&quot;) {|f| f.write &quot;hello.&quot;}
   end 
   
-  after do
+  teardown do
     FileUtils.rmtree @dir_pathname
-    FileUtils.rm @home_file_path
   end
   
   it &quot;opens an exsiting directory as a Pow::Directory&quot; do
@@ -28,13 +22,6 @@ describe Pow::Base, &quot;object creation&quot; do
     path.to_s.should == File.expand_path(@dir_pathname)  
   end
   
-  it &quot;opens ~ directory as a Pow::Directory&quot; do
-    path = Pow::Base.open('~')
-    path.should be_instance_of(Pow::Directory)
-    
-    path.to_s.should == File.expand_path('~')  
-  end  
-  
   it &quot;opens an exsiting file as a File&quot; do
     path = Pow::Base.open(@file_pathname)
     path.should be_instance_of(Pow::File)
@@ -42,42 +29,18 @@ describe Pow::Base, &quot;object creation&quot; do
     path.to_s.should == File.expand_path(@file_pathname)    
   end
   
-  it &quot;opens an exsiting file in ~/ as a File with Pow method&quot; do
-    path = Pow::Base.open( '~', @home_filename)
-    path.should be_instance_of(Pow::File)
-    
-    path.to_s.should == File.expand_path(File.join('~',@home_filename))
-  end  
-  
   it &quot;opens an non-exsiting path as a Pow&quot; do
     path = Pow::Base.open(&quot;./blah/blah/blah/blah&quot;)
     path.should be_instance_of(Pow::Base)
   end
 
-  it &quot;opens an non-exsiting path under ~/ as a Pow&quot; do
-    path = Pow::Base.open(&quot;~/blah.blah.pow.pow&quot;)
-    path.should be_instance_of(Pow::Base)
-  end
-
   it &quot;opens path with Pow method.&quot; do    
     path = Pow(@dir_pathname)
     path.should be_kind_of(Pow::Directory)
     
     path.to_s.should == File.expand_path(@dir_pathname)    
   end
-
-  it &quot;expands and opens ~ path with Pow method&quot; do
-    path = Pow('~')
-    path.should be_instance_of(Pow::Directory)
-    
-    path.to_s.should == File.expand_path('~') 
-  end
   
-  it &quot;expands and opens ~/ directory with Pow method&quot; do
-    dir = Pow('~/')
-    dir.should be_instance_of(Pow::Directory)
-  end
-      
   it &quot;opens using string with Pow::Base.open.&quot; do    
     path = Pow(@dir_pathname.to_s)
     path.should be_kind_of(Pow::Directory)
@@ -108,7 +71,7 @@ describe Pow::Base, &quot;object creation&quot; do
 end
 
 describe Pow::Base, &quot;object equality&quot; do
-  before do
+  setup do
     @path = &quot;./blah1/blah2/blah3/blah4&quot;
     @pow = Pow::Base.open(@path)
   end 
@@ -123,7 +86,7 @@ describe Pow::Base, &quot;object equality&quot; do
 end
 
 describe Pow::Base, &quot;nonexistent paths&quot; do
-  before do
+  setup do
     @pow = Pow::Base.open(&quot;./blah/blah/blah/blah&quot;)
   end 
   
@@ -137,12 +100,12 @@ describe Pow::Base, &quot;nonexistent paths&quot; do
 end
 
 describe Pow::Base, &quot;creation&quot; do
-  before do
+  setup do
     FileUtils.mkpath &quot;./test_dir/&quot;
     @dir = Pow(&quot;./test_dir&quot;).create
   end
   
-  after do
+  teardown do
     FileUtils.rm_r @dir.to_s if FileTest.exist?(@dir.to_s)
   end
   
@@ -159,4 +122,4 @@ describe Pow::Base, &quot;creation&quot; do
     path.should be_kind_of(Pow::Directory)
     File.exists?(path.to_s)
   end
-end
+end
\ No newline at end of file</diff>
      <filename>spec/pow_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README.txt</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>53acee2e7d08970c11425ad8b827c02b93ea3946</id>
    </parent>
  </parents>
  <author>
    <name>Corey Johnson</name>
    <email>probablycorey@gmail.com</email>
  </author>
  <url>http://github.com/probablycorey/pow/commit/b1abb3544e6de29f3c4b7a67082e5d32722478af</url>
  <id>b1abb3544e6de29f3c4b7a67082e5d32722478af</id>
  <committed-date>2009-09-17T08:45:36-07:00</committed-date>
  <authored-date>2009-09-17T08:45:36-07:00</authored-date>
  <message>No more hoe! Pow now uses jeweler</message>
  <tree>2a802ee1b2bb226d8c7cabb03a61e8558a77ee05</tree>
  <committer>
    <name>Corey Johnson</name>
    <email>probablycorey@gmail.com</email>
  </committer>
</commit>
