Changeset 294

Show
Ignore:
Timestamp:
04/29/08 03:48:06 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Specs were broken for "picolena --spec-only", since indexed_dirs were undefined.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/log_indexing_time_with_ferret/lib/picolena/picolena_generator.rb

    r293 r294  
    1717    @destination_root = options[:destination] 
    1818 
    19     @directories_to_index=ARGV.collect{|relative_path| 
    20       abs_dir=Pathname.new(relative_path).realpath.to_s 
    21       "\"#{abs_dir}\" : \"#{abs_dir}\"" 
    22     }.join("\n  ") 
     19    @directories_to_index=if options[:spec_only] then 
     20       "/whatever : /whatever" 
     21    else 
     22      ARGV.collect{|relative_path| 
     23        abs_dir=Pathname.new(relative_path).realpath.to_s 
     24        "\"#{abs_dir}\" : \"#{abs_dir}\"" 
     25      }.join("\n  ")       
     26    end 
    2327 
    2428    extract_options