thinking-sphinx 1.3.10 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/features/abstract_inheritance.feature +10 -0
- data/features/support/db/fixtures/music.rb +4 -0
- data/features/support/db/migrations/create_genres.rb +3 -0
- data/features/support/db/migrations/create_music.rb +6 -0
- data/features/support/models/genre.rb +3 -0
- data/features/support/models/medium.rb +5 -0
- data/features/support/models/music.rb +8 -0
- data/lib/thinking_sphinx/active_record.rb +2 -0
- metadata +9 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.11
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: Abstract inheritance
|
2
|
+
In order to use Thinking Sphinx in complex situations
|
3
|
+
As a developer
|
4
|
+
I want to define indexes on subclasses of abstract models
|
5
|
+
|
6
|
+
Scenario: Searching on subclasses of abstract models
|
7
|
+
Given Sphinx is running
|
8
|
+
And I am searching on music
|
9
|
+
When I search
|
10
|
+
Then I should get 3 results
|
@@ -0,0 +1,4 @@
|
|
1
|
+
pop = Genre.create(:name => "Pop")
|
2
|
+
Music.create :artist => "Gotye", :album => "Like Drawing Blood", :track => "Heart's A Mess", :genre => pop
|
3
|
+
Music.create :artist => "The Whitlams", :album => "Eternal Nightcap", :track => "Melbourne", :genre => pop
|
4
|
+
Music.create :artist => "Ben Folds", :album => "Ben Folds Live", :track => "Not The Same", :genre => pop
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thinking-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-12 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -129,6 +129,7 @@ signing_key:
|
|
129
129
|
specification_version: 3
|
130
130
|
summary: ActiveRecord/Rails Sphinx library
|
131
131
|
test_files:
|
132
|
+
- features/abstract_inheritance.feature
|
132
133
|
- features/alternate_primary_key.feature
|
133
134
|
- features/attribute_transformation.feature
|
134
135
|
- features/attribute_updates.feature
|
@@ -171,6 +172,7 @@ test_files:
|
|
171
172
|
- features/support/db/fixtures/extensible_betas.rb
|
172
173
|
- features/support/db/fixtures/foxes.rb
|
173
174
|
- features/support/db/fixtures/gammas.rb
|
175
|
+
- features/support/db/fixtures/music.rb
|
174
176
|
- features/support/db/fixtures/people.rb
|
175
177
|
- features/support/db/fixtures/posts.rb
|
176
178
|
- features/support/db/fixtures/robots.rb
|
@@ -186,6 +188,8 @@ test_files:
|
|
186
188
|
- features/support/db/migrations/create_developers.rb
|
187
189
|
- features/support/db/migrations/create_extensible_betas.rb
|
188
190
|
- features/support/db/migrations/create_gammas.rb
|
191
|
+
- features/support/db/migrations/create_genres.rb
|
192
|
+
- features/support/db/migrations/create_music.rb
|
189
193
|
- features/support/db/migrations/create_people.rb
|
190
194
|
- features/support/db/migrations/create_posts.rb
|
191
195
|
- features/support/db/migrations/create_robots.rb
|
@@ -206,6 +210,9 @@ test_files:
|
|
206
210
|
- features/support/models/extensible_beta.rb
|
207
211
|
- features/support/models/fox.rb
|
208
212
|
- features/support/models/gamma.rb
|
213
|
+
- features/support/models/genre.rb
|
214
|
+
- features/support/models/medium.rb
|
215
|
+
- features/support/models/music.rb
|
209
216
|
- features/support/models/person.rb
|
210
217
|
- features/support/models/post.rb
|
211
218
|
- features/support/models/robot.rb
|