Skip to content

Commit

Permalink
Fix source cleaner removing READMEs when glob is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jan 2, 2011
1 parent 6b1d02d commit 8c9c930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/source_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def initialize(basepath)
def clean
yardopts = File.join(basepath, '.yardopts')
exclude = ['.yardoc', '.yardopts', '.git']
exclude += Dir.glob(File.join(basepath, 'README*')).map {|f| f.sub(/^#{basepath}\//, '') }
if File.file?(yardopts)
yardoc = YARD::CLI::Yardoc.new
class << yardoc
Expand Down

0 comments on commit 8c9c930

Please sign in to comment.