<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,27 @@
+#!/usr/bin/env ruby
+
+#--
+# Copyright (c) 2003, 2004, 2005, 2006, 2007  Jim Weirich
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#++
+
 begin
   require 'rake'
 rescue LoadError</diff>
      <filename>bin/rake</filename>
    </modified>
    <modified>
      <diff>@@ -495,16 +495,6 @@ module Rake
       @arg_names ? &quot;[#{(arg_names || []).join(',')}]&quot; : nil
     end
 
-    # Hash of argument names to argument positions (0 based).  (empty if no
-    # named arguments).
-    def arg_map
-      result = {}
-      arg_names.each_with_index do |n, i|
-        result[n] = i
-      end
-      result
-    end
-
     # Name of arguments for this task.
     def arg_names
       @arg_names || []
@@ -541,16 +531,6 @@ module Rake
       }
     end
 
-    # Setup the arguments to be passed to prerequesites.
-    def xsetup_arguments(prereq)   # :nodoc:
-      if ! arg_names.empty? &amp;&amp; ! prereq.arg_names.empty?
-        prereq.args = prereq.arg_names.collect do |name|
-          arg_map[name] ? args[arg_map[name]] : nil
-        end
-      end
-    end
-    #private :setup_arguments
-
     # Format the trace flags for display.
     def format_trace_flags
       flags = []
@@ -2152,6 +2132,7 @@ module Rake
         $silent = options.silent
       end
     rescue NoMethodError =&gt; ex
+      puts &quot;DBG: RESCUING xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;
       raise GetoptLong::InvalidOption, &quot;While parsing options, error = #{ex.class}:#{ex.message}&quot;
     end
 </diff>
      <filename>lib/rake.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,12 @@
-
 module Ruby19
   PROG = '/Users/jim/local/ruby19/bin/ruby'
   GEM_HOME = '/Users/jim/local/ruby19/lib/ruby/gems/1.9'
 
+  RELEASE_FILES = FileList['bin/rake', 'lib/rake.rb', 'lib/rake/**/*']
+  RELEASE_FILES.exclude('lib/rake/lib', 'project.rake', 'lib/rake/plugins', 'lib/rake/contrib')
+
+  SVN = &quot;../thirdparty/ruby&quot;
+
   def run_tests(files)
     sh &quot;#{PROG} -Ilib lib/rake/rake_test_loader.rb #{files}&quot;
   end
@@ -11,6 +15,33 @@ module Ruby19
 end
 
 namespace &quot;ruby19&quot; do
+  desc &quot;Ruby Release Files&quot;
+  task :release_files do
+    puts Ruby19::RELEASE_FILES
+  end
+
+  desc &quot;Release Rake Files to Ruby 19 SVN working area&quot;
+  task :release =&gt; [:check_svn] do
+    dirs = Ruby19::RELEASE_FILES.select { |fn| File.directory?(fn) }
+    dirs.each do |dir| mkdir_p &quot;#{Ruby19::SVN}/#{dir}&quot; end
+    Ruby19::RELEASE_FILES.each do |fn|
+      cp fn, &quot;#{Ruby19::SVN}/#{fn}&quot; unless File.directory?(fn)
+    end
+  end
+
+  desc &quot;Remove Rake from the Ruby 19 SVN&quot;
+  task :unrelease =&gt; [:check_svn] do
+    rm_r &quot;#{Ruby19::SVN}/bin/rake&quot; rescue nil
+    rm_r &quot;#{Ruby19::SVN}/lib/rake&quot; rescue nil
+    rm_r &quot;#{Ruby19::SVN}/lib/rake.rb&quot; rescue nil
+  end
+
+  task :check_svn do
+    fail &quot;Cannot find Ruby 1.9 SVN directory: #{Ruby19::SVN}&quot; unless
+      File.directory?(Ruby19::SVN) 
+  end
+
+  
   namespace &quot;test&quot; do
 
     desc &quot;Check the file paths&quot;</diff>
      <filename>rakelib/ruby19.rake</filename>
    </modified>
    <modified>
      <diff>@@ -256,6 +256,13 @@ class TestApplicationOptions &lt; Test::Unit::TestCase
     assert ! RakeFileUtils.nowrite_flag
   end
 
+  def test_bad_options
+    assert_raise GetoptLong::InvalidOption do
+      flags('--bad', '-t') do |opts|
+      end
+    end
+  end
+  
   def test_trace_option
     flags('--trace', '-t') do |opts|
       assert opts.trace
@@ -422,7 +429,7 @@ class TestApplicationOptions &lt; Test::Unit::TestCase
     assert_equal [&quot;a&quot;], @tasks.sort
     assert '12', ENV['TESTKEY']
   end
-  
+
   private 
 
   def flags(*sets)</diff>
      <filename>test/test_application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -85,20 +85,6 @@ else
       assert_equal &quot;pkgr-1.2.3.gem&quot;, pkg.gem_file
     end
 
-    def test_gem_package_with_specific_platform
-      gem = Gem::Specification.new do |g|
-        g.name = &quot;pkgr&quot;
-        g.version = &quot;1.2.3&quot;
-        g.files = FileList[&quot;x&quot;].resolve
-        g.platform = Gem::Platform::WIN32
-      end
-      pkg = Rake::GemPackageTask.new(gem)  do |p|
-        p.package_files &lt;&lt; &quot;y&quot;
-      end
-      assert_equal [&quot;x&quot;, &quot;y&quot;], pkg.package_files
-      assert_match(/pkgr-1\.2\.3-.*mswin32.*\.gem/, pkg.gem_file)
-    end
-
     def test_gem_package_with_current_platform
       gem = Gem::Specification.new do |g|
         g.name = &quot;pkgr&quot;</diff>
      <filename>test/test_package_task.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1a3f8e6caeb53307864ea3e8180e0c7c87f49909</id>
    </parent>
  </parents>
  <author>
    <name>jimweirich</name>
    <email>jimweirich@5af023f1-ac1a-0410-98d6-829a145c37ef</email>
  </author>
  <url>http://github.com/pragdavespc/rake/commit/8e05fcdc7abb9a188ee054bdbb6af44b662fb0cf</url>
  <id>8e05fcdc7abb9a188ee054bdbb6af44b662fb0cf</id>
  <committed-date>2007-12-20T09:35:40-08:00</committed-date>
  <authored-date>2007-12-20T09:35:40-08:00</authored-date>
  <message>updates for ruby 1.9

git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@620 5af023f1-ac1a-0410-98d6-829a145c37ef</message>
  <tree>35d2600d946ae9f94edd3fcff538c513894efb7b</tree>
  <committer>
    <name>jimweirich</name>
    <email>jimweirich@5af023f1-ac1a-0410-98d6-829a145c37ef</email>
  </committer>
</commit>
