<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>templates/rescues/template_error.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -15,6 +15,6 @@ if (ENV['RAILS_ENV'] == 'development')
   ::MAC_OS_X = (`uname`.chomp == &quot;Darwin&quot;) rescue false
   require 'textmate_footnotes'
   require 'textmate_initialize'
-  
+
   require 'textmate_backtracer' if ::MAC_OS_X
 end
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class Exception
   alias :original_clean_backtrace :clean_backtrace
-  
+
   def add_links_to_backtrace(lines)
     lines.collect do |line|
       expanded = line.gsub '#{RAILS_ROOT}', RAILS_ROOT
@@ -33,11 +33,10 @@ protected
   alias backtracer_original_template_path_for_local_rescue template_path_for_local_rescue
   def template_path_for_local_rescue(exception)
     if ActionView::TemplateError === exception
-      File.dirname(__FILE__) + &quot;/../templates/rescues/template_error.rhtml&quot;
+      File.dirname(__FILE__) + &quot;/../templates/rescues/template_error.erb&quot;
     else
       backtracer_original_template_path_for_local_rescue(exception)
     end
   end
-  
+
 end
-  
\ No newline at end of file</diff>
      <filename>lib/textmate_backtracer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,15 +15,15 @@ class FootnoteFilter
   cattr_accessor :no_style, :abs_root, :textmate_prefix
   self.no_style = false
   self.textmate_prefix = &quot;txmt://open?url=file://&quot;
-  
+
   attr_accessor :body, :abs_root
-  
+
   def self.filter(controller)
     return if controller.render_without_footnotes
     filter = FootnoteFilter.new(controller)
     filter.add_footnotes!
   end
-  
+
   def initialize(controller)
     @controller = controller
     @template = controller.instance_variable_get(&quot;@template&quot;)
@@ -31,7 +31,7 @@ class FootnoteFilter
     @extra_html = &quot;&quot;
     self.abs_root = File.expand_path(RAILS_ROOT)
   end
-  
+
   def add_footnotes!
     if performed_render? and first_render?
       if [&quot;html.erb&quot;, &quot;haml&quot;, &quot;rhtml&quot;, &quot;rxhtml&quot;].include?(template_extension) &amp;&amp; (content_type =~ /html/ || content_type.nil?) &amp;&amp; !xhr?
@@ -44,70 +44,70 @@ class FootnoteFilter
     # Discard footnotes if there are any problems
     RAILS_DEFAULT_LOGGER.error &quot;Textmate Footnotes Exception: #{e}\n#{e.backtrace.join(&quot;\n&quot;)}&quot;
   end
-  
+
   # Some controller classes come with the Controller:: module and some don't
   # (anyone know why? -- Duane)
   def controller_filename
     File.join(abs_root, &quot;app&quot;, &quot;controllers&quot;, &quot;#{@controller.class.to_s.underscore}.rb&quot;).
     sub('/controllers/controllers/', '/controllers/')
   end
-  
+
   def controller_text
     @controller_text ||= IO.read(controller_filename)
   end
-  
+
   def index_of_method
     (controller_text =~ /def\s+#{@controller.action_name}[\s\(]/)
   end
-  
+
   def controller_line_number
     controller_text.line_from_index(index_of_method)
   end
-  
+
   def performed_render?
     @controller.instance_variable_get(&quot;@performed_render&quot;)
   end
-  
+
   def first_render?
     @template.respond_to?(:first_render) and @template.first_render
   end
-  
+
   def xhr?
     @controller.request.xhr?
   end
-  
+
   def template_path
     @template.first_render.sub(/\.(html\.erb|rhtml|rxhtml|rxml|rjs)$/, &quot;&quot;)
   end
-  
+
   def template_extension
     @template.first_render.scan(/\.(html\.erb|rhtml|rxhtml|rxml|rjs)$/).flatten.first ||
     @template.pick_template_extension(template_path).to_s
   end
-  
+
   def template_file_name
     File.expand_path(@template.send(:full_template_path, template_path, template_extension))
   end
-  
+
   def layout_file_name
     [&quot;html.erb&quot;, &quot;rhtml&quot;].each do |extension|
       path = File.expand_path(@template.send(:full_template_path, @controller.active_layout, extension))
       return path if File.exist?(path)
     end
   end
-  
+
   def content_type
     @controller.response.headers['Content-Type']
   end
-  
+
   def stylesheet_files
     @stylesheet_files ||= @body.scan(/&lt;link[^&gt;]+href\s*=\s*['&quot;]([^&gt;?'&quot;]+)/im).flatten
   end
-  
+
   def javascript_files
     @javascript_files ||= @body.scan(/&lt;script[^&gt;]+src\s*=\s*['&quot;]([^&gt;?'&quot;]+)/im).flatten
   end
-  
+
   def controller_url
     escape(
       textmate_prefix +
@@ -115,15 +115,15 @@ class FootnoteFilter
       (index_of_method ? &quot;&amp;line=#{controller_line_number + 1}&amp;column=3&quot; : &quot;&quot;)
     )
   end
-  
+
   def view_url
     escape(textmate_prefix + template_file_name)
   end
-  
+
   def layout_url
     escape(textmate_prefix + layout_file_name)
   end
-  
+
   def insert_styles
     insert_text :before, /&lt;\/head&gt;/i, &lt;&lt;-HTML
     &lt;!-- TextMate Footnotes Style --&gt;
@@ -136,13 +136,13 @@ class FootnoteFilter
     &lt;!-- End TextMate Footnotes Style --&gt;
     HTML
   end
-  
+
   def insert_footnotes
-    
+
     def tm_footnotes_toggle(id)
       &quot;s = document.getElementById('#{id}').style; if(s.display == 'none') { s.display = '' } else { s.display = 'none' }&quot;
     end
-    
+
     footnotes_html = &lt;&lt;-HTML
     &lt;!-- TextMate Footnotes --&gt;
     &lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
@@ -182,7 +182,7 @@ class FootnoteFilter
       insert_text :before, /&lt;\/body&gt;/i, footnotes_html
     end
   end
-  
+
   def textmate_links
     html = &quot;&quot;
     if ::MAC_OS_X
@@ -198,7 +198,7 @@ class FootnoteFilter
     end
     html
   end
-  
+
   def asset_file_links(link_text, files)
     return '' if files.size == 0
     links = files.map do |filename|
@@ -218,7 +218,7 @@ class FootnoteFilter
     # Return the link that will open the 'extra html' div
     %{ | &lt;a href=&quot;#&quot; onclick=&quot;#{tm_footnotes_toggle('tm_footnotes_' + link_text.underscore.gsub(' ', '_') )}; return false&quot;&gt;#{link_text}&lt;/a&gt;}
   end
-  
+
   def indent(indentation, text)
     lines = text.to_a
     initial_indentation = lines.first.scan(/^(\s+)/).flatten.first
@@ -250,7 +250,7 @@ class FootnoteFilter
       end
     @body.insert index, indent(indentation, new_text)
   end
-  
+
   def escape(text)
     text.gsub(&quot;&amp;&quot;, &quot;&amp;amp;&quot;).gsub(&quot;&lt;&quot;, &quot;&amp;lt;&quot;).gsub(&quot;&gt;&quot;, &quot;&amp;gt;&quot;)
   end</diff>
      <filename>lib/textmate_footnotes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ RAILS_ROOT.replace File.dirname(__FILE__)
 
 class MockController
   attr_accessor :template, :session, :params, :cookies
-  
+
   def initialize(body = &quot;&quot;)
     @body = body
     @performed_render = true
@@ -14,23 +14,23 @@ class MockController
     @cookies = {}
     template
   end
-  
+
   def template
     @template ||= MockTemplate.new(self)
   end
-  
+
   def response
     @response ||= OpenStruct.new(:body =&gt; @body, :headers =&gt; {})
   end
-    
+
   def first_render
     @body
   end
-  
+
   def request
     @request ||= MockRequest.new(false)
   end
-  
+
   def action_name
     @params[:action]
   end
@@ -40,7 +40,7 @@ class MockTemplate
   def initialize(controller)
     @controller = controller
   end
-  
+
   def first_render
     &quot;example.rhtml&quot;
   end
@@ -54,11 +54,11 @@ class FootnoteFilter
   def controller_filename
     __FILE__
   end
-  
+
   def template_file_name
     __FILE__
   end
-  
+
   def layout_file_name
     __FILE__
   end</diff>
      <filename>test/mock_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,52 +11,52 @@ class TextmateFootnotesTest &lt; Test::Unit::TestCase
     @controller = MockController.new $html.dup
     @footnote = FootnoteFilter.new(@controller)
   end
-  
+
   def test_mock_controller
     index = @controller.response.body.index(/This is the HTML page/)
     assert_equal 334, index
   end
-  
+
   def test_footnote_not_included_when_request_is_xhr
     @controller.request.xhr = true
     @footnote.add_footnotes!
     assert_equal $html, @controller.response.body
   end
-  
+
   def test_footnote_not_included_when_content_type_is_javascript
     @controller.response.headers['Content-Type'] = 'text/javascript'
     @footnote.add_footnotes!
     assert_equal $html, @controller.response.body
   end
-  
+
   def test_footnote_included_when_content_type_is_html
     @controller.response.headers['Content-Type'] = 'text/html'
     @footnote.add_footnotes!
     assert_not_equal $html, @controller.response.body
   end
-  
+
   def test_footnote_included_when_content_type_is_nil
     @footnote.add_footnotes!
     assert_not_equal $html, @controller.response.body
   end
-  
+
   def test_indent
     before = &quot;text\n  one\n  two&quot;
     after  = &quot;  text\n    one\n    two&quot;
-    
+
     assert_equal after, @footnote.indent(2, before)
 
     before = &quot; text\n  one\n  two&quot;
     after  = &quot;  text\n   one\n   two&quot;
-    
+
     assert_equal after, @footnote.indent(2, before)
 
     before = &quot;  text\none\ntwo&quot;
     after  = &quot;  text\n  one\n  two&quot;
-    
+
     assert_equal after, @footnote.indent(2, before)
   end
-  
+
   def test_insert_text
     @footnote.insert_text :after, /&lt;head&gt;/, &quot;Graffiti&quot;, 0
     after = &quot;    &lt;head&gt;Graffiti\n&quot;
@@ -77,8 +77,8 @@ __END__
         &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot;&gt;
     &lt;/head&gt;
     &lt;body&gt;
-        &lt;p&gt;This is the HTML page. It works and is encoded just like any HTML page you    
-         have previously done. View &lt;a href=&quot;htmltoxhtml2.htm&quot;&gt;the XHTML version&lt;/a&gt; of 
+        &lt;p&gt;This is the HTML page. It works and is encoded just like any HTML page you
+         have previously done. View &lt;a href=&quot;htmltoxhtml2.htm&quot;&gt;the XHTML version&lt;/a&gt; of
          this page to view the difference between HTML and XHTML.&lt;/p&gt;
         &lt;p&gt;You will be glad to know that no changes need to be made to any of your CSS files.&lt;/p&gt;
     &lt;/body&gt;</diff>
      <filename>test/textmate_footnotes_test.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>templates/rescues/template_error.rhtml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>fa01a688cddc3b9b0db2540ad3948c7ae46da5d4</id>
    </parent>
  </parents>
  <author>
    <name>kevin</name>
    <email>kevin@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </author>
  <url>http://github.com/mhartl/rails-footnotes/commit/34ad6c6ca16a295b14d3a6fb5845767bb96eb479</url>
  <id>34ad6c6ca16a295b14d3a6fb5845767bb96eb479</id>
  <committed-date>2008-03-08T08:22:13-08:00</committed-date>
  <authored-date>2008-03-08T08:22:13-08:00</authored-date>
  <message>This is a merge from the git repository hosted by Dr. Nic
http://github.com/drnic/ruby-on-rails-tmbundle/commit/7edadd1

== 1.90.0 2008-03-08

* Major Upgrade to Rails 2.0 - Initial release
* Ruby on Rails bundle maintenance has been taken over by Dr Nic Williams from its initial legendary creator Duane Johnson.
* Added so far:
  * Snippets/Commands for:
    * Tests
      * assert_select (ass)
      * assert_difference/assert_no_difference (asd/asnd)
      * GET+POST test method stubs (deftg+deftp)
      * posts(:) + Alt+Esc allows you to select a posts.yml fixture
    * Controllers
      * respond_to (rest) and respond_to(html) (Shift+Cmd+H)
      * 'Go To View' within a respond_to will use the format/wants type as the default
      * REMOVED: render_component snippets
      * loggers - pass a block instead of raw string to save time if
        logging not used (e.g. production) [Stephen Touset]
      * redirect_to for resource paths (rep, repp, renp, renpp)
      * render :update (ru) [Simon Jefford]
    * Views
      * form_for and form_for(with errors) (ff,ffe)
      * Various form_for helpers in a drop-down list, e.g. f.text_field (f.)
      * Various form_for helpers with own tab completion, e.g. f.text_field (fftf)
      * link_to for resource paths (lip, lipp, linp, linpp)
      * &lt;% end -%&gt; (end)
      * for-loop (for)
      * link_to(@model.name, @model) (ltm)
    * Layouts
      * javascript_include_tag - jit
      * stylesheet_link_tag - slt
    * Models
      * has_many :though (hmt)
      * association snippets give better defaults (e.g. bt + hm)
      * validates_format_of (vf,vfif) [Dean Strelau]
      * validates_numericality_of (vn,vnif) [Tom Morris]
      * before/after callbacks (prefix bef/aft + 1st letter of words) [Sam Granieri]
    * Migrations
      * Sexy Migrations now available as &quot;t.&quot; snippets and regular snippets [Lawrence Pit]
      * Migration classes have own textmate scope
      * Add/Remove Columns - the 'down' statements are in reverse
        order [Lawrence Pit, Daniel Kristensen]
      * Added 'Redo Last Migration' [Simon Jefford]
    * Functional Tests
      * assert_redirect_to for resource paths (artp, artpp, artnp, artnpp)
      * assert(assigns(:model)) (asg)
    * Routes
      * named routes, resources snippets (map, mapr, maprs)
      * catch_all (mapca) [Sam Granieri]
    * Active Support
      * cattr_accessor/mattr_accessor (crw/mrw) [Jacob Swanner]
      * returning (returning) [Jacob Swanner]
  * Language/Syntax
    * New keywords: rescue_from, alias_method_chain, alias_attribute, delegate, respond_to [David Lowenfels, Jacob Swanner]
    * Added rb as a valid Rails file type [James Deville]
  * Commands
    * Auto-completion for Foxy Fixtures
    * html.erb is the default for new templates (backwards compatibility
      is being worked on too)
    * 'Go To XXX' - available for wide range of permutations.
      Fixtures -&gt; Models; Models -&gt; Controllers, etc
    * haml is a valid file extension [Steve Ross]
    * specify alternate default file extensions for: [Steve Ross]
      * javascript - ENV['RAILS_JS_EXT']
      * stylesheet - ENV['RAILS_CSS_EXT']
      * view - ENV['RAILS_VIEW_EXT']
    * 'Call Generate Script' now accesses all a project's generators
  * Plugins
    * Footnote
      * footnote-edge uses .erb for templates [Stephen Bannasch]
  * Internals
    * Rakefile - test runner [Steve Ross]
    * Added generator_test
    * Removed unnecessary misc_test
    * script/clean_bundle_file_names - rename non-os-agnostic file names [Charles Roper]
  * Haml support [Lawrence Pit]

For thoughts and patches, email drnicwilliams@gmail.com


git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle/Support/plugins/footnotes-edge@9069 dfb7d73b-c2ec-0310-8fea-fb051d288c6d</message>
  <tree>2b70232d1fd7f40382de51c739b52d71c739ddb2</tree>
  <committer>
    <name>kevin</name>
    <email>kevin@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </committer>
</commit>
