- Polecat is now a module and can be included
- a dependency to FileUtils was missing
This commit is contained in:
parent
c4f5831e64
commit
41ec65a7a2
|
@ -1,4 +1,8 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
# stdlibs
|
||||
require 'fileutils'
|
||||
|
||||
# own libs
|
||||
require 'polecat/index_writer'
|
||||
require 'polecat/index_reader'
|
||||
require 'polecat/index_searcher'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
# reads an index directory
|
||||
#
|
||||
# This class reads the content of an index directory and builds the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
# interface for searching an index
|
||||
#
|
||||
# Build on top of an Polecat::IndexReader, this class let's you search through
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
# handles the writing of new documents to the index.
|
||||
#
|
||||
# This class is responsible for writing the documents to the index. It takes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
# The Query manages a number of terms or queries which are set into a
|
||||
# relation. A relation is needed to say, which documents shall be
|
||||
# returned.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Polecat
|
||||
module Polecat
|
||||
class Term
|
||||
# the field name which should be found
|
||||
attr_reader :field
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
||||
|
||||
describe "Polecat" do
|
||||
describe "#new" do
|
||||
it "can be initialized" do
|
||||
Polecat.new
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,7 +1,6 @@
|
|||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
||||
require 'rspec'
|
||||
require 'fileutils'
|
||||
require 'polecat'
|
||||
require 'virtus'
|
||||
|
||||
|
|
Loading…
Reference in New Issue