picky 4.0.0pre2 → 4.0.0pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/aux/picky/cli.rb +1 -1
  2. data/lib/picky/backends/backend.rb +0 -16
  3. data/lib/picky/backends/file.rb +5 -10
  4. data/lib/picky/backends/memory.rb +5 -10
  5. data/lib/picky/backends/redis/basic.rb +3 -3
  6. data/lib/picky/backends/redis/list.rb +5 -6
  7. data/lib/picky/backends/redis/string.rb +1 -1
  8. data/lib/picky/backends/redis.rb +24 -27
  9. data/lib/picky/backends/sqlite/basic.rb +4 -4
  10. data/lib/picky/backends/sqlite.rb +7 -13
  11. data/lib/picky/bundle.rb +39 -43
  12. data/lib/picky/bundle_indexed.rb +17 -2
  13. data/lib/picky/bundle_indexing.rb +1 -26
  14. data/lib/picky/bundle_realtime.rb +2 -6
  15. data/lib/picky/category_indexing.rb +2 -2
  16. data/lib/picky/generators/similarity/phonetic.rb +3 -1
  17. data/lib/picky/index_indexing.rb +1 -1
  18. data/lib/picky/indexers/base.rb +5 -4
  19. data/lib/picky/indexers/parallel.rb +3 -3
  20. data/lib/picky/indexers/serial.rb +2 -2
  21. data/lib/picky/wrappers/bundle/location.rb +3 -5
  22. data/spec/functional/backends/redis_bundle_realtime_spec.rb +1 -1
  23. data/spec/functional/backends/redis_spec.rb +29 -6
  24. data/spec/functional/backends/special_spec.rb +229 -0
  25. data/spec/functional/backends/sqlite_bundle_realtime_spec.rb +1 -1
  26. data/spec/functional/backends/sqlite_spec.rb +1 -1
  27. data/spec/lib/backends/backend_spec.rb +40 -24
  28. data/spec/lib/backends/file_spec.rb +25 -25
  29. data/spec/lib/backends/memory_spec.rb +51 -51
  30. data/spec/lib/backends/redis_spec.rb +77 -77
  31. data/spec/lib/backends/sqlite/array_spec.rb +1 -1
  32. data/spec/lib/backends/sqlite_spec.rb +51 -51
  33. data/spec/lib/{indexed/bundle_spec.rb → bundle_indexed_spec.rb} +0 -0
  34. data/spec/lib/{indexing/bundle_spec.rb → bundle_indexing_spec.rb} +2 -9
  35. data/spec/lib/{indexing/bundle_partial_generation_speed_spec.rb → bundle_partial_generation_speed_spec.rb} +0 -0
  36. data/spec/lib/{indexed/bundle_realtime_spec.rb → bundle_realtime_spec.rb} +0 -0
  37. data/spec/lib/category_indexed_spec.rb +2 -2
  38. data/spec/lib/category_spec.rb +2 -2
  39. data/spec/lib/extensions/object_spec.rb +8 -8
  40. data/spec/lib/generators/similarity/phonetic_spec.rb +13 -7
  41. data/spec/lib/index_spec.rb +16 -0
  42. data/spec/lib/indexers/base_spec.rb +1 -1
  43. metadata +27 -25
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0pre2
4
+ version: 4.0.0pre3
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-12 00:00:00.000000000 Z
12
+ date: 2011-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70284145905500 !ruby/object:Gem::Requirement
16
+ requirement: &70122870491800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,21 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70284145905500
24
+ version_requirements: *70122870491800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: picky-client
27
- requirement: &70284145904960 !ruby/object:Gem::Requirement
27
+ requirement: &70122870491100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 4.0.0pre2
32
+ version: 4.0.0pre3
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70284145904960
35
+ version_requirements: *70122870491100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: text
38
- requirement: &70284145904520 !ruby/object:Gem::Requirement
38
+ requirement: &70122870490460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70284145904520
46
+ version_requirements: *70122870490460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yajl-ruby
49
- requirement: &70284145904040 !ruby/object:Gem::Requirement
49
+ requirement: &70122870489960 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70284145904040
57
+ version_requirements: *70122870489960
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: activesupport
60
- requirement: &70284145903480 !ruby/object:Gem::Requirement
60
+ requirement: &70122870489440 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '3.0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70284145903480
68
+ version_requirements: *70122870489440
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: procrastinate
71
- requirement: &70284145902860 !ruby/object:Gem::Requirement
71
+ requirement: &70122870488560 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0.4'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70284145902860
79
+ version_requirements: *70122870488560
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rack_fast_escape
82
- requirement: &70284145902240 !ruby/object:Gem::Requirement
82
+ requirement: &70122870487860 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70284145902240
90
+ version_requirements: *70122870487860
91
91
  description: Fast Ruby semantic text search engine with comfortable single field interface.
92
92
  email: florian.hanke+picky@gmail.com
93
93
  executables:
@@ -234,6 +234,7 @@ files:
234
234
  - spec/functional/backends/memory_spec.rb
235
235
  - spec/functional/backends/redis_bundle_realtime_spec.rb
236
236
  - spec/functional/backends/redis_spec.rb
237
+ - spec/functional/backends/special_spec.rb
237
238
  - spec/functional/backends/sqlite_bundle_realtime_spec.rb
238
239
  - spec/functional/backends/sqlite_spec.rb
239
240
  - spec/functional/dynamic_weights_spec.rb
@@ -263,6 +264,10 @@ files:
263
264
  - spec/lib/backends/sqlite/directly_manipulable_spec.rb
264
265
  - spec/lib/backends/sqlite/value_spec.rb
265
266
  - spec/lib/backends/sqlite_spec.rb
267
+ - spec/lib/bundle_indexed_spec.rb
268
+ - spec/lib/bundle_indexing_spec.rb
269
+ - spec/lib/bundle_partial_generation_speed_spec.rb
270
+ - spec/lib/bundle_realtime_spec.rb
266
271
  - spec/lib/bundle_spec.rb
267
272
  - spec/lib/bundling_spec.rb
268
273
  - spec/lib/calculations/location_spec.rb
@@ -298,8 +303,6 @@ files:
298
303
  - spec/lib/index_indexing_spec.rb
299
304
  - spec/lib/index_realtime_spec.rb
300
305
  - spec/lib/index_spec.rb
301
- - spec/lib/indexed/bundle_realtime_spec.rb
302
- - spec/lib/indexed/bundle_spec.rb
303
306
  - spec/lib/indexed/wrappers/bundle/calculation_spec.rb
304
307
  - spec/lib/indexed/wrappers/bundle/wrapper_spec.rb
305
308
  - spec/lib/indexers/base_spec.rb
@@ -309,8 +312,6 @@ files:
309
312
  - spec/lib/indexes_indexed_spec.rb
310
313
  - spec/lib/indexes_indexing_spec.rb
311
314
  - spec/lib/indexes_spec.rb
312
- - spec/lib/indexing/bundle_partial_generation_speed_spec.rb
313
- - spec/lib/indexing/bundle_spec.rb
314
315
  - spec/lib/interfaces/live_parameters/master_child_spec.rb
315
316
  - spec/lib/interfaces/live_parameters/unicorn_spec.rb
316
317
  - spec/lib/loader_spec.rb
@@ -369,6 +370,7 @@ test_files:
369
370
  - spec/functional/backends/memory_spec.rb
370
371
  - spec/functional/backends/redis_bundle_realtime_spec.rb
371
372
  - spec/functional/backends/redis_spec.rb
373
+ - spec/functional/backends/special_spec.rb
372
374
  - spec/functional/backends/sqlite_bundle_realtime_spec.rb
373
375
  - spec/functional/backends/sqlite_spec.rb
374
376
  - spec/functional/dynamic_weights_spec.rb
@@ -398,6 +400,10 @@ test_files:
398
400
  - spec/lib/backends/sqlite/directly_manipulable_spec.rb
399
401
  - spec/lib/backends/sqlite/value_spec.rb
400
402
  - spec/lib/backends/sqlite_spec.rb
403
+ - spec/lib/bundle_indexed_spec.rb
404
+ - spec/lib/bundle_indexing_spec.rb
405
+ - spec/lib/bundle_partial_generation_speed_spec.rb
406
+ - spec/lib/bundle_realtime_spec.rb
401
407
  - spec/lib/bundle_spec.rb
402
408
  - spec/lib/bundling_spec.rb
403
409
  - spec/lib/calculations/location_spec.rb
@@ -433,8 +439,6 @@ test_files:
433
439
  - spec/lib/index_indexing_spec.rb
434
440
  - spec/lib/index_realtime_spec.rb
435
441
  - spec/lib/index_spec.rb
436
- - spec/lib/indexed/bundle_realtime_spec.rb
437
- - spec/lib/indexed/bundle_spec.rb
438
442
  - spec/lib/indexed/wrappers/bundle/calculation_spec.rb
439
443
  - spec/lib/indexed/wrappers/bundle/wrapper_spec.rb
440
444
  - spec/lib/indexers/base_spec.rb
@@ -444,8 +448,6 @@ test_files:
444
448
  - spec/lib/indexes_indexed_spec.rb
445
449
  - spec/lib/indexes_indexing_spec.rb
446
450
  - spec/lib/indexes_spec.rb
447
- - spec/lib/indexing/bundle_partial_generation_speed_spec.rb
448
- - spec/lib/indexing/bundle_spec.rb
449
451
  - spec/lib/interfaces/live_parameters/master_child_spec.rb
450
452
  - spec/lib/interfaces/live_parameters/unicorn_spec.rb
451
453
  - spec/lib/loader_spec.rb