xapit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/Manifest +178 -0
- data/README.rdoc +183 -0
- data/Rakefile +15 -0
- data/TODO +23 -0
- data/features/facets.feature +51 -0
- data/features/finding.feature +119 -0
- data/features/indexing.feature +41 -0
- data/features/step_definitions/common_steps.rb +7 -0
- data/features/step_definitions/xapit_steps.rb +117 -0
- data/features/support/env.rb +7 -0
- data/features/support/xapit_helpers.rb +27 -0
- data/init.rb +3 -0
- data/install.rb +9 -0
- data/lib/xapit.rb +39 -0
- data/lib/xapit/collection.rb +165 -0
- data/lib/xapit/config.rb +83 -0
- data/lib/xapit/facet.rb +59 -0
- data/lib/xapit/facet_blueprint.rb +59 -0
- data/lib/xapit/facet_option.rb +56 -0
- data/lib/xapit/index_blueprint.rb +117 -0
- data/lib/xapit/indexers/abstract_indexer.rb +101 -0
- data/lib/xapit/indexers/classic_indexer.rb +27 -0
- data/lib/xapit/indexers/simple_indexer.rb +31 -0
- data/lib/xapit/membership.rb +103 -0
- data/lib/xapit/query.rb +62 -0
- data/lib/xapit/query_parsers/abstract_query_parser.rb +115 -0
- data/lib/xapit/query_parsers/classic_query_parser.rb +19 -0
- data/lib/xapit/query_parsers/simple_query_parser.rb +75 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/tmp/xapdb/flintlock +0 -0
- data/spec/tmp/xapdb/iamflint +0 -0
- data/spec/tmp/xapdb/postlist.DB +0 -0
- data/spec/tmp/xapdb/postlist.baseA +0 -0
- data/spec/tmp/xapdb/postlist.baseB +0 -0
- data/spec/tmp/xapdb/record.DB +0 -0
- data/spec/tmp/xapdb/record.baseA +0 -0
- data/spec/tmp/xapdb/record.baseB +0 -0
- data/spec/tmp/xapdb/spelling.DB +0 -0
- data/spec/tmp/xapdb/spelling.baseA +0 -0
- data/spec/tmp/xapdb/spelling.baseB +0 -0
- data/spec/tmp/xapdb/termlist.DB +0 -0
- data/spec/tmp/xapdb/termlist.baseA +0 -0
- data/spec/tmp/xapdb/termlist.baseB +0 -0
- data/spec/tmp/xapian_db/flintlock +0 -0
- data/spec/tmp/xapian_db/iamflint +0 -0
- data/spec/tmp/xapian_db/postlist.DB +0 -0
- data/spec/tmp/xapian_db/postlist.baseA +0 -0
- data/spec/tmp/xapian_db/record.DB +0 -0
- data/spec/tmp/xapian_db/record.baseA +0 -0
- data/spec/tmp/xapian_db/termlist.DB +0 -0
- data/spec/tmp/xapian_db/termlist.baseA +0 -0
- data/spec/tmp/xapiandab/flintlock +0 -0
- data/spec/tmp/xapiandab/iamflint +0 -0
- data/spec/tmp/xapiandab/postlist.DB +0 -0
- data/spec/tmp/xapiandab/postlist.baseA +0 -0
- data/spec/tmp/xapiandab/postlist.baseB +0 -0
- data/spec/tmp/xapiandab/record.DB +0 -0
- data/spec/tmp/xapiandab/record.baseA +0 -0
- data/spec/tmp/xapiandab/record.baseB +0 -0
- data/spec/tmp/xapiandab/spelling.DB +0 -0
- data/spec/tmp/xapiandab/spelling.baseA +0 -0
- data/spec/tmp/xapiandab/spelling.baseB +0 -0
- data/spec/tmp/xapiandab/termlist.DB +0 -0
- data/spec/tmp/xapiandab/termlist.baseA +0 -0
- data/spec/tmp/xapiandab/termlist.baseB +0 -0
- data/spec/tmp/xapiandatab/flintlock +0 -0
- data/spec/tmp/xapiandatab/iamflint +0 -0
- data/spec/tmp/xapiandatab/postlist.DB +0 -0
- data/spec/tmp/xapiandatab/postlist.baseA +0 -0
- data/spec/tmp/xapiandatab/postlist.baseB +0 -0
- data/spec/tmp/xapiandatab/record.DB +0 -0
- data/spec/tmp/xapiandatab/record.baseA +0 -0
- data/spec/tmp/xapiandatab/record.baseB +0 -0
- data/spec/tmp/xapiandatab/spelling.DB +0 -0
- data/spec/tmp/xapiandatab/spelling.baseA +0 -0
- data/spec/tmp/xapiandatab/spelling.baseB +0 -0
- data/spec/tmp/xapiandatab/termlist.DB +0 -0
- data/spec/tmp/xapiandatab/termlist.baseA +0 -0
- data/spec/tmp/xapiandatab/termlist.baseB +0 -0
- data/spec/tmp/xapiandataba/flintlock +0 -0
- data/spec/tmp/xapiandataba/iamflint +0 -0
- data/spec/tmp/xapiandataba/postlist.DB +0 -0
- data/spec/tmp/xapiandataba/postlist.baseA +0 -0
- data/spec/tmp/xapiandataba/postlist.baseB +0 -0
- data/spec/tmp/xapiandataba/record.DB +0 -0
- data/spec/tmp/xapiandataba/record.baseA +0 -0
- data/spec/tmp/xapiandataba/record.baseB +0 -0
- data/spec/tmp/xapiandataba/spelling.DB +0 -0
- data/spec/tmp/xapiandataba/spelling.baseA +0 -0
- data/spec/tmp/xapiandataba/spelling.baseB +0 -0
- data/spec/tmp/xapiandataba/termlist.DB +0 -0
- data/spec/tmp/xapiandataba/termlist.baseA +0 -0
- data/spec/tmp/xapiandataba/termlist.baseB +0 -0
- data/spec/tmp/xapiandatabas/flintlock +0 -0
- data/spec/tmp/xapiandatabas/iamflint +0 -0
- data/spec/tmp/xapiandatabas/postlist.DB +0 -0
- data/spec/tmp/xapiandatabas/postlist.baseA +0 -0
- data/spec/tmp/xapiandatabas/record.DB +0 -0
- data/spec/tmp/xapiandatabas/record.baseA +0 -0
- data/spec/tmp/xapiandatabas/termlist.DB +0 -0
- data/spec/tmp/xapiandatabas/termlist.baseA +0 -0
- data/spec/tmp/xapiandatb/flintlock +0 -0
- data/spec/tmp/xapiandatb/iamflint +0 -0
- data/spec/tmp/xapiandatb/postlist.DB +0 -0
- data/spec/tmp/xapiandatb/postlist.baseA +0 -0
- data/spec/tmp/xapiandatb/postlist.baseB +0 -0
- data/spec/tmp/xapiandatb/record.DB +0 -0
- data/spec/tmp/xapiandatb/record.baseA +0 -0
- data/spec/tmp/xapiandatb/record.baseB +0 -0
- data/spec/tmp/xapiandatb/spelling.DB +0 -0
- data/spec/tmp/xapiandatb/spelling.baseA +0 -0
- data/spec/tmp/xapiandatb/spelling.baseB +0 -0
- data/spec/tmp/xapiandatb/termlist.DB +0 -0
- data/spec/tmp/xapiandatb/termlist.baseA +0 -0
- data/spec/tmp/xapiandatb/termlist.baseB +0 -0
- data/spec/tmp/xapiandbase/flintlock +0 -0
- data/spec/tmp/xapiandbase/iamflint +0 -0
- data/spec/tmp/xapiandbase/postlist.DB +0 -0
- data/spec/tmp/xapiandbase/postlist.baseA +0 -0
- data/spec/tmp/xapiandbase/postlist.baseB +0 -0
- data/spec/tmp/xapiandbase/record.DB +0 -0
- data/spec/tmp/xapiandbase/record.baseA +0 -0
- data/spec/tmp/xapiandbase/record.baseB +0 -0
- data/spec/tmp/xapiandbase/spelling.DB +0 -0
- data/spec/tmp/xapiandbase/spelling.baseA +0 -0
- data/spec/tmp/xapiandbase/spelling.baseB +0 -0
- data/spec/tmp/xapiandbase/termlist.DB +0 -0
- data/spec/tmp/xapiandbase/termlist.baseA +0 -0
- data/spec/tmp/xapiandbase/termlist.baseB +0 -0
- data/spec/xapit/collection_spec.rb +153 -0
- data/spec/xapit/config_spec.rb +48 -0
- data/spec/xapit/facet_blueprint_spec.rb +29 -0
- data/spec/xapit/facet_option_spec.rb +80 -0
- data/spec/xapit/facet_spec.rb +73 -0
- data/spec/xapit/index_blueprint_spec.rb +60 -0
- data/spec/xapit/indexers/abstract_indexer_spec.rb +74 -0
- data/spec/xapit/indexers/classic_indexer_spec.rb +26 -0
- data/spec/xapit/indexers/simple_indexer_spec.rb +53 -0
- data/spec/xapit/membership_spec.rb +39 -0
- data/spec/xapit/query_parsers/abstract_query_parser_spec.rb +23 -0
- data/spec/xapit/query_parsers/classic_query_parser_spec.rb +15 -0
- data/spec/xapit/query_parsers/simple_query_parser_spec.rb +86 -0
- data/spec/xapit/query_spec.rb +41 -0
- data/spec/xapit_member.rb +32 -0
- data/tasks/spec.rb +9 -0
- data/tasks/xapit.rake +9 -0
- data/tmp/xapiandatabase/flintlock +0 -0
- data/tmp/xapiandatabase/iamflint +0 -0
- data/tmp/xapiandatabase/postlist.DB +0 -0
- data/tmp/xapiandatabase/postlist.baseA +0 -0
- data/tmp/xapiandatabase/postlist.baseB +0 -0
- data/tmp/xapiandatabase/record.DB +0 -0
- data/tmp/xapiandatabase/record.baseA +0 -0
- data/tmp/xapiandatabase/record.baseB +0 -0
- data/tmp/xapiandatabase/spelling.DB +0 -0
- data/tmp/xapiandatabase/spelling.baseA +0 -0
- data/tmp/xapiandatabase/spelling.baseB +0 -0
- data/tmp/xapiandatabase/termlist.DB +0 -0
- data/tmp/xapiandatabase/termlist.baseA +0 -0
- data/tmp/xapiandatabase/termlist.baseB +0 -0
- data/tmp/xapiandatabase/value.baseB +0 -0
- data/tmp/xapiandb/flintlock +0 -0
- data/tmp/xapiandb/iamflint +0 -0
- data/tmp/xapiandb/postlist.DB +0 -0
- data/tmp/xapiandb/postlist.baseA +0 -0
- data/tmp/xapiandb/postlist.baseB +0 -0
- data/tmp/xapiandb/record.DB +0 -0
- data/tmp/xapiandb/record.baseA +0 -0
- data/tmp/xapiandb/record.baseB +0 -0
- data/tmp/xapiandb/spelling.DB +0 -0
- data/tmp/xapiandb/spelling.baseA +0 -0
- data/tmp/xapiandb/spelling.baseB +0 -0
- data/tmp/xapiandb/termlist.DB +0 -0
- data/tmp/xapiandb/termlist.baseA +0 -0
- data/tmp/xapiandb/termlist.baseB +0 -0
- data/tmp/xapiandb/value.baseB +0 -0
- data/uninstall.rb +5 -0
- data/xapit.gemspec +30 -0
- metadata +257 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe Xapit::Query do
|
4
|
+
it "should use query passed in" do
|
5
|
+
expected = Xapian::Query.new(Xapian::Query::OP_AND, ["foo bar"])
|
6
|
+
query = Xapit::Query.new(expected)
|
7
|
+
query.xapian_query.should == expected
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should build a query from a string parameter" do
|
11
|
+
expected = Xapian::Query.new(Xapian::Query::OP_AND, ["foo bar"])
|
12
|
+
query = Xapit::Query.new("foo bar")
|
13
|
+
query.xapian_query.description.should == expected.description
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should build a query from an array of strings" do
|
17
|
+
expected = Xapian::Query.new(Xapian::Query::OP_AND, %w[foo bar])
|
18
|
+
query = Xapit::Query.new(%w[foo bar])
|
19
|
+
query.xapian_query.description.should == expected.description
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should AND two queries together" do
|
23
|
+
expected = Xapian::Query.new(Xapian::Query::OP_AND,
|
24
|
+
Xapian::Query.new(Xapian::Query::OP_AND, ["foo"]),
|
25
|
+
Xapian::Query.new(Xapian::Query::OP_AND, ["bar"])
|
26
|
+
)
|
27
|
+
query = Xapit::Query.new("foo")
|
28
|
+
query.and_query("bar")
|
29
|
+
query.xapian_query.description.should == expected.description
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should OR two queries together" do
|
33
|
+
expected = Xapian::Query.new(Xapian::Query::OP_OR,
|
34
|
+
Xapian::Query.new(Xapian::Query::OP_AND, ["foo"]),
|
35
|
+
Xapian::Query.new(Xapian::Query::OP_AND, ["bar"])
|
36
|
+
)
|
37
|
+
query = Xapit::Query.new("foo")
|
38
|
+
query.or_query("bar")
|
39
|
+
query.xapian_query.description.should == expected.description
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
class XapitMember
|
2
|
+
include Xapit::Membership
|
3
|
+
|
4
|
+
attr_reader :id
|
5
|
+
|
6
|
+
def self.find_each(&block)
|
7
|
+
@@records.each(&block) if @@records
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.delete_all
|
11
|
+
@@records = []
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.find(id)
|
15
|
+
@@records.detect { |r| r.id == id.to_i }
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(attributes = {})
|
19
|
+
@@records ||= []
|
20
|
+
@id = @@records.size + 1
|
21
|
+
@attributes = attributes
|
22
|
+
@@records << self
|
23
|
+
end
|
24
|
+
|
25
|
+
def method_missing(name, *args)
|
26
|
+
if @attributes.has_key? name
|
27
|
+
@attributes[name]
|
28
|
+
else
|
29
|
+
super
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/tasks/spec.rb
ADDED
data/tasks/xapit.rake
ADDED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/uninstall.rb
ADDED
data/xapit.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{xapit}
|
5
|
+
s.version = "0.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Ryan Bates"]
|
9
|
+
s.date = %q{2009-05-28}
|
10
|
+
s.description = %q{Ruby library for interacting with Xapian, a full text search engine.}
|
11
|
+
s.email = %q{ryan (at) railscasts (dot) com}
|
12
|
+
s.extra_rdoc_files = ["lib/xapit/collection.rb", "lib/xapit/config.rb", "lib/xapit/facet.rb", "lib/xapit/facet_blueprint.rb", "lib/xapit/facet_option.rb", "lib/xapit/index_blueprint.rb", "lib/xapit/indexers/abstract_indexer.rb", "lib/xapit/indexers/classic_indexer.rb", "lib/xapit/indexers/simple_indexer.rb", "lib/xapit/membership.rb", "lib/xapit/query.rb", "lib/xapit/query_parsers/abstract_query_parser.rb", "lib/xapit/query_parsers/classic_query_parser.rb", "lib/xapit/query_parsers/simple_query_parser.rb", "lib/xapit.rb", "LICENSE", "README.rdoc", "tasks/spec.rb", "tasks/xapit.rake", "TODO"]
|
13
|
+
s.files = ["features/facets.feature", "features/finding.feature", "features/indexing.feature", "features/step_definitions/common_steps.rb", "features/step_definitions/xapit_steps.rb", "features/support/env.rb", "features/support/xapit_helpers.rb", "init.rb", "install.rb", "lib/xapit/collection.rb", "lib/xapit/config.rb", "lib/xapit/facet.rb", "lib/xapit/facet_blueprint.rb", "lib/xapit/facet_option.rb", "lib/xapit/index_blueprint.rb", "lib/xapit/indexers/abstract_indexer.rb", "lib/xapit/indexers/classic_indexer.rb", "lib/xapit/indexers/simple_indexer.rb", "lib/xapit/membership.rb", "lib/xapit/query.rb", "lib/xapit/query_parsers/abstract_query_parser.rb", "lib/xapit/query_parsers/classic_query_parser.rb", "lib/xapit/query_parsers/simple_query_parser.rb", "lib/xapit.rb", "LICENSE", "Rakefile", "README.rdoc", "spec/spec_helper.rb", "spec/tmp/xapdb/flintlock", "spec/tmp/xapdb/iamflint", "spec/tmp/xapdb/postlist.baseA", "spec/tmp/xapdb/postlist.baseB", "spec/tmp/xapdb/postlist.DB", "spec/tmp/xapdb/record.baseA", "spec/tmp/xapdb/record.baseB", "spec/tmp/xapdb/record.DB", "spec/tmp/xapdb/spelling.baseA", "spec/tmp/xapdb/spelling.baseB", "spec/tmp/xapdb/spelling.DB", "spec/tmp/xapdb/termlist.baseA", "spec/tmp/xapdb/termlist.baseB", "spec/tmp/xapdb/termlist.DB", "spec/tmp/xapian_db/flintlock", "spec/tmp/xapian_db/iamflint", "spec/tmp/xapian_db/postlist.baseA", "spec/tmp/xapian_db/postlist.DB", "spec/tmp/xapian_db/record.baseA", "spec/tmp/xapian_db/record.DB", "spec/tmp/xapian_db/termlist.baseA", "spec/tmp/xapian_db/termlist.DB", "spec/tmp/xapiandab/flintlock", "spec/tmp/xapiandab/iamflint", "spec/tmp/xapiandab/postlist.baseA", "spec/tmp/xapiandab/postlist.baseB", "spec/tmp/xapiandab/postlist.DB", "spec/tmp/xapiandab/record.baseA", "spec/tmp/xapiandab/record.baseB", "spec/tmp/xapiandab/record.DB", "spec/tmp/xapiandab/spelling.baseA", "spec/tmp/xapiandab/spelling.baseB", "spec/tmp/xapiandab/spelling.DB", "spec/tmp/xapiandab/termlist.baseA", "spec/tmp/xapiandab/termlist.baseB", "spec/tmp/xapiandab/termlist.DB", "spec/tmp/xapiandatab/flintlock", "spec/tmp/xapiandatab/iamflint", "spec/tmp/xapiandatab/postlist.baseA", "spec/tmp/xapiandatab/postlist.baseB", "spec/tmp/xapiandatab/postlist.DB", "spec/tmp/xapiandatab/record.baseA", "spec/tmp/xapiandatab/record.baseB", "spec/tmp/xapiandatab/record.DB", "spec/tmp/xapiandatab/spelling.baseA", "spec/tmp/xapiandatab/spelling.baseB", "spec/tmp/xapiandatab/spelling.DB", "spec/tmp/xapiandatab/termlist.baseA", "spec/tmp/xapiandatab/termlist.baseB", "spec/tmp/xapiandatab/termlist.DB", "spec/tmp/xapiandataba/flintlock", "spec/tmp/xapiandataba/iamflint", "spec/tmp/xapiandataba/postlist.baseA", "spec/tmp/xapiandataba/postlist.baseB", "spec/tmp/xapiandataba/postlist.DB", "spec/tmp/xapiandataba/record.baseA", "spec/tmp/xapiandataba/record.baseB", "spec/tmp/xapiandataba/record.DB", "spec/tmp/xapiandataba/spelling.baseA", "spec/tmp/xapiandataba/spelling.baseB", "spec/tmp/xapiandataba/spelling.DB", "spec/tmp/xapiandataba/termlist.baseA", "spec/tmp/xapiandataba/termlist.baseB", "spec/tmp/xapiandataba/termlist.DB", "spec/tmp/xapiandatabas/flintlock", "spec/tmp/xapiandatabas/iamflint", "spec/tmp/xapiandatabas/postlist.baseA", "spec/tmp/xapiandatabas/postlist.DB", "spec/tmp/xapiandatabas/record.baseA", "spec/tmp/xapiandatabas/record.DB", "spec/tmp/xapiandatabas/termlist.baseA", "spec/tmp/xapiandatabas/termlist.DB", "spec/tmp/xapiandatb/flintlock", "spec/tmp/xapiandatb/iamflint", "spec/tmp/xapiandatb/postlist.baseA", "spec/tmp/xapiandatb/postlist.baseB", "spec/tmp/xapiandatb/postlist.DB", "spec/tmp/xapiandatb/record.baseA", "spec/tmp/xapiandatb/record.baseB", "spec/tmp/xapiandatb/record.DB", "spec/tmp/xapiandatb/spelling.baseA", "spec/tmp/xapiandatb/spelling.baseB", "spec/tmp/xapiandatb/spelling.DB", "spec/tmp/xapiandatb/termlist.baseA", "spec/tmp/xapiandatb/termlist.baseB", "spec/tmp/xapiandatb/termlist.DB", "spec/tmp/xapiandbase/flintlock", "spec/tmp/xapiandbase/iamflint", "spec/tmp/xapiandbase/postlist.baseA", "spec/tmp/xapiandbase/postlist.baseB", "spec/tmp/xapiandbase/postlist.DB", "spec/tmp/xapiandbase/record.baseA", "spec/tmp/xapiandbase/record.baseB", "spec/tmp/xapiandbase/record.DB", "spec/tmp/xapiandbase/spelling.baseA", "spec/tmp/xapiandbase/spelling.baseB", "spec/tmp/xapiandbase/spelling.DB", "spec/tmp/xapiandbase/termlist.baseA", "spec/tmp/xapiandbase/termlist.baseB", "spec/tmp/xapiandbase/termlist.DB", "spec/xapit/collection_spec.rb", "spec/xapit/config_spec.rb", "spec/xapit/facet_blueprint_spec.rb", "spec/xapit/facet_option_spec.rb", "spec/xapit/facet_spec.rb", "spec/xapit/index_blueprint_spec.rb", "spec/xapit/indexers/abstract_indexer_spec.rb", "spec/xapit/indexers/classic_indexer_spec.rb", "spec/xapit/indexers/simple_indexer_spec.rb", "spec/xapit/membership_spec.rb", "spec/xapit/query_parsers/abstract_query_parser_spec.rb", "spec/xapit/query_parsers/classic_query_parser_spec.rb", "spec/xapit/query_parsers/simple_query_parser_spec.rb", "spec/xapit/query_spec.rb", "spec/xapit_member.rb", "tasks/spec.rb", "tasks/xapit.rake", "tmp/xapiandatabase/flintlock", "tmp/xapiandatabase/iamflint", "tmp/xapiandatabase/postlist.baseA", "tmp/xapiandatabase/postlist.baseB", "tmp/xapiandatabase/postlist.DB", "tmp/xapiandatabase/record.baseA", "tmp/xapiandatabase/record.baseB", "tmp/xapiandatabase/record.DB", "tmp/xapiandatabase/spelling.baseA", "tmp/xapiandatabase/spelling.baseB", "tmp/xapiandatabase/spelling.DB", "tmp/xapiandatabase/termlist.baseA", "tmp/xapiandatabase/termlist.baseB", "tmp/xapiandatabase/termlist.DB", "tmp/xapiandatabase/value.baseB", "tmp/xapiandb/flintlock", "tmp/xapiandb/iamflint", "tmp/xapiandb/postlist.baseA", "tmp/xapiandb/postlist.baseB", "tmp/xapiandb/postlist.DB", "tmp/xapiandb/record.baseA", "tmp/xapiandb/record.baseB", "tmp/xapiandb/record.DB", "tmp/xapiandb/spelling.baseA", "tmp/xapiandb/spelling.baseB", "tmp/xapiandb/spelling.DB", "tmp/xapiandb/termlist.baseA", "tmp/xapiandb/termlist.baseB", "tmp/xapiandb/termlist.DB", "tmp/xapiandb/value.baseB", "TODO", "uninstall.rb", "Manifest", "xapit.gemspec"]
|
14
|
+
s.homepage = %q{http://github.com/ryanb/xapit}
|
15
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Xapit", "--main", "README.rdoc"]
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.rubyforge_project = %q{xapit}
|
18
|
+
s.rubygems_version = %q{1.3.3}
|
19
|
+
s.summary = %q{Ruby library for interacting with Xapian, a full text search engine.}
|
20
|
+
|
21
|
+
if s.respond_to? :specification_version then
|
22
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
+
s.specification_version = 3
|
24
|
+
|
25
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
+
else
|
27
|
+
end
|
28
|
+
else
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xapit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Bates
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-05-28 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Ruby library for interacting with Xapian, a full text search engine.
|
17
|
+
email: ryan (at) railscasts (dot) com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- lib/xapit/collection.rb
|
24
|
+
- lib/xapit/config.rb
|
25
|
+
- lib/xapit/facet.rb
|
26
|
+
- lib/xapit/facet_blueprint.rb
|
27
|
+
- lib/xapit/facet_option.rb
|
28
|
+
- lib/xapit/index_blueprint.rb
|
29
|
+
- lib/xapit/indexers/abstract_indexer.rb
|
30
|
+
- lib/xapit/indexers/classic_indexer.rb
|
31
|
+
- lib/xapit/indexers/simple_indexer.rb
|
32
|
+
- lib/xapit/membership.rb
|
33
|
+
- lib/xapit/query.rb
|
34
|
+
- lib/xapit/query_parsers/abstract_query_parser.rb
|
35
|
+
- lib/xapit/query_parsers/classic_query_parser.rb
|
36
|
+
- lib/xapit/query_parsers/simple_query_parser.rb
|
37
|
+
- lib/xapit.rb
|
38
|
+
- LICENSE
|
39
|
+
- README.rdoc
|
40
|
+
- tasks/spec.rb
|
41
|
+
- tasks/xapit.rake
|
42
|
+
- TODO
|
43
|
+
files:
|
44
|
+
- features/facets.feature
|
45
|
+
- features/finding.feature
|
46
|
+
- features/indexing.feature
|
47
|
+
- features/step_definitions/common_steps.rb
|
48
|
+
- features/step_definitions/xapit_steps.rb
|
49
|
+
- features/support/env.rb
|
50
|
+
- features/support/xapit_helpers.rb
|
51
|
+
- init.rb
|
52
|
+
- install.rb
|
53
|
+
- lib/xapit/collection.rb
|
54
|
+
- lib/xapit/config.rb
|
55
|
+
- lib/xapit/facet.rb
|
56
|
+
- lib/xapit/facet_blueprint.rb
|
57
|
+
- lib/xapit/facet_option.rb
|
58
|
+
- lib/xapit/index_blueprint.rb
|
59
|
+
- lib/xapit/indexers/abstract_indexer.rb
|
60
|
+
- lib/xapit/indexers/classic_indexer.rb
|
61
|
+
- lib/xapit/indexers/simple_indexer.rb
|
62
|
+
- lib/xapit/membership.rb
|
63
|
+
- lib/xapit/query.rb
|
64
|
+
- lib/xapit/query_parsers/abstract_query_parser.rb
|
65
|
+
- lib/xapit/query_parsers/classic_query_parser.rb
|
66
|
+
- lib/xapit/query_parsers/simple_query_parser.rb
|
67
|
+
- lib/xapit.rb
|
68
|
+
- LICENSE
|
69
|
+
- Rakefile
|
70
|
+
- README.rdoc
|
71
|
+
- spec/spec_helper.rb
|
72
|
+
- spec/tmp/xapdb/flintlock
|
73
|
+
- spec/tmp/xapdb/iamflint
|
74
|
+
- spec/tmp/xapdb/postlist.baseA
|
75
|
+
- spec/tmp/xapdb/postlist.baseB
|
76
|
+
- spec/tmp/xapdb/postlist.DB
|
77
|
+
- spec/tmp/xapdb/record.baseA
|
78
|
+
- spec/tmp/xapdb/record.baseB
|
79
|
+
- spec/tmp/xapdb/record.DB
|
80
|
+
- spec/tmp/xapdb/spelling.baseA
|
81
|
+
- spec/tmp/xapdb/spelling.baseB
|
82
|
+
- spec/tmp/xapdb/spelling.DB
|
83
|
+
- spec/tmp/xapdb/termlist.baseA
|
84
|
+
- spec/tmp/xapdb/termlist.baseB
|
85
|
+
- spec/tmp/xapdb/termlist.DB
|
86
|
+
- spec/tmp/xapian_db/flintlock
|
87
|
+
- spec/tmp/xapian_db/iamflint
|
88
|
+
- spec/tmp/xapian_db/postlist.baseA
|
89
|
+
- spec/tmp/xapian_db/postlist.DB
|
90
|
+
- spec/tmp/xapian_db/record.baseA
|
91
|
+
- spec/tmp/xapian_db/record.DB
|
92
|
+
- spec/tmp/xapian_db/termlist.baseA
|
93
|
+
- spec/tmp/xapian_db/termlist.DB
|
94
|
+
- spec/tmp/xapiandab/flintlock
|
95
|
+
- spec/tmp/xapiandab/iamflint
|
96
|
+
- spec/tmp/xapiandab/postlist.baseA
|
97
|
+
- spec/tmp/xapiandab/postlist.baseB
|
98
|
+
- spec/tmp/xapiandab/postlist.DB
|
99
|
+
- spec/tmp/xapiandab/record.baseA
|
100
|
+
- spec/tmp/xapiandab/record.baseB
|
101
|
+
- spec/tmp/xapiandab/record.DB
|
102
|
+
- spec/tmp/xapiandab/spelling.baseA
|
103
|
+
- spec/tmp/xapiandab/spelling.baseB
|
104
|
+
- spec/tmp/xapiandab/spelling.DB
|
105
|
+
- spec/tmp/xapiandab/termlist.baseA
|
106
|
+
- spec/tmp/xapiandab/termlist.baseB
|
107
|
+
- spec/tmp/xapiandab/termlist.DB
|
108
|
+
- spec/tmp/xapiandatab/flintlock
|
109
|
+
- spec/tmp/xapiandatab/iamflint
|
110
|
+
- spec/tmp/xapiandatab/postlist.baseA
|
111
|
+
- spec/tmp/xapiandatab/postlist.baseB
|
112
|
+
- spec/tmp/xapiandatab/postlist.DB
|
113
|
+
- spec/tmp/xapiandatab/record.baseA
|
114
|
+
- spec/tmp/xapiandatab/record.baseB
|
115
|
+
- spec/tmp/xapiandatab/record.DB
|
116
|
+
- spec/tmp/xapiandatab/spelling.baseA
|
117
|
+
- spec/tmp/xapiandatab/spelling.baseB
|
118
|
+
- spec/tmp/xapiandatab/spelling.DB
|
119
|
+
- spec/tmp/xapiandatab/termlist.baseA
|
120
|
+
- spec/tmp/xapiandatab/termlist.baseB
|
121
|
+
- spec/tmp/xapiandatab/termlist.DB
|
122
|
+
- spec/tmp/xapiandataba/flintlock
|
123
|
+
- spec/tmp/xapiandataba/iamflint
|
124
|
+
- spec/tmp/xapiandataba/postlist.baseA
|
125
|
+
- spec/tmp/xapiandataba/postlist.baseB
|
126
|
+
- spec/tmp/xapiandataba/postlist.DB
|
127
|
+
- spec/tmp/xapiandataba/record.baseA
|
128
|
+
- spec/tmp/xapiandataba/record.baseB
|
129
|
+
- spec/tmp/xapiandataba/record.DB
|
130
|
+
- spec/tmp/xapiandataba/spelling.baseA
|
131
|
+
- spec/tmp/xapiandataba/spelling.baseB
|
132
|
+
- spec/tmp/xapiandataba/spelling.DB
|
133
|
+
- spec/tmp/xapiandataba/termlist.baseA
|
134
|
+
- spec/tmp/xapiandataba/termlist.baseB
|
135
|
+
- spec/tmp/xapiandataba/termlist.DB
|
136
|
+
- spec/tmp/xapiandatabas/flintlock
|
137
|
+
- spec/tmp/xapiandatabas/iamflint
|
138
|
+
- spec/tmp/xapiandatabas/postlist.baseA
|
139
|
+
- spec/tmp/xapiandatabas/postlist.DB
|
140
|
+
- spec/tmp/xapiandatabas/record.baseA
|
141
|
+
- spec/tmp/xapiandatabas/record.DB
|
142
|
+
- spec/tmp/xapiandatabas/termlist.baseA
|
143
|
+
- spec/tmp/xapiandatabas/termlist.DB
|
144
|
+
- spec/tmp/xapiandatb/flintlock
|
145
|
+
- spec/tmp/xapiandatb/iamflint
|
146
|
+
- spec/tmp/xapiandatb/postlist.baseA
|
147
|
+
- spec/tmp/xapiandatb/postlist.baseB
|
148
|
+
- spec/tmp/xapiandatb/postlist.DB
|
149
|
+
- spec/tmp/xapiandatb/record.baseA
|
150
|
+
- spec/tmp/xapiandatb/record.baseB
|
151
|
+
- spec/tmp/xapiandatb/record.DB
|
152
|
+
- spec/tmp/xapiandatb/spelling.baseA
|
153
|
+
- spec/tmp/xapiandatb/spelling.baseB
|
154
|
+
- spec/tmp/xapiandatb/spelling.DB
|
155
|
+
- spec/tmp/xapiandatb/termlist.baseA
|
156
|
+
- spec/tmp/xapiandatb/termlist.baseB
|
157
|
+
- spec/tmp/xapiandatb/termlist.DB
|
158
|
+
- spec/tmp/xapiandbase/flintlock
|
159
|
+
- spec/tmp/xapiandbase/iamflint
|
160
|
+
- spec/tmp/xapiandbase/postlist.baseA
|
161
|
+
- spec/tmp/xapiandbase/postlist.baseB
|
162
|
+
- spec/tmp/xapiandbase/postlist.DB
|
163
|
+
- spec/tmp/xapiandbase/record.baseA
|
164
|
+
- spec/tmp/xapiandbase/record.baseB
|
165
|
+
- spec/tmp/xapiandbase/record.DB
|
166
|
+
- spec/tmp/xapiandbase/spelling.baseA
|
167
|
+
- spec/tmp/xapiandbase/spelling.baseB
|
168
|
+
- spec/tmp/xapiandbase/spelling.DB
|
169
|
+
- spec/tmp/xapiandbase/termlist.baseA
|
170
|
+
- spec/tmp/xapiandbase/termlist.baseB
|
171
|
+
- spec/tmp/xapiandbase/termlist.DB
|
172
|
+
- spec/xapit/collection_spec.rb
|
173
|
+
- spec/xapit/config_spec.rb
|
174
|
+
- spec/xapit/facet_blueprint_spec.rb
|
175
|
+
- spec/xapit/facet_option_spec.rb
|
176
|
+
- spec/xapit/facet_spec.rb
|
177
|
+
- spec/xapit/index_blueprint_spec.rb
|
178
|
+
- spec/xapit/indexers/abstract_indexer_spec.rb
|
179
|
+
- spec/xapit/indexers/classic_indexer_spec.rb
|
180
|
+
- spec/xapit/indexers/simple_indexer_spec.rb
|
181
|
+
- spec/xapit/membership_spec.rb
|
182
|
+
- spec/xapit/query_parsers/abstract_query_parser_spec.rb
|
183
|
+
- spec/xapit/query_parsers/classic_query_parser_spec.rb
|
184
|
+
- spec/xapit/query_parsers/simple_query_parser_spec.rb
|
185
|
+
- spec/xapit/query_spec.rb
|
186
|
+
- spec/xapit_member.rb
|
187
|
+
- tasks/spec.rb
|
188
|
+
- tasks/xapit.rake
|
189
|
+
- tmp/xapiandatabase/flintlock
|
190
|
+
- tmp/xapiandatabase/iamflint
|
191
|
+
- tmp/xapiandatabase/postlist.baseA
|
192
|
+
- tmp/xapiandatabase/postlist.baseB
|
193
|
+
- tmp/xapiandatabase/postlist.DB
|
194
|
+
- tmp/xapiandatabase/record.baseA
|
195
|
+
- tmp/xapiandatabase/record.baseB
|
196
|
+
- tmp/xapiandatabase/record.DB
|
197
|
+
- tmp/xapiandatabase/spelling.baseA
|
198
|
+
- tmp/xapiandatabase/spelling.baseB
|
199
|
+
- tmp/xapiandatabase/spelling.DB
|
200
|
+
- tmp/xapiandatabase/termlist.baseA
|
201
|
+
- tmp/xapiandatabase/termlist.baseB
|
202
|
+
- tmp/xapiandatabase/termlist.DB
|
203
|
+
- tmp/xapiandatabase/value.baseB
|
204
|
+
- tmp/xapiandb/flintlock
|
205
|
+
- tmp/xapiandb/iamflint
|
206
|
+
- tmp/xapiandb/postlist.baseA
|
207
|
+
- tmp/xapiandb/postlist.baseB
|
208
|
+
- tmp/xapiandb/postlist.DB
|
209
|
+
- tmp/xapiandb/record.baseA
|
210
|
+
- tmp/xapiandb/record.baseB
|
211
|
+
- tmp/xapiandb/record.DB
|
212
|
+
- tmp/xapiandb/spelling.baseA
|
213
|
+
- tmp/xapiandb/spelling.baseB
|
214
|
+
- tmp/xapiandb/spelling.DB
|
215
|
+
- tmp/xapiandb/termlist.baseA
|
216
|
+
- tmp/xapiandb/termlist.baseB
|
217
|
+
- tmp/xapiandb/termlist.DB
|
218
|
+
- tmp/xapiandb/value.baseB
|
219
|
+
- TODO
|
220
|
+
- uninstall.rb
|
221
|
+
- Manifest
|
222
|
+
- xapit.gemspec
|
223
|
+
has_rdoc: true
|
224
|
+
homepage: http://github.com/ryanb/xapit
|
225
|
+
licenses: []
|
226
|
+
|
227
|
+
post_install_message:
|
228
|
+
rdoc_options:
|
229
|
+
- --line-numbers
|
230
|
+
- --inline-source
|
231
|
+
- --title
|
232
|
+
- Xapit
|
233
|
+
- --main
|
234
|
+
- README.rdoc
|
235
|
+
require_paths:
|
236
|
+
- lib
|
237
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - ">="
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: "0"
|
242
|
+
version:
|
243
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
|
+
requirements:
|
245
|
+
- - ">="
|
246
|
+
- !ruby/object:Gem::Version
|
247
|
+
version: "1.2"
|
248
|
+
version:
|
249
|
+
requirements: []
|
250
|
+
|
251
|
+
rubyforge_project: xapit
|
252
|
+
rubygems_version: 1.3.3
|
253
|
+
signing_key:
|
254
|
+
specification_version: 3
|
255
|
+
summary: Ruby library for interacting with Xapian, a full text search engine.
|
256
|
+
test_files: []
|
257
|
+
|