<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -82,6 +82,11 @@ Run the command `pez setup` from your project root to create the file
 	# will set version following this order: 
 	# =&gt; RAILS_ENV, environment.rb version setting, defaults to 'development'
 	RAILS_ENV=&quot;production&quot; pez add git://github.com/fnando/has_streams.git
+	
+	# install, update and remove rails edge
+	pez add git://github.com/rails/rails.git --name=vendor/rails
+	pez update vendor/rails
+	pez remove vendor/rails
 
 NOTE: If you specify a revision (-r or --revision), you won't be able to
 update the repository. To update it, edit the config/plugins.yml file </diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ PKG_FILES = %w(Rakefile pez.gemspec History.txt README.markdown templates/pez.ym
 
 spec = Gem::Specification.new do |s|
   s.name = &quot;pez&quot;
-  s.version = &quot;0.0.11&quot;
+  s.version = &quot;0.0.12&quot;
   s.summary = &quot;Manage Ruby on Rails plugins from GIT and Subversion repositories in a simple way&quot;
   s.authors = [&quot;Nando Vieira&quot;]
   s.email = [&quot;fnando.vieira@gmail.com&quot;]
@@ -70,5 +70,6 @@ namespace :gem do
   desc &quot;Install gem&quot;
   task :install =&gt; [:update_gemspec, :build] do
     system &quot;sudo gem install #{spec.instance_variable_get('@name')}&quot;
+    system &quot;rm *.gem&quot;
   end
 end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,13 @@ Main {
 
     Run 'pez help commandname' for more details.
   TXT
-
+  
+  mode(:rails) {
+    description &lt;&lt;-TXT
+      
+    TXT
+  }
+  
   mode(:add) {
     description &lt;&lt;-TXT
       Add a new mirror to be tracked.
@@ -40,6 +46,7 @@ Main {
       . pez add git://remote/path \\
           --revision=c8d8817450658447e5ef5a661ddc111f7651954f
       . pez add svn://remote/path --revision=999
+      . pez add git://github.com/rails/rails.git --name=vendor/rails
     TXT
 
     mixin :argument_url, :option_type, :option_name, :option_revision, :option_branch
@@ -65,6 +72,7 @@ Main {
     examples &lt;&lt;-TXT
       . pez update plugin_name
       . pez update --all
+      . pez update vendor/rails
     TXT
 
     mixin :optional_name, :option_all
@@ -86,6 +94,7 @@ Main {
     examples &lt;&lt;-TXT
       . pez remove plugin_name
       . pez remove --all
+      . pez remove vendor/rails
     TXT
 
     mixin :optional_name, :option_all</diff>
      <filename>bin/pez</filename>
    </modified>
    <modified>
      <diff>@@ -59,8 +59,11 @@ module Pez
         f &lt;&lt; YAML::dump(c)
       end
       
-      system %( rm -rf #{destination}/#{name} )
-      system %( rm vendor/plugins/#{name} )
+      basename = File.basename(name)
+      symlink_to = name =~ /\// ? name : &quot;vendor/plugins/#{basename}&quot;
+      
+      system %( rm -rf #{destination}/#{basename} )
+      system %( rm #{symlink_to} )
     end
     
     def self.destination
@@ -105,8 +108,9 @@ module Pez
     
     def self.add(url, options={}, skip_config=false)
       name = Pez::Base.name(url, options)
+      basename = File.basename(name)
 
-      puts &quot;Retrieving #{name}...&quot;
+      puts &quot;Retrieving #{basename}...&quot;
       
       if Pez::Base.git?(url, options)
         options[:type] = &quot;git&quot;
@@ -114,19 +118,19 @@ module Pez
         system %(
           mkdir -p #{Pez::Base.destination}
           cd #{Pez::Base.destination}
-          git clone #{url} #{name}
+          git clone #{url} #{basename}
         )
         
         if branch = options[:branch]
           system %(
-            cd #{Pez::Base.destination}/#{name}
+            cd #{Pez::Base.destination}/#{basename}
             git checkout --track -b #{branch} origin/#{branch}
           )
         end
         
         if revision = options[:revision]
           system %( 
-            cd #{Pez::Base.destination}/#{name}
+            cd #{Pez::Base.destination}/#{basename}
             git branch #{revision}
             git checkout #{revision}
           )
@@ -141,13 +145,16 @@ module Pez
         system %(
           mkdir -p #{Pez::Base.destination}
           cd #{Pez::Base.destination}
-          svn co #{url} #{name} -r #{options[:revision] || 'HEAD'}
+          svn co #{url} #{basename} -r #{options[:revision] || 'HEAD'}
         )
       end
       
       puts
       Pez::Base.add_to_config(name, url, options) unless skip_config
-      system %( ln -s #{Pez::Base.destination}/#{name} vendor/plugins/#{name} )
+      
+      symlink_to = name =~ /\// ? name : &quot;vendor/plugins/#{basename}&quot;
+      
+      system %( ln -s #{Pez::Base.destination}/#{basename} #{symlink_to} )
     end
     
     def self.remove(name=nil, options={})
@@ -158,10 +165,11 @@ module Pez
       c = Pez::Base.config
       
       Pez::Base.plugins(name, options).each do |name|
-        dirname = &quot;#{Pez::Base.destination}/#{name}&quot;
+        basename = File.basename(name)
+        dirname = &quot;#{Pez::Base.destination}/#{basename}&quot;
         data = c[name]
         
-        puts &quot;Retrieving #{name}...&quot;
+        puts &quot;Retrieving #{basename}...&quot;
         
         if File.directory?(dirname)
           if data['type'] == 'git'
@@ -196,11 +204,13 @@ module Pez
       c = Pez::Base.config
       
       Pez::Base.plugins(nil, {:all =&gt; 'all'}).each do |name|
-        dirname = &quot;#{Pez::Base.destination}/#{name}&quot;
+        basename = File.basename(name)
+        dirname = &quot;#{Pez::Base.destination}/#{basename}&quot;
         data = c[name]
         
         if File.directory?(dirname)
-          system %( ln -s #{dirname} vendor/plugins/#{name} )
+          symlink_to = name =~ /\// ? name : &quot;vendor/plugins/#{basename}&quot;
+          system %( ln -s #{dirname} #{symlink_to} )
         else
           add(data['repo'], {:type =&gt; data['type'], :name =&gt; name}, true)
         end</diff>
      <filename>lib/pez/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 # RUN : 'rake gem:update_gemspec'
 
 Gem::Specification.new do |s|
-  s.date = &quot;Fri Oct 31 07:30:50 -0200 2008&quot;
-  s.executables = [&quot;pez&quot;]
+  s.date = &quot;Wed Nov 12 22:38:50 -0200 2008&quot;
   s.authors = [&quot;Nando Vieira&quot;]
+  s.require_paths = [&quot;lib&quot;]
   s.required_rubygems_version = &quot;&gt;= 0&quot;
-  s.version = &quot;0.0.11&quot;
+  s.has_rdoc = false
   s.files = [&quot;Rakefile&quot;,
  &quot;pez.gemspec&quot;,
  &quot;History.txt&quot;,
@@ -16,15 +16,15 @@ Gem::Specification.new do |s|
  &quot;lib/pez&quot;,
  &quot;lib/pez/base.rb&quot;,
  &quot;lib/pez.rb&quot;]
-  s.has_rdoc = false
-  s.requirements = [&quot;You'll need GIT and Subversion installed&quot;]
   s.email = [&quot;fnando.vieira@gmail.com&quot;]
-  s.name = &quot;pez&quot;
-  s.bindir = &quot;bin&quot;
+  s.version = &quot;0.0.12&quot;
   s.homepage = &quot;http://github.com/fnando/pez&quot;
+  s.requirements = [&quot;You'll need GIT and Subversion installed&quot;]
+  s.name = &quot;pez&quot;
   s.summary = &quot;Manage Ruby on Rails plugins from GIT and Subversion repositories in a simple way&quot;
+  s.executables = [&quot;pez&quot;]
   s.description = &quot;A simpler plugin manager that checkouts/clones the repository and just do the updates right in&quot;
   s.add_dependency &quot;rubigen&quot;, &quot;&gt;= 0&quot;
   s.add_dependency &quot;main&quot;, &quot;&gt;= 0&quot;
-  s.require_paths = [&quot;lib&quot;]
+  s.bindir = &quot;bin&quot;
 end
\ No newline at end of file</diff>
      <filename>pez.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6b7dbfe92feacbe0f97b9fde607c1e00c8f54482</id>
    </parent>
  </parents>
  <author>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </author>
  <url>http://github.com/fnando/pez/commit/462230848780d6805251c0c1ea165871e8944eef</url>
  <id>462230848780d6805251c0c1ea165871e8944eef</id>
  <committed-date>2008-11-12T16:39:42-08:00</committed-date>
  <authored-date>2008-11-12T16:39:42-08:00</authored-date>
  <message>Added Rails support; you can now freeze it to the plugins directory</message>
  <tree>fabe171b8ed16a829ad6f7cab7a5000a5c334031</tree>
  <committer>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </committer>
</commit>
