picky 2.0.0.pre2 → 2.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/lib/picky/application.rb +1 -1
  2. data/lib/picky/cli.rb +2 -2
  3. data/lib/picky/index/base.rb +1 -1
  4. data/lib/picky/internals/generators/similarity/double_metaphone.rb +32 -0
  5. data/lib/picky/internals/generators/similarity/metaphone.rb +32 -0
  6. data/lib/picky/internals/generators/similarity/{double_levenshtone.rb → phonetic.rb} +9 -21
  7. data/lib/picky/internals/generators/similarity/soundex.rb +32 -0
  8. data/lib/picky/internals/index/redis/basic.rb +15 -15
  9. data/lib/picky/internals/index/redis/list_hash.rb +13 -13
  10. data/lib/picky/internals/index/redis/string_hash.rb +11 -9
  11. data/lib/picky/internals/indexers/serial.rb +8 -8
  12. data/lib/picky/internals/indexing/bundle/base.rb +1 -1
  13. data/lib/picky/internals/indexing/bundle/memory.rb +1 -4
  14. data/lib/picky/internals/indexing/category.rb +3 -3
  15. data/lib/picky/internals/query/combinations/base.rb +5 -11
  16. data/lib/picky/internals/query/combinations/redis.rb +44 -24
  17. data/lib/picky/internals/query/indexes.rb +29 -24
  18. data/lib/picky/internals/query/token.rb +12 -12
  19. data/lib/picky/internals/tokenizers/base.rb +1 -1
  20. data/lib/picky/loader.rb +4 -4
  21. data/lib/picky/sources/couch.rb +4 -6
  22. data/lib/picky/sources/delicious.rb +1 -1
  23. data/spec/lib/analyzer_spec.rb +18 -0
  24. data/spec/lib/application_spec.rb +13 -3
  25. data/spec/lib/bundling_spec.rb +21 -0
  26. data/spec/lib/character_substituters/west_european_spec.rb +8 -2
  27. data/spec/lib/cli_spec.rb +45 -17
  28. data/spec/lib/index/redis_spec.rb +15 -0
  29. data/spec/lib/internals/adapters/rack/live_parameters_spec.rb +11 -6
  30. data/spec/lib/internals/frontend_adapters/rack_spec.rb +22 -0
  31. data/spec/lib/internals/generators/similarity/{double_levenshtone_spec.rb → double_metaphone_spec.rb} +1 -7
  32. data/spec/lib/internals/generators/similarity/metaphone_spec.rb +60 -0
  33. data/spec/lib/internals/generators/similarity/phonetic_spec.rb +13 -0
  34. data/spec/lib/internals/generators/similarity/soundex_spec.rb +60 -0
  35. data/spec/lib/internals/generators/similarity_generator_spec.rb +1 -1
  36. data/spec/lib/internals/index/file/basic_spec.rb +15 -5
  37. data/spec/lib/internals/index/redis/list_hash_spec.rb +34 -0
  38. data/spec/lib/internals/index/redis/string_hash_spec.rb +12 -0
  39. data/spec/lib/internals/indexed/bundle/memory_spec.rb +66 -0
  40. data/spec/lib/internals/indexing/bundle/memory_spec.rb +87 -71
  41. data/spec/lib/internals/indexing/bundle/redis_spec.rb +282 -0
  42. data/spec/lib/internals/indexing/bundle/super_base_spec.rb +1 -1
  43. data/spec/lib/internals/indexing/categories_spec.rb +49 -0
  44. data/spec/lib/internals/indexing/category_spec.rb +68 -35
  45. data/spec/lib/query/combinations/base_spec.rb +0 -9
  46. data/spec/lib/query/combinations/memory_spec.rb +0 -9
  47. data/spec/lib/query/combinations/redis_spec.rb +40 -5
  48. data/spec/lib/sources/couch_spec.rb +22 -0
  49. data/spec/lib/sources/csv_spec.rb +7 -0
  50. data/spec/lib/sources/db_spec.rb +7 -1
  51. data/spec/lib/sources/delicious_spec.rb +6 -2
  52. metadata +26 -5
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: picky
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 2.0.0.pre2
5
+ version: 2.0.0.pre3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Hanke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-21 00:00:00 +01:00
13
+ date: 2011-03-22 00:00:00 +01:00
14
14
  default_executable: picky
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -71,8 +71,11 @@ files:
71
71
  - lib/picky/internals/generators/partial/substring.rb
72
72
  - lib/picky/internals/generators/partial_generator.rb
73
73
  - lib/picky/internals/generators/similarity/default.rb
74
- - lib/picky/internals/generators/similarity/double_levenshtone.rb
74
+ - lib/picky/internals/generators/similarity/double_metaphone.rb
75
+ - lib/picky/internals/generators/similarity/metaphone.rb
75
76
  - lib/picky/internals/generators/similarity/none.rb
77
+ - lib/picky/internals/generators/similarity/phonetic.rb
78
+ - lib/picky/internals/generators/similarity/soundex.rb
76
79
  - lib/picky/internals/generators/similarity/strategy.rb
77
80
  - lib/picky/internals/generators/similarity_generator.rb
78
81
  - lib/picky/internals/generators/strategy.rb
@@ -161,11 +164,14 @@ files:
161
164
  - lib/picky/internals/ext/ruby19/performant.c
162
165
  - spec/ext/performant_spec.rb
163
166
  - spec/lib/aliases_spec.rb
167
+ - spec/lib/analyzer_spec.rb
164
168
  - spec/lib/application_spec.rb
169
+ - spec/lib/bundling_spec.rb
165
170
  - spec/lib/character_substituters/west_european_spec.rb
166
171
  - spec/lib/cli_spec.rb
167
172
  - spec/lib/generators/aliases_spec.rb
168
173
  - spec/lib/index/base_spec.rb
174
+ - spec/lib/index/redis_spec.rb
169
175
  - spec/lib/index_bundle_spec.rb
170
176
  - spec/lib/indexed/indexes_spec.rb
171
177
  - spec/lib/indexing/indexes_spec.rb
@@ -186,8 +192,11 @@ files:
186
192
  - spec/lib/internals/generators/partial/none_spec.rb
187
193
  - spec/lib/internals/generators/partial/substring_spec.rb
188
194
  - spec/lib/internals/generators/partial_generator_spec.rb
189
- - spec/lib/internals/generators/similarity/double_levenshtone_spec.rb
195
+ - spec/lib/internals/generators/similarity/double_metaphone_spec.rb
196
+ - spec/lib/internals/generators/similarity/metaphone_spec.rb
190
197
  - spec/lib/internals/generators/similarity/none_spec.rb
198
+ - spec/lib/internals/generators/similarity/phonetic_spec.rb
199
+ - spec/lib/internals/generators/similarity/soundex_spec.rb
191
200
  - spec/lib/internals/generators/similarity_generator_spec.rb
192
201
  - spec/lib/internals/generators/weights/logarithmic_spec.rb
193
202
  - spec/lib/internals/generators/weights_generator_spec.rb
@@ -198,6 +207,7 @@ files:
198
207
  - spec/lib/internals/index/file/text_spec.rb
199
208
  - spec/lib/internals/index/files_spec.rb
200
209
  - spec/lib/internals/index/redis/basic_spec.rb
210
+ - spec/lib/internals/index/redis/list_hash_spec.rb
201
211
  - spec/lib/internals/index/redis/string_hash_spec.rb
202
212
  - spec/lib/internals/index/redis_spec.rb
203
213
  - spec/lib/internals/indexed/bundle/memory_spec.rb
@@ -210,7 +220,9 @@ files:
210
220
  - spec/lib/internals/indexers/serial_spec.rb
211
221
  - spec/lib/internals/indexing/bundle/memory_partial_generation_speed_spec.rb
212
222
  - spec/lib/internals/indexing/bundle/memory_spec.rb
223
+ - spec/lib/internals/indexing/bundle/redis_spec.rb
213
224
  - spec/lib/internals/indexing/bundle/super_base_spec.rb
225
+ - spec/lib/internals/indexing/categories_spec.rb
214
226
  - spec/lib/internals/indexing/category_spec.rb
215
227
  - spec/lib/internals/indexing/index_spec.rb
216
228
  - spec/lib/internals/indexing/indexes_spec.rb
@@ -276,11 +288,14 @@ summary: "Picky: Semantic Search Engine. Clever Interface. Good Tools."
276
288
  test_files:
277
289
  - spec/ext/performant_spec.rb
278
290
  - spec/lib/aliases_spec.rb
291
+ - spec/lib/analyzer_spec.rb
279
292
  - spec/lib/application_spec.rb
293
+ - spec/lib/bundling_spec.rb
280
294
  - spec/lib/character_substituters/west_european_spec.rb
281
295
  - spec/lib/cli_spec.rb
282
296
  - spec/lib/generators/aliases_spec.rb
283
297
  - spec/lib/index/base_spec.rb
298
+ - spec/lib/index/redis_spec.rb
284
299
  - spec/lib/index_bundle_spec.rb
285
300
  - spec/lib/indexed/indexes_spec.rb
286
301
  - spec/lib/indexing/indexes_spec.rb
@@ -301,8 +316,11 @@ test_files:
301
316
  - spec/lib/internals/generators/partial/none_spec.rb
302
317
  - spec/lib/internals/generators/partial/substring_spec.rb
303
318
  - spec/lib/internals/generators/partial_generator_spec.rb
304
- - spec/lib/internals/generators/similarity/double_levenshtone_spec.rb
319
+ - spec/lib/internals/generators/similarity/double_metaphone_spec.rb
320
+ - spec/lib/internals/generators/similarity/metaphone_spec.rb
305
321
  - spec/lib/internals/generators/similarity/none_spec.rb
322
+ - spec/lib/internals/generators/similarity/phonetic_spec.rb
323
+ - spec/lib/internals/generators/similarity/soundex_spec.rb
306
324
  - spec/lib/internals/generators/similarity_generator_spec.rb
307
325
  - spec/lib/internals/generators/weights/logarithmic_spec.rb
308
326
  - spec/lib/internals/generators/weights_generator_spec.rb
@@ -313,6 +331,7 @@ test_files:
313
331
  - spec/lib/internals/index/file/text_spec.rb
314
332
  - spec/lib/internals/index/files_spec.rb
315
333
  - spec/lib/internals/index/redis/basic_spec.rb
334
+ - spec/lib/internals/index/redis/list_hash_spec.rb
316
335
  - spec/lib/internals/index/redis/string_hash_spec.rb
317
336
  - spec/lib/internals/index/redis_spec.rb
318
337
  - spec/lib/internals/indexed/bundle/memory_spec.rb
@@ -325,7 +344,9 @@ test_files:
325
344
  - spec/lib/internals/indexers/serial_spec.rb
326
345
  - spec/lib/internals/indexing/bundle/memory_partial_generation_speed_spec.rb
327
346
  - spec/lib/internals/indexing/bundle/memory_spec.rb
347
+ - spec/lib/internals/indexing/bundle/redis_spec.rb
328
348
  - spec/lib/internals/indexing/bundle/super_base_spec.rb
349
+ - spec/lib/internals/indexing/categories_spec.rb
329
350
  - spec/lib/internals/indexing/category_spec.rb
330
351
  - spec/lib/internals/indexing/index_spec.rb
331
352
  - spec/lib/internals/indexing/indexes_spec.rb