lib/picky/internals/index/files.rb in picky-2.1.2 vs lib/picky/internals/index/files.rb in picky-2.2.0
- old
+ new
@@ -2,20 +2,20 @@
module Index
class Files < Backend
- def initialize bundle_name, config
- super bundle_name, config
+ def initialize bundle_name, category
+ super bundle_name, category
# Note: We marshal the similarity, as the
# Yajl json lib cannot load symbolized
# values, just keys.
#
- @index = File::JSON.new config.index_path(bundle_name, :index)
- @weights = File::JSON.new config.index_path(bundle_name, :weights)
- @similarity = File::Marshal.new config.index_path(bundle_name, :similarity)
- @configuration = File::JSON.new config.index_path(bundle_name, :configuration)
+ @index = File::JSON.new category.index_path(bundle_name, :index)
+ @weights = File::JSON.new category.index_path(bundle_name, :weights)
+ @similarity = File::Marshal.new category.index_path(bundle_name, :similarity)
+ @configuration = File::JSON.new category.index_path(bundle_name, :configuration)
end
def to_s
<<-FILES
Files:
\ No newline at end of file