0
0
Fork 0

- Polecat is now a module and can be included

- a dependency to FileUtils was missing
This commit is contained in:
Gibheer 2011-06-07 06:41:55 +02:00
parent c4f5831e64
commit 41ec65a7a2
8 changed files with 10 additions and 16 deletions

View File

@ -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'

View File

@ -1,4 +1,4 @@
class Polecat
module Polecat
# reads an index directory
#
# This class reads the content of an index directory and builds the

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -1,4 +1,4 @@
class Polecat
module Polecat
class Term
# the field name which should be found
attr_reader :field

View File

@ -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

View File

@ -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'