lib/picky/indexers/serial.rb in picky-4.0.0pre2 vs lib/picky/indexers/serial.rb in picky-4.0.0pre3
- old
+ new
@@ -14,19 +14,19 @@
# and write to an intermediate "prepared index" file.
#
# Parameters:
# * categories: An enumerable of Category-s.
#
- def process categories, scheduler = Scheduler.new
+ def process source_for_prepare, categories, scheduler = Scheduler.new
categories.each do |category|
category.prepared_index_file do |file|
datas = []
result = []
tokenizer = category.tokenizer
- reset_source
+ reset source_for_prepare
source.harvest(category) do |*data|
# Accumulate data.
#
\ No newline at end of file