hawkerb-thinking-sphinx 1.3.14 → 1.3.15
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +22 -0
- data/VERSION +1 -1
- data/lib/thinking_sphinx.rb +2 -8
- metadata +2 -2
data/README.textile
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
h1. Slightly modified version of Thinking Sphinx
|
2
|
+
|
3
|
+
h2. Removed automated includes
|
4
|
+
|
5
|
+
I this version, all of your models which use TS must manually include ThinkingSphinx modules. Example:
|
6
|
+
|
7
|
+
class Person
|
8
|
+
|
9
|
+
# Sphinx
|
10
|
+
include ThinkingSphinx::ActiveRecord::Scopes
|
11
|
+
include ThinkingSphinx::SearchMethods
|
12
|
+
include ThinkingSphinx::ActiveRecord::AttributeUpdates
|
13
|
+
include ThinkingSphinx::ActiveRecord::Delta
|
14
|
+
define_index do
|
15
|
+
...
|
16
|
+
end
|
17
|
+
|
18
|
+
...
|
19
|
+
end
|
20
|
+
|
21
|
+
Because of that, it is a lot easier to override default sphinx methods.
|
22
|
+
|
1
23
|
h1. Thinking Sphinx
|
2
24
|
|
3
25
|
h2. Usage
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.15
|
data/lib/thinking_sphinx.rb
CHANGED
@@ -102,11 +102,8 @@ module ThinkingSphinx
|
|
102
102
|
#
|
103
103
|
def self.deltas_enabled?
|
104
104
|
if Thread.current[:thinking_sphinx_deltas_enabled].nil?
|
105
|
-
|
106
|
-
ThinkingSphinx::Configuration.environment != "test"
|
107
|
-
)
|
105
|
+
return true
|
108
106
|
end
|
109
|
-
|
110
107
|
Thread.current[:thinking_sphinx_deltas_enabled]
|
111
108
|
end
|
112
109
|
|
@@ -123,11 +120,8 @@ module ThinkingSphinx
|
|
123
120
|
#
|
124
121
|
def self.updates_enabled?
|
125
122
|
if Thread.current[:thinking_sphinx_updates_enabled].nil?
|
126
|
-
|
127
|
-
ThinkingSphinx::Configuration.environment != "test"
|
128
|
-
)
|
123
|
+
return true
|
129
124
|
end
|
130
|
-
|
131
125
|
Thread.current[:thinking_sphinx_updates_enabled]
|
132
126
|
end
|
133
127
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hawkerb-thinking-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-15 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|