module YARD
  VERSION = "0.2.2"
  ROOT = File.join(File.dirname(__FILE__), 'yard')
  TEMPLATE_ROOT = File.join(File.dirname(__FILE__), '..', 'templates')

  def self.parse(paths = "**/*.rb", level = Logger::INFO)
    old_level, YARD.logger.level = YARD.logger.level, level
    
    if paths.is_a?(Array)
      files = paths.map {|p| Dir[p] }.flatten
    else
      files = Dir[File.join(Dir.pwd, paths)]
    end
    
    files.each do |file|
      YARD.logger.debug("Processing #{file}")
      YARD::Parser::SourceParser.parse(file)
    end
    
    YARD.logger.level = old_level
  end
end

$:.unshift(YARD::ROOT)

['logging', 'autoload', 'symbol_hash', 'extra'].each do |file|
  require file
end


module YARD
  VERSION = "0.2.2"
  ROOT = File.join(File.dirname(__FILE__), 'yard')
  TEMPLATE_ROOT = File.join(File.dirname(__FILE__), '..', 'templates')

  def self.parse(paths = "**/*.rb", level = Logger::INFO)
    old_level, YARD.logger.level = YARD.logger.level, level
    
    if paths.is_a?(Array)
      files = paths.map {|p| Dir[p] }.flatten
    else
      files = Dir[File.join(Dir.pwd, paths)]
    end
    
    files.uniq.each do |file|
      log.debug("Processing #{file}")
      YARD::Parser::SourceParser.parse(file)
    end
    
    YARD.logger.level = old_level
  end
end

$:.unshift(YARD::ROOT)

['logging', 'autoload', 'symbol_hash', 'extra'].each do |file|
  require file
end


Make sure the file list has no redundant files.
Make sure the file list has no redundant files.
