<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tmbundle.patch</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -23,17 +23,25 @@ module Spec
           
           case parent
             when 'lib', 'app' then
-              path = path.gsub(/\/app\//, &quot;/spec/&quot;)
-              path = path.gsub(/\/lib\//, &quot;/spec/&quot;)
+              if rails?(prefix)
+                path = path.gsub(/\/app\//, &quot;/spec/&quot;)
+                path = path.gsub(/\/lib\//, &quot;/spec/lib/&quot;)
+              else
+                path = path.gsub(/\/lib\//, &quot;/spec/&quot;)
+              end
               path = path.gsub(/\.rb$/, &quot;_spec.rb&quot;)
               path = path.gsub(/\.erb$/, &quot;.erb_spec.rb&quot;)
               path = path.gsub(/\.rhtml$/, &quot;.rhtml_spec.rb&quot;)
             when 'spec' then
-              new_parent = rails?(prefix) ? &quot;app&quot; : &quot;lib&quot;
               path = path.gsub(/\.rhtml_spec\.rb$/, &quot;.rhtml&quot;)
               path = path.gsub(/\.erb_spec\.rb$/, &quot;.erb&quot;)
               path = path.gsub(/_spec\.rb$/, &quot;.rb&quot;)
-              path = path.gsub(/\/spec\//, &quot;/#{new_parent}/&quot;)
+              if rails?(prefix)
+                path = path.gsub(/\/spec\/lib\//, &quot;/lib/&quot;)
+                path = path.gsub(/\/spec\//, &quot;/app/&quot;)
+              else
+                path = path.gsub(/\/spec\//, &quot;/lib/&quot;)
+              end
           end
           return path
         end</diff>
      <filename>RSpec.tmbundle/Support/lib/spec/mate/switch_command.rb</filename>
    </modified>
    <modified>
      <diff>@@ -137,6 +137,11 @@ EOF
         &quot;/a/full/path/spec/views/mooky/show.rhtml_spec.rb&quot;)
       end
       
+      it &quot;should work with lib dir in rails&quot; do
+        &quot;/a/full/path/lib/foo/mooky.rb&quot;.should twin(
+        &quot;/a/full/path/spec/lib/foo/mooky_spec.rb&quot;)
+      end
+      
       it &quot;should suggest controller spec&quot; do
         &quot;/a/full/path/spec/controllers/mooky_controller_spec.rb&quot;.should be_a(&quot;controller spec&quot;)
       end</diff>
      <filename>RSpec.tmbundle/Support/spec/spec/mate/switch_command_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -291,6 +291,7 @@ In alphabetical order (by last name)
 ** Patch LH[#271] Since @template.finder, isolation mode doesn't work
 ** Patch for [#11545] Rspec doesn't handle should_receive on ActiveRecord associations
 * Mike Williams
+** Patch LH[#276] to support the lib directory in rails apps with the Textmate Alternate File command.
 ** Core patches for arbitrary comparisons like 5.should_be &lt; 6
 * Chad Wooley
 ** Patch to mocks to make it possible to specify raised exception instance</diff>
      <filename>doc/src/community/index.page</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 == Version 1.1.4 (trunk)
 
+* Applied patch from Mike Williams to support the lib directory in rails apps with the Textmate Alternate File command. Closes #276.
 * Applied patch from Bob Cotton: Nested ExampleGroups do not have a spec_path. Closes #224.
 * Applied patch from Wincent Colaiuta to invert sense of &quot;spec --diff&quot;. Closes #281.
 * Allow any type of render in view specs. Closes #57.</diff>
      <filename>rspec/CHANGES</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>09e5a68667dd714f04db451b6a861df6e633531d</id>
    </parent>
  </parents>
  <author>
    <name>dchelimsky</name>
    <email>dchelimsky@410327ef-2207-0410-a325-f78bbcb22a5a</email>
  </author>
  <url>http://github.com/jdelStrother/rspec/commit/6f68f058d8974a29509948a8d9f06438bba49380</url>
  <id>6f68f058d8974a29509948a8d9f06438bba49380</id>
  <committed-date>2008-02-11T17:09:30-08:00</committed-date>
  <authored-date>2008-02-11T17:09:30-08:00</authored-date>
  <message>Applied patch from Mike Williams to support the lib directory in rails apps with the Textmate Alternate File command. Closes #276.


git-svn-id: svn+ssh://rubyforge.org/var/svn/rspec/trunk@3299 410327ef-2207-0410-a325-f78bbcb22a5a</message>
  <tree>536ad083046ba951de5d29257178c5ce5a3a9a36</tree>
  <committer>
    <name>dchelimsky</name>
    <email>dchelimsky@410327ef-2207-0410-a325-f78bbcb22a5a</email>
  </committer>
</commit>
