xapor 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/LICENSE +1 -1
  2. data/README.textile +5 -4
  3. data/VERSION +1 -1
  4. data/xapor.gemspec +1 -1
  5. metadata +2 -2
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 David Workman
1
+ Copyright (c) 2010 Hedtek Ltd.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,18 +1,19 @@
1
1
  h1. Xapor
2
2
 
3
3
  h2. Description
4
+
4
5
  Pronounced 'zap-or'. A Xapian rails plugin, designed to integrate XapianFu into ActiveRecord in a nicer,
5
6
  simpler fashion.
6
7
 
7
8
  h2. Usage
8
9
 
9
10
  To add an index to a model, simply add a block like the following:
10
- @class SomeModel < ActiveRecord::Base
11
+ ==<pre>class SomeModel < ActiveRecord::Base
11
12
  xapor do |idx|
12
13
  idx.search :name
13
14
  idx.search :description
14
15
  end
15
- end@
16
+ end</pre>==
16
17
 
17
18
  This will create an in-memory index for the model. It will also automatically index all the items currently in the
18
19
  table and add and remove items from the index as they are created, updated and removed.
@@ -23,10 +24,10 @@ Once you have added xapor to a model, you can then search it by doing:
23
24
 
24
25
  This returns a XapianFu result set, which can be easily turned into AR models with a block like the following:
25
26
 
26
- @results = []
27
+ ==<pre>results = []
27
28
  SomeModel.search("Text").each do |result|
28
29
  results << SomeModel.find(result.id)
29
- end@
30
+ end</pre>==
30
31
 
31
32
  h2. TODO
32
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xapor}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Workman"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Workman