diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 17:52:11 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 17:52:11 +0000 |
commit | f336cf463c7d4a00718410807410e3505b0de481 (patch) | |
tree | b132b7ff3ddfacbcc7947deb833a17bf29e0d150 /railties | |
parent | 9b55e3dad13e4f68d10ead329784bef4e1a74cd7 (diff) | |
download | rails-f336cf463c7d4a00718410807410e3505b0de481.tar.gz rails-f336cf463c7d4a00718410807410e3505b0de481.tar.bz2 rails-f336cf463c7d4a00718410807410e3505b0de481.zip |
Fixes rake annotations to search erb and builder files as well (closes #9150) [m.langenberg]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 4 | ||||
-rw-r--r-- | railties/lib/tasks/annotations.rake | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index b726937f4e..7e36909749 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,6 +1,8 @@ *SVN* -* Remove web_service generator. [Koz] +* Fixes rake annotations to search erb and builder files as well #9150 [m.langenberg] + +* Removed web_service generator [Koz] * Added the :all option to config.plugins that'll include the rest of the plugins not already explicitly named #9613 [fcheung]. Example: diff --git a/railties/lib/tasks/annotations.rake b/railties/lib/tasks/annotations.rake index 20ccad6d7b..80fe202588 100644 --- a/railties/lib/tasks/annotations.rake +++ b/railties/lib/tasks/annotations.rake @@ -30,9 +30,9 @@ class SourceAnnotationExtractor if File.directory?(item) results.update(find_in(item)) - elsif item =~ /\.r(?:b|xml|js)$/ + elsif item =~ /\.(builder|(r(?:b|xml|js)))$/ results.update(extract_annotations_from(item, /#\s*(#{tag}):?\s*(.*)$/)) - elsif item =~ /\.rhtml$/ + elsif item =~ /\.(rhtml|erb)$/ results.update(extract_annotations_from(item, /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/)) end end |