Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7553

Show
Ignore:
Timestamp:
09/22/07 17:52:11 (1 year ago)
Author:
david
Message:

Fixes rake annotations to search erb and builder files as well (closes #9150) [m.langenberg]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/active_support/dependencies.rb

    r7474 r7553  
    384384  class LoadingModule #:nodoc: 
    385385    # Old style environment.rb referenced this method directly.  Please note, it doesn't 
    386     # actualy *do* anything any more. 
     386    # actually *do* anything any more. 
    387387    def self.root(*args) 
    388388      if defined?(RAILS_DEFAULT_LOGGER) 
  • trunk/railties/CHANGELOG

    r7543 r7553  
    11*SVN* 
    22 
    3 * Remove web_service generator. [Koz] 
     3* Fixes rake annotations to search erb and builder files as well #9150 [m.langenberg] 
     4 
     5* Removed web_service generator [Koz] 
    46 
    57* Added the :all option to config.plugins that'll include the rest of the plugins not already explicitly named #9613 [fcheung]. Example: 
  • trunk/railties/lib/tasks/annotations.rake

    r6229 r7553  
    3131      if File.directory?(item) 
    3232        results.update(find_in(item)) 
    33       elsif item =~ /\.r(?:b|xml|js)$/ 
     33      elsif item =~ /\.(builder|(r(?:b|xml|js)))$/ 
    3434        results.update(extract_annotations_from(item, /#\s*(#{tag}):?\s*(.*)$/)) 
    35       elsif item =~ /\.rhtml$/ 
     35      elsif item =~ /\.(rhtml|erb)$/ 
    3636        results.update(extract_annotations_from(item, /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/)) 
    3737      end