hawkerb-thinking-sphinx 1.3.17 → 1.3.18

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.17
1
+ 1.3.18
@@ -46,7 +46,7 @@ module ThinkingSphinx
46
46
  @sphinx_scopes ||= []
47
47
  @sphinx_scopes << method
48
48
 
49
- metaclass.instance_eval do
49
+ singleton_class.instance_eval do
50
50
  define_method(method) do |*args|
51
51
  options = {:classes => classes_option}
52
52
  options.merge! block.call(*args)
@@ -64,7 +64,7 @@ module ThinkingSphinx
64
64
 
65
65
  def remove_sphinx_scopes
66
66
  sphinx_scopes.each do |scope|
67
- metaclass.send(:undef_method, scope)
67
+ singleton_class.send(:undef_method, scope)
68
68
  end
69
69
 
70
70
  sphinx_scopes.clear
@@ -137,7 +137,7 @@ Class.extend(
137
137
 
138
138
  module ThinkingSphinx
139
139
  module MetaClass
140
- def metaclass
140
+ def singleton_class
141
141
  class << self
142
142
  self
143
143
  end
@@ -145,6 +145,6 @@ module ThinkingSphinx
145
145
  end
146
146
  end
147
147
 
148
- unless Object.new.respond_to?(:metaclass)
148
+ unless Object.new.respond_to?(:singleton_class)
149
149
  Object.send(:include, ThinkingSphinx::MetaClass)
150
150
  end
@@ -284,7 +284,7 @@ module ThinkingSphinx
284
284
  excerpter = ThinkingSphinx::Excerpter.new self, object
285
285
  block = lambda { excerpter }
286
286
 
287
- object.metaclass.instance_eval do
287
+ object.singleton_class.instance_eval do
288
288
  define_method(:excerpts, &block)
289
289
  end
290
290
  end
@@ -297,7 +297,7 @@ module ThinkingSphinx
297
297
  match = match_hash object
298
298
  next if match.nil?
299
299
 
300
- object.metaclass.instance_eval do
300
+ object.singleton_class.instance_eval do
301
301
  define_method(:sphinx_attributes) { match[:attributes] }
302
302
  end
303
303
  end
@@ -313,7 +313,7 @@ module ThinkingSphinx
313
313
  @results[:fields], match[:weight]
314
314
  )
315
315
 
316
- object.metaclass.instance_eval do
316
+ object.singleton_class.instance_eval do
317
317
  define_method(:matching_fields) { fields }
318
318
  end
319
319
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hawkerb-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.17
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 3
8
+ - 18
9
+ version: 1.3.18
5
10
  platform: ruby
6
11
  authors:
7
12
  - Pat Allan
@@ -10,39 +15,51 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2010-01-29 00:00:00 +01:00
18
+ date: 2010-06-07 00:00:00 +02:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: activerecord
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
21
25
  requirements:
22
26
  - - ">="
23
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 15
31
+ - 6
24
32
  version: 1.15.6
25
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
26
35
  - !ruby/object:Gem::Dependency
27
36
  name: riddle
28
- type: :runtime
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
31
39
  requirements:
32
40
  - - ">="
33
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 0
45
+ - 8
34
46
  version: 1.0.8
35
- version:
47
+ type: :runtime
48
+ version_requirements: *id002
36
49
  - !ruby/object:Gem::Dependency
37
50
  name: after_commit
38
- type: :runtime
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
41
53
  requirements:
42
54
  - - ">="
43
55
  - !ruby/object:Gem::Version
56
+ segments:
57
+ - 1
58
+ - 0
59
+ - 5
44
60
  version: 1.0.5
45
- version:
61
+ type: :runtime
62
+ version_requirements: *id003
46
63
  description: A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching.
47
64
  email: hawk@zenbe.com
48
65
  executables: []
@@ -114,130 +131,132 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
131
  requirements:
115
132
  - - ">="
116
133
  - !ruby/object:Gem::Version
134
+ segments:
135
+ - 0
117
136
  version: "0"
118
- version:
119
137
  required_rubygems_version: !ruby/object:Gem::Requirement
120
138
  requirements:
121
139
  - - ">="
122
140
  - !ruby/object:Gem::Version
141
+ segments:
142
+ - 0
123
143
  version: "0"
124
- version:
125
144
  requirements: []
126
145
 
127
146
  rubyforge_project:
128
- rubygems_version: 1.3.5
147
+ rubygems_version: 1.3.6
129
148
  signing_key:
130
149
  specification_version: 3
131
150
  summary: ActiveRecord/Rails Sphinx library
132
151
  test_files:
133
- - features/deleting_instances.feature
134
- - features/searching_with_find_arguments.feature
135
- - features/retry_stale_indexes.feature
136
- - features/sphinx_detection.feature
152
+ - features/handling_edits.feature
153
+ - features/sphinx_scopes.feature
137
154
  - features/facets.feature
138
- - features/attribute_transformation.feature
139
- - features/sti_searching.feature
140
- - features/searching_by_model.feature
141
155
  - features/abstract_inheritance.feature
142
156
  - features/alternate_primary_key.feature
157
+ - features/facets_across_model.feature
158
+ - features/searching_by_model.feature
159
+ - features/sphinx_detection.feature
143
160
  - features/step_definitions/gamma_steps.rb
144
- - features/step_definitions/beta_steps.rb
161
+ - features/step_definitions/alpha_steps.rb
145
162
  - features/step_definitions/facet_steps.rb
146
- - features/step_definitions/extensible_delta_indexing_steps.rb
147
163
  - features/step_definitions/scope_steps.rb
148
164
  - features/step_definitions/common_steps.rb
149
- - features/step_definitions/find_arguments_steps.rb
150
165
  - features/step_definitions/sphinx_steps.rb
166
+ - features/step_definitions/find_arguments_steps.rb
151
167
  - features/step_definitions/search_steps.rb
152
- - features/step_definitions/alpha_steps.rb
153
- - features/sphinx_scopes.feature
154
- - features/extensible_delta_indexing.feature
155
- - features/attribute_updates.feature
168
+ - features/step_definitions/beta_steps.rb
169
+ - features/step_definitions/extensible_delta_indexing_steps.rb
156
170
  - features/excerpts.feature
171
+ - features/attribute_updates.feature
172
+ - features/sti_searching.feature
173
+ - features/searching_with_find_arguments.feature
174
+ - features/searching_across_models.feature
175
+ - features/searching_by_index.feature
176
+ - features/attribute_transformation.feature
177
+ - features/retry_stale_indexes.feature
178
+ - features/deleting_instances.feature
179
+ - features/extensible_delta_indexing.feature
180
+ - features/support/database.example.yml
157
181
  - features/support/env.rb
158
- - features/support/db/migrations/create_extensible_betas.rb
159
- - features/support/db/migrations/create_categories.rb
160
- - features/support/db/migrations/create_betas.rb
161
- - features/support/db/migrations/create_authors_posts.rb
162
- - features/support/db/migrations/create_alphas.rb
163
- - features/support/db/migrations/create_taggings.rb
164
- - features/support/db/migrations/create_gammas.rb
165
- - features/support/db/migrations/create_people.rb
166
- - features/support/db/migrations/create_music.rb
167
- - features/support/db/migrations/create_comments.rb
168
- - features/support/db/migrations/create_animals.rb
169
- - features/support/db/migrations/create_authors.rb
170
- - features/support/db/migrations/create_posts.rb
171
- - features/support/db/migrations/create_tags.rb
172
- - features/support/db/migrations/create_robots.rb
173
- - features/support/db/migrations/create_boxes.rb
174
- - features/support/db/migrations/create_genres.rb
175
- - features/support/db/migrations/create_developers.rb
176
- - features/support/db/fixtures/boxes.rb
177
182
  - features/support/db/fixtures/dogs.rb
178
- - features/support/db/fixtures/authors.rb
179
- - features/support/db/fixtures/music.rb
180
- - features/support/db/fixtures/comments.rb
181
- - features/support/db/fixtures/extensible_betas.rb
182
- - features/support/db/fixtures/gammas.rb
183
183
  - features/support/db/fixtures/developers.rb
184
- - features/support/db/fixtures/foxes.rb
185
- - features/support/db/fixtures/alphas.rb
184
+ - features/support/db/fixtures/comments.rb
186
185
  - features/support/db/fixtures/betas.rb
186
+ - features/support/db/fixtures/boxes.rb
187
+ - features/support/db/fixtures/categories.rb
188
+ - features/support/db/fixtures/robots.rb
189
+ - features/support/db/fixtures/alphas.rb
190
+ - features/support/db/fixtures/foxes.rb
191
+ - features/support/db/fixtures/tags.rb
192
+ - features/support/db/fixtures/gammas.rb
193
+ - features/support/db/fixtures/authors.rb
187
194
  - features/support/db/fixtures/posts.rb
195
+ - features/support/db/fixtures/extensible_betas.rb
196
+ - features/support/db/fixtures/music.rb
188
197
  - features/support/db/fixtures/people.rb
189
- - features/support/db/fixtures/robots.rb
190
- - features/support/db/fixtures/categories.rb
191
198
  - features/support/db/fixtures/cats.rb
192
- - features/support/db/fixtures/tags.rb
193
- - features/support/lib/generic_delta_handler.rb
194
- - features/support/models/genre.rb
195
- - features/support/models/music.rb
196
- - features/support/models/category.rb
197
- - features/support/models/cat.rb
198
- - features/support/models/dog.rb
199
+ - features/support/db/migrations/create_gammas.rb
200
+ - features/support/db/migrations/create_comments.rb
201
+ - features/support/db/migrations/create_music.rb
202
+ - features/support/db/migrations/create_boxes.rb
203
+ - features/support/db/migrations/create_authors.rb
204
+ - features/support/db/migrations/create_alphas.rb
205
+ - features/support/db/migrations/create_animals.rb
206
+ - features/support/db/migrations/create_tags.rb
207
+ - features/support/db/migrations/create_people.rb
208
+ - features/support/db/migrations/create_extensible_betas.rb
209
+ - features/support/db/migrations/create_betas.rb
210
+ - features/support/db/migrations/create_genres.rb
211
+ - features/support/db/migrations/create_developers.rb
212
+ - features/support/db/migrations/create_taggings.rb
213
+ - features/support/db/migrations/create_posts.rb
214
+ - features/support/db/migrations/create_robots.rb
215
+ - features/support/db/migrations/create_authors_posts.rb
216
+ - features/support/db/migrations/create_categories.rb
199
217
  - features/support/models/tagging.rb
200
- - features/support/models/alpha.rb
218
+ - features/support/models/dog.rb
201
219
  - features/support/models/animal.rb
202
- - features/support/models/medium.rb
203
- - features/support/models/tag.rb
204
- - features/support/models/gamma.rb
205
- - features/support/models/comment.rb
220
+ - features/support/models/beta.rb
206
221
  - features/support/models/box.rb
207
222
  - features/support/models/robot.rb
208
223
  - features/support/models/author.rb
209
- - features/support/models/developer.rb
210
- - features/support/models/fox.rb
224
+ - features/support/models/cat.rb
225
+ - features/support/models/alpha.rb
226
+ - features/support/models/genre.rb
227
+ - features/support/models/medium.rb
228
+ - features/support/models/comment.rb
229
+ - features/support/models/gamma.rb
230
+ - features/support/models/tag.rb
211
231
  - features/support/models/extensible_beta.rb
232
+ - features/support/models/music.rb
233
+ - features/support/models/category.rb
234
+ - features/support/models/developer.rb
212
235
  - features/support/models/post.rb
236
+ - features/support/models/fox.rb
213
237
  - features/support/models/person.rb
214
- - features/support/models/beta.rb
215
- - features/support/database.example.yml
216
- - features/searching_across_models.feature
217
- - features/searching_by_index.feature
218
- - features/facets_across_model.feature
238
+ - features/support/lib/generic_delta_handler.rb
219
239
  - features/direct_attributes.feature
220
- - features/handling_edits.feature
221
240
  - spec/thinking_sphinx_spec.rb
222
- - spec/thinking_sphinx/core/string_spec.rb
223
- - spec/thinking_sphinx/core/array_spec.rb
224
241
  - spec/thinking_sphinx/attribute_spec.rb
225
- - spec/thinking_sphinx/association_spec.rb
226
- - spec/thinking_sphinx/excerpter_spec.rb
227
242
  - spec/thinking_sphinx/auto_version_spec.rb
243
+ - spec/thinking_sphinx/facet_search_spec.rb
244
+ - spec/thinking_sphinx/association_spec.rb
245
+ - spec/thinking_sphinx/configuration_spec.rb
228
246
  - spec/thinking_sphinx/active_record_spec.rb
247
+ - spec/thinking_sphinx/search_spec.rb
248
+ - spec/thinking_sphinx/context_spec.rb
249
+ - spec/thinking_sphinx/field_spec.rb
250
+ - spec/thinking_sphinx/excerpter_spec.rb
251
+ - spec/thinking_sphinx/core/array_spec.rb
252
+ - spec/thinking_sphinx/core/string_spec.rb
229
253
  - spec/thinking_sphinx/rails_additions_spec.rb
230
254
  - spec/thinking_sphinx/facet_spec.rb
231
- - spec/thinking_sphinx/context_spec.rb
232
- - spec/thinking_sphinx/search_methods_spec.rb
233
- - spec/thinking_sphinx/facet_search_spec.rb
234
- - spec/thinking_sphinx/active_record/delta_spec.rb
255
+ - spec/thinking_sphinx/index_spec.rb
235
256
  - spec/thinking_sphinx/active_record/has_many_association_spec.rb
236
257
  - spec/thinking_sphinx/active_record/scopes_spec.rb
237
- - spec/thinking_sphinx/index_spec.rb
238
- - spec/thinking_sphinx/configuration_spec.rb
239
- - spec/thinking_sphinx/search_spec.rb
240
- - spec/thinking_sphinx/source_spec.rb
258
+ - spec/thinking_sphinx/active_record/delta_spec.rb
241
259
  - spec/thinking_sphinx/index/faux_column_spec.rb
242
260
  - spec/thinking_sphinx/index/builder_spec.rb
243
- - spec/thinking_sphinx/field_spec.rb
261
+ - spec/thinking_sphinx/source_spec.rb
262
+ - spec/thinking_sphinx/search_methods_spec.rb