Permalink
Browse files

filtered the files to parse to generate the doc

  • Loading branch information...
1 parent 2407a27 commit a9bd975f4c6dae38e7857f2ee71ab63522dc662c @mattetti committed Oct 30, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +1 −0 doc.thor
View
@@ -1,2 +1,2 @@
-./generated_doc
+/generated_doc
.DS_Store
View
@@ -19,6 +19,7 @@ class Doc < Thor
# get all the files to process
files = Dir.glob("#{path}/**/lib/**/*.rb")
+ files = files.select{|f| f unless (f.include?("generators/templates") || f.include?("/spec/"))}
# without forgetting the readme file
files += ["#{path}/README"] if File.exists?("#{path}/README")

0 comments on commit a9bd975

Please sign in to comment.