thinking-sphinx 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +7 -1
- data/features/searching_by_model.feature +24 -30
- data/features/step_definitions/common_steps.rb +5 -5
- data/features/thinking_sphinx/db/.gitignore +1 -0
- data/features/thinking_sphinx/db/fixtures/post_keywords.txt +1 -0
- data/spec/fixtures/data.sql +32 -0
- data/spec/fixtures/database.yml.default +3 -0
- data/spec/fixtures/models.rb +161 -0
- data/spec/fixtures/structure.sql +146 -0
- data/spec/spec_helper.rb +62 -0
- data/spec/sphinx_helper.rb +61 -0
- data/spec/support/rails.rb +18 -0
- data/spec/thinking_sphinx/active_record/delta_spec.rb +24 -24
- data/spec/thinking_sphinx/active_record/has_many_association_spec.rb +27 -0
- data/spec/thinking_sphinx/active_record/scopes_spec.rb +25 -25
- data/spec/thinking_sphinx/active_record_spec.rb +108 -107
- data/spec/thinking_sphinx/adapters/abstract_adapter_spec.rb +38 -38
- data/spec/thinking_sphinx/association_spec.rb +69 -35
- data/spec/thinking_sphinx/context_spec.rb +61 -64
- data/spec/thinking_sphinx/search_spec.rb +7 -0
- data/spec/thinking_sphinx_spec.rb +47 -46
- metadata +49 -141
- data/VERSION +0 -1
- data/lib/cucumber/thinking_sphinx/external_world.rb +0 -12
- data/lib/cucumber/thinking_sphinx/internal_world.rb +0 -127
- data/lib/cucumber/thinking_sphinx/sql_logger.rb +0 -20
- data/lib/thinking-sphinx.rb +0 -1
- data/lib/thinking_sphinx.rb +0 -301
- data/lib/thinking_sphinx/action_controller.rb +0 -31
- data/lib/thinking_sphinx/active_record.rb +0 -384
- data/lib/thinking_sphinx/active_record/attribute_updates.rb +0 -52
- data/lib/thinking_sphinx/active_record/delta.rb +0 -65
- data/lib/thinking_sphinx/active_record/has_many_association.rb +0 -36
- data/lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb +0 -21
- data/lib/thinking_sphinx/active_record/log_subscriber.rb +0 -61
- data/lib/thinking_sphinx/active_record/scopes.rb +0 -93
- data/lib/thinking_sphinx/adapters/abstract_adapter.rb +0 -87
- data/lib/thinking_sphinx/adapters/mysql_adapter.rb +0 -62
- data/lib/thinking_sphinx/adapters/postgresql_adapter.rb +0 -157
- data/lib/thinking_sphinx/association.rb +0 -219
- data/lib/thinking_sphinx/attribute.rb +0 -396
- data/lib/thinking_sphinx/auto_version.rb +0 -38
- data/lib/thinking_sphinx/bundled_search.rb +0 -44
- data/lib/thinking_sphinx/class_facet.rb +0 -20
- data/lib/thinking_sphinx/configuration.rb +0 -339
- data/lib/thinking_sphinx/context.rb +0 -76
- data/lib/thinking_sphinx/core/string.rb +0 -15
- data/lib/thinking_sphinx/deltas.rb +0 -28
- data/lib/thinking_sphinx/deltas/default_delta.rb +0 -62
- data/lib/thinking_sphinx/deploy/capistrano.rb +0 -101
- data/lib/thinking_sphinx/excerpter.rb +0 -23
- data/lib/thinking_sphinx/facet.rb +0 -128
- data/lib/thinking_sphinx/facet_search.rb +0 -170
- data/lib/thinking_sphinx/field.rb +0 -98
- data/lib/thinking_sphinx/index.rb +0 -157
- data/lib/thinking_sphinx/index/builder.rb +0 -312
- data/lib/thinking_sphinx/index/faux_column.rb +0 -118
- data/lib/thinking_sphinx/join.rb +0 -37
- data/lib/thinking_sphinx/property.rb +0 -185
- data/lib/thinking_sphinx/railtie.rb +0 -46
- data/lib/thinking_sphinx/search.rb +0 -972
- data/lib/thinking_sphinx/search_methods.rb +0 -439
- data/lib/thinking_sphinx/sinatra.rb +0 -7
- data/lib/thinking_sphinx/source.rb +0 -194
- data/lib/thinking_sphinx/source/internal_properties.rb +0 -51
- data/lib/thinking_sphinx/source/sql.rb +0 -157
- data/lib/thinking_sphinx/tasks.rb +0 -130
- data/lib/thinking_sphinx/test.rb +0 -55
- data/tasks/distribution.rb +0 -33
- data/tasks/testing.rb +0 -80
@@ -646,6 +646,13 @@ describe ThinkingSphinx::Search do
|
|
646
646
|
filter.attribute.should == 'sphinx_internal_id'
|
647
647
|
filter.exclude?.should be_true
|
648
648
|
end
|
649
|
+
|
650
|
+
it "should not filter out any ids if :without_ids is an empty array" do
|
651
|
+
ThinkingSphinx::Search.new(:without_ids => []).first
|
652
|
+
|
653
|
+
filter = @client.filters.last
|
654
|
+
filter.attribute.should_not == 'sphinx_internal_id'
|
655
|
+
end
|
649
656
|
end
|
650
657
|
|
651
658
|
describe 'sort mode' do
|
@@ -5,40 +5,40 @@ describe ThinkingSphinx do
|
|
5
5
|
it "should return a Context instance" do
|
6
6
|
ThinkingSphinx.context.should be_a(ThinkingSphinx::Context)
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
it "should remember changes to the Context instance" do
|
10
|
-
models = ThinkingSphinx.context.indexed_models
|
11
|
-
|
10
|
+
models = ThinkingSphinx.context.indexed_models.clone
|
11
|
+
|
12
12
|
ThinkingSphinx.context.indexed_models.replace([:model])
|
13
13
|
ThinkingSphinx.context.indexed_models.should == [:model]
|
14
|
-
|
14
|
+
|
15
15
|
ThinkingSphinx.context.indexed_models.replace(models)
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
describe '.reset_context!' do
|
20
20
|
it "should remove the existing Context instance" do
|
21
21
|
existing = ThinkingSphinx.context
|
22
|
-
|
22
|
+
|
23
23
|
ThinkingSphinx.reset_context!
|
24
24
|
ThinkingSphinx.context.should_not == existing
|
25
|
-
|
25
|
+
|
26
26
|
ThinkingSphinx.reset_context! existing
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
describe '.define_indexes?' do
|
31
31
|
it "should define indexes by default" do
|
32
32
|
ThinkingSphinx.define_indexes?.should be_true
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
describe '.define_indexes=' do
|
37
37
|
it "should disable index definition" do
|
38
38
|
ThinkingSphinx.define_indexes = false
|
39
39
|
ThinkingSphinx.define_indexes?.should be_false
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
it "should enable index definition" do
|
43
43
|
ThinkingSphinx.define_indexes = false
|
44
44
|
ThinkingSphinx.define_indexes?.should be_false
|
@@ -46,19 +46,19 @@ describe ThinkingSphinx do
|
|
46
46
|
ThinkingSphinx.define_indexes?.should be_true
|
47
47
|
end
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
describe '.deltas_enabled?' do
|
51
51
|
it "should index deltas by default" do
|
52
52
|
ThinkingSphinx.deltas_enabled?.should be_true
|
53
53
|
end
|
54
54
|
end
|
55
|
-
|
55
|
+
|
56
56
|
describe '.deltas_enabled=' do
|
57
57
|
it "should disable delta indexing" do
|
58
58
|
ThinkingSphinx.deltas_enabled = false
|
59
59
|
ThinkingSphinx.deltas_enabled?.should be_false
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
it "should enable delta indexing" do
|
63
63
|
ThinkingSphinx.deltas_enabled = false
|
64
64
|
ThinkingSphinx.deltas_enabled?.should be_false
|
@@ -66,20 +66,22 @@ describe ThinkingSphinx do
|
|
66
66
|
ThinkingSphinx.deltas_enabled?.should be_true
|
67
67
|
end
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
describe '.updates_enabled?' do
|
71
71
|
it "should update indexes by default" do
|
72
|
+
ThinkingSphinx::Configuration.stub! :environment => 'development'
|
73
|
+
|
72
74
|
ThinkingSphinx.updates_enabled = nil
|
73
75
|
ThinkingSphinx.updates_enabled?.should be_true
|
74
76
|
end
|
75
77
|
end
|
76
|
-
|
78
|
+
|
77
79
|
describe '.updates_enabled=' do
|
78
80
|
it "should disable index updating" do
|
79
81
|
ThinkingSphinx.updates_enabled = false
|
80
82
|
ThinkingSphinx.updates_enabled?.should be_false
|
81
83
|
end
|
82
|
-
|
84
|
+
|
83
85
|
it "should enable index updating" do
|
84
86
|
ThinkingSphinx.updates_enabled = false
|
85
87
|
ThinkingSphinx.updates_enabled?.should be_false
|
@@ -87,35 +89,25 @@ describe ThinkingSphinx do
|
|
87
89
|
ThinkingSphinx.updates_enabled?.should be_true
|
88
90
|
end
|
89
91
|
end
|
90
|
-
|
92
|
+
|
91
93
|
describe '.sphinx_running?' do
|
92
94
|
it "should always say Sphinx is running if flagged as being on a remote machine" do
|
93
95
|
ThinkingSphinx.remote_sphinx = true
|
94
96
|
ThinkingSphinx.stub!(:sphinx_running_by_pid? => false)
|
95
|
-
|
97
|
+
|
96
98
|
ThinkingSphinx.sphinx_running?.should be_true
|
97
99
|
end
|
98
|
-
|
100
|
+
|
99
101
|
it "should actually pay attention to Sphinx if not on a remote machine" do
|
100
102
|
ThinkingSphinx.remote_sphinx = false
|
101
103
|
ThinkingSphinx.stub!(:sphinx_running_by_pid? => false)
|
102
104
|
ThinkingSphinx.sphinx_running?.should be_false
|
103
|
-
|
105
|
+
|
104
106
|
ThinkingSphinx.stub!(:sphinx_running_by_pid? => true)
|
105
107
|
ThinkingSphinx.sphinx_running?.should be_true
|
106
108
|
end
|
107
109
|
end
|
108
|
-
|
109
|
-
describe '.version' do
|
110
|
-
it "should return the version from the stored YAML file" do
|
111
|
-
version = Jeweler::VersionHelper.new(
|
112
|
-
File.join(File.dirname(__FILE__), '..')
|
113
|
-
).to_s
|
114
|
-
|
115
|
-
ThinkingSphinx.version.should == version
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
110
|
+
|
119
111
|
describe "use_group_by_shortcut? method" do
|
120
112
|
before :each do
|
121
113
|
adapter = defined?(JRUBY_VERSION) ? :JdbcAdapter : :MysqlAdapter
|
@@ -123,7 +115,7 @@ describe ThinkingSphinx do
|
|
123
115
|
pending "No MySQL"
|
124
116
|
return
|
125
117
|
end
|
126
|
-
|
118
|
+
|
127
119
|
@connection = stub('adapter',
|
128
120
|
:select_all => true,
|
129
121
|
:class => ActiveRecord::ConnectionAdapters::MysqlAdapter,
|
@@ -132,34 +124,43 @@ describe ThinkingSphinx do
|
|
132
124
|
::ActiveRecord::Base.stub!(
|
133
125
|
:connection => @connection
|
134
126
|
)
|
135
|
-
|
127
|
+
|
136
128
|
ThinkingSphinx.reset_use_group_by_shortcut
|
137
129
|
end
|
138
|
-
|
130
|
+
|
139
131
|
it "should return true if no ONLY_FULL_GROUP_BY" do
|
140
132
|
@connection.stub!(
|
141
133
|
:select_all => {:a => "OTHER SETTINGS"}
|
142
134
|
)
|
143
|
-
|
135
|
+
|
144
136
|
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
145
137
|
end
|
146
|
-
|
138
|
+
|
147
139
|
it "should return true if NULL value" do
|
148
140
|
@connection.stub!(
|
149
141
|
:select_all => {:a => nil}
|
150
142
|
)
|
151
|
-
|
143
|
+
|
152
144
|
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
153
145
|
end
|
154
|
-
|
146
|
+
|
147
|
+
it "should return true if using mysql2 gem" do
|
148
|
+
@connection.stub!(
|
149
|
+
:class => ActiveRecord::ConnectionAdapters::Mysql2Adapter,
|
150
|
+
:select_all => {:a => ""}
|
151
|
+
)
|
152
|
+
|
153
|
+
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
154
|
+
end unless RUBY_PLATFORM == 'java'
|
155
|
+
|
155
156
|
it "should return false if ONLY_FULL_GROUP_BY is set" do
|
156
157
|
@connection.stub!(
|
157
158
|
:select_all => {:a => "OTHER SETTINGS,ONLY_FULL_GROUP_BY,blah"}
|
158
159
|
)
|
159
|
-
|
160
|
+
|
160
161
|
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
161
162
|
end
|
162
|
-
|
163
|
+
|
163
164
|
it "should return false if ONLY_FULL_GROUP_BY is set in any of the values" do
|
164
165
|
@connection.stub!(
|
165
166
|
:select_all => {
|
@@ -167,10 +168,10 @@ describe ThinkingSphinx do
|
|
167
168
|
:b => "ONLY_FULL_GROUP_BY"
|
168
169
|
}
|
169
170
|
)
|
170
|
-
|
171
|
+
|
171
172
|
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
172
173
|
end
|
173
|
-
|
174
|
+
|
174
175
|
describe "if not using MySQL" do
|
175
176
|
before :each do
|
176
177
|
adapter = defined?(JRUBY_VERSION) ? 'JdbcAdapter' : 'PostgreSQLAdapter'
|
@@ -178,7 +179,7 @@ describe ThinkingSphinx do
|
|
178
179
|
pending "No PostgreSQL"
|
179
180
|
return
|
180
181
|
end
|
181
|
-
|
182
|
+
|
182
183
|
@connection = stub(adapter).as_null_object
|
183
184
|
@connection.stub!(
|
184
185
|
:select_all => true,
|
@@ -188,14 +189,14 @@ describe ThinkingSphinx do
|
|
188
189
|
:connection => @connection
|
189
190
|
)
|
190
191
|
end
|
191
|
-
|
192
|
+
|
192
193
|
it "should return false" do
|
193
194
|
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
194
195
|
end
|
195
|
-
|
196
|
+
|
196
197
|
it "should not call select_all" do
|
197
198
|
@connection.should_not_receive(:select_all)
|
198
|
-
|
199
|
+
|
199
200
|
ThinkingSphinx.use_group_by_shortcut?
|
200
201
|
end
|
201
202
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: thinking-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.0.
|
5
|
+
version: 2.0.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Pat Allan
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-28 00:00:00 +10:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -36,57 +36,57 @@ dependencies:
|
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: actionpack
|
40
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- - "
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 3.0.3
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: cucumber
|
51
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - "="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 1.0.2
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
61
|
+
name: faker
|
62
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - "="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 0.3.1
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: *id005
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: ginger
|
73
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - "="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 1.
|
78
|
+
version: 1.2.0
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: *id006
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
83
|
+
name: rake
|
84
84
|
requirement: &id007 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.9.2
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: *id007
|
@@ -97,157 +97,44 @@ dependencies:
|
|
97
97
|
requirements:
|
98
98
|
- - "="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.
|
100
|
+
version: 2.6.0
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
103
|
version_requirements: *id008
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
|
-
name:
|
105
|
+
name: will_paginate
|
106
106
|
requirement: &id009 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - "="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: "3.0"
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: *id009
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
116
|
+
name: yard
|
117
117
|
requirement: &id010 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
|
-
- - "
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
122
|
+
version: 0.7.2
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: *id010
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: rspec-mocks
|
128
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - "="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 2.5.0
|
134
|
-
type: :development
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: *id011
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: rcov
|
139
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
|
-
requirements:
|
142
|
-
- - "="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 0.9.8
|
145
|
-
type: :development
|
146
|
-
prerelease: false
|
147
|
-
version_requirements: *id012
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
|
-
name: cucumber
|
150
|
-
requirement: &id013 !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
|
-
requirements:
|
153
|
-
- - "="
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 0.10.1
|
156
|
-
type: :development
|
157
|
-
prerelease: false
|
158
|
-
version_requirements: *id013
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: will_paginate
|
161
|
-
requirement: &id014 !ruby/object:Gem::Requirement
|
162
|
-
none: false
|
163
|
-
requirements:
|
164
|
-
- - "="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 3.0.pre
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: *id014
|
170
|
-
- !ruby/object:Gem::Dependency
|
171
|
-
name: ginger
|
172
|
-
requirement: &id015 !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
|
-
requirements:
|
175
|
-
- - "="
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: 1.2.0
|
178
|
-
type: :development
|
179
|
-
prerelease: false
|
180
|
-
version_requirements: *id015
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: faker
|
183
|
-
requirement: &id016 !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
|
-
requirements:
|
186
|
-
- - "="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: 0.3.1
|
189
|
-
type: :development
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: *id016
|
192
126
|
description: A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching.
|
193
|
-
email:
|
127
|
+
email:
|
128
|
+
- pat@freelancing-gods.com
|
194
129
|
executables: []
|
195
130
|
|
196
131
|
extensions: []
|
197
132
|
|
198
|
-
extra_rdoc_files:
|
199
|
-
|
133
|
+
extra_rdoc_files: []
|
134
|
+
|
200
135
|
files:
|
201
136
|
- LICENCE
|
202
137
|
- README.textile
|
203
|
-
- VERSION
|
204
|
-
- lib/cucumber/thinking_sphinx/external_world.rb
|
205
|
-
- lib/cucumber/thinking_sphinx/internal_world.rb
|
206
|
-
- lib/cucumber/thinking_sphinx/sql_logger.rb
|
207
|
-
- lib/thinking-sphinx.rb
|
208
|
-
- lib/thinking_sphinx.rb
|
209
|
-
- lib/thinking_sphinx/action_controller.rb
|
210
|
-
- lib/thinking_sphinx/active_record.rb
|
211
|
-
- lib/thinking_sphinx/active_record/attribute_updates.rb
|
212
|
-
- lib/thinking_sphinx/active_record/delta.rb
|
213
|
-
- lib/thinking_sphinx/active_record/has_many_association.rb
|
214
|
-
- lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb
|
215
|
-
- lib/thinking_sphinx/active_record/log_subscriber.rb
|
216
|
-
- lib/thinking_sphinx/active_record/scopes.rb
|
217
|
-
- lib/thinking_sphinx/adapters/abstract_adapter.rb
|
218
|
-
- lib/thinking_sphinx/adapters/mysql_adapter.rb
|
219
|
-
- lib/thinking_sphinx/adapters/postgresql_adapter.rb
|
220
|
-
- lib/thinking_sphinx/association.rb
|
221
|
-
- lib/thinking_sphinx/attribute.rb
|
222
|
-
- lib/thinking_sphinx/auto_version.rb
|
223
|
-
- lib/thinking_sphinx/bundled_search.rb
|
224
|
-
- lib/thinking_sphinx/class_facet.rb
|
225
|
-
- lib/thinking_sphinx/configuration.rb
|
226
|
-
- lib/thinking_sphinx/context.rb
|
227
|
-
- lib/thinking_sphinx/core/string.rb
|
228
|
-
- lib/thinking_sphinx/deltas.rb
|
229
|
-
- lib/thinking_sphinx/deltas/default_delta.rb
|
230
|
-
- lib/thinking_sphinx/deploy/capistrano.rb
|
231
|
-
- lib/thinking_sphinx/excerpter.rb
|
232
|
-
- lib/thinking_sphinx/facet.rb
|
233
|
-
- lib/thinking_sphinx/facet_search.rb
|
234
|
-
- lib/thinking_sphinx/field.rb
|
235
|
-
- lib/thinking_sphinx/index.rb
|
236
|
-
- lib/thinking_sphinx/index/builder.rb
|
237
|
-
- lib/thinking_sphinx/index/faux_column.rb
|
238
|
-
- lib/thinking_sphinx/join.rb
|
239
|
-
- lib/thinking_sphinx/property.rb
|
240
|
-
- lib/thinking_sphinx/railtie.rb
|
241
|
-
- lib/thinking_sphinx/search.rb
|
242
|
-
- lib/thinking_sphinx/search_methods.rb
|
243
|
-
- lib/thinking_sphinx/sinatra.rb
|
244
|
-
- lib/thinking_sphinx/source.rb
|
245
|
-
- lib/thinking_sphinx/source/internal_properties.rb
|
246
|
-
- lib/thinking_sphinx/source/sql.rb
|
247
|
-
- lib/thinking_sphinx/tasks.rb
|
248
|
-
- lib/thinking_sphinx/test.rb
|
249
|
-
- tasks/distribution.rb
|
250
|
-
- tasks/testing.rb
|
251
138
|
- features/abstract_inheritance.feature
|
252
139
|
- features/alternate_primary_key.feature
|
253
140
|
- features/attribute_transformation.feature
|
@@ -281,6 +168,7 @@ files:
|
|
281
168
|
- features/support/env.rb
|
282
169
|
- features/support/lib/generic_delta_handler.rb
|
283
170
|
- features/thinking_sphinx/database.example.yml
|
171
|
+
- features/thinking_sphinx/db/.gitignore
|
284
172
|
- features/thinking_sphinx/db/fixtures/alphas.rb
|
285
173
|
- features/thinking_sphinx/db/fixtures/authors.rb
|
286
174
|
- features/thinking_sphinx/db/fixtures/betas.rb
|
@@ -295,6 +183,7 @@ files:
|
|
295
183
|
- features/thinking_sphinx/db/fixtures/gammas.rb
|
296
184
|
- features/thinking_sphinx/db/fixtures/music.rb
|
297
185
|
- features/thinking_sphinx/db/fixtures/people.rb
|
186
|
+
- features/thinking_sphinx/db/fixtures/post_keywords.txt
|
298
187
|
- features/thinking_sphinx/db/fixtures/posts.rb
|
299
188
|
- features/thinking_sphinx/db/fixtures/robots.rb
|
300
189
|
- features/thinking_sphinx/db/fixtures/tags.rb
|
@@ -338,6 +227,13 @@ files:
|
|
338
227
|
- features/thinking_sphinx/models/robot.rb
|
339
228
|
- features/thinking_sphinx/models/tag.rb
|
340
229
|
- features/thinking_sphinx/models/tagging.rb
|
230
|
+
- spec/fixtures/data.sql
|
231
|
+
- spec/fixtures/database.yml.default
|
232
|
+
- spec/fixtures/models.rb
|
233
|
+
- spec/fixtures/structure.sql
|
234
|
+
- spec/spec_helper.rb
|
235
|
+
- spec/sphinx_helper.rb
|
236
|
+
- spec/support/rails.rb
|
341
237
|
- spec/thinking_sphinx/active_record/delta_spec.rb
|
342
238
|
- spec/thinking_sphinx/active_record/has_many_association_spec.rb
|
343
239
|
- spec/thinking_sphinx/active_record/scopes_spec.rb
|
@@ -363,7 +259,7 @@ files:
|
|
363
259
|
- spec/thinking_sphinx/test_spec.rb
|
364
260
|
- spec/thinking_sphinx_spec.rb
|
365
261
|
has_rdoc: true
|
366
|
-
homepage: http://
|
262
|
+
homepage: http://freelancing-god.github.com/ts/en/
|
367
263
|
licenses: []
|
368
264
|
|
369
265
|
post_install_message: |+
|
@@ -379,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
379
275
|
requirements:
|
380
276
|
- - ">="
|
381
277
|
- !ruby/object:Gem::Version
|
382
|
-
hash:
|
278
|
+
hash: -3167487987555359766
|
383
279
|
segments:
|
384
280
|
- 0
|
385
281
|
version: "0"
|
@@ -388,10 +284,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
388
284
|
requirements:
|
389
285
|
- - ">="
|
390
286
|
- !ruby/object:Gem::Version
|
287
|
+
hash: -3167487987555359766
|
288
|
+
segments:
|
289
|
+
- 0
|
391
290
|
version: "0"
|
392
291
|
requirements: []
|
393
292
|
|
394
|
-
rubyforge_project:
|
293
|
+
rubyforge_project: thinking-sphinx
|
395
294
|
rubygems_version: 1.6.2
|
396
295
|
signing_key:
|
397
296
|
specification_version: 3
|
@@ -430,6 +329,7 @@ test_files:
|
|
430
329
|
- features/support/env.rb
|
431
330
|
- features/support/lib/generic_delta_handler.rb
|
432
331
|
- features/thinking_sphinx/database.example.yml
|
332
|
+
- features/thinking_sphinx/db/.gitignore
|
433
333
|
- features/thinking_sphinx/db/fixtures/alphas.rb
|
434
334
|
- features/thinking_sphinx/db/fixtures/authors.rb
|
435
335
|
- features/thinking_sphinx/db/fixtures/betas.rb
|
@@ -444,6 +344,7 @@ test_files:
|
|
444
344
|
- features/thinking_sphinx/db/fixtures/gammas.rb
|
445
345
|
- features/thinking_sphinx/db/fixtures/music.rb
|
446
346
|
- features/thinking_sphinx/db/fixtures/people.rb
|
347
|
+
- features/thinking_sphinx/db/fixtures/post_keywords.txt
|
447
348
|
- features/thinking_sphinx/db/fixtures/posts.rb
|
448
349
|
- features/thinking_sphinx/db/fixtures/robots.rb
|
449
350
|
- features/thinking_sphinx/db/fixtures/tags.rb
|
@@ -487,6 +388,13 @@ test_files:
|
|
487
388
|
- features/thinking_sphinx/models/robot.rb
|
488
389
|
- features/thinking_sphinx/models/tag.rb
|
489
390
|
- features/thinking_sphinx/models/tagging.rb
|
391
|
+
- spec/fixtures/data.sql
|
392
|
+
- spec/fixtures/database.yml.default
|
393
|
+
- spec/fixtures/models.rb
|
394
|
+
- spec/fixtures/structure.sql
|
395
|
+
- spec/spec_helper.rb
|
396
|
+
- spec/sphinx_helper.rb
|
397
|
+
- spec/support/rails.rb
|
490
398
|
- spec/thinking_sphinx/active_record/delta_spec.rb
|
491
399
|
- spec/thinking_sphinx/active_record/has_many_association_spec.rb
|
492
400
|
- spec/thinking_sphinx/active_record/scopes_spec.rb
|