picky 3.0.0.pre1 → 3.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/lib/picky/adapters/rack/search.rb +3 -3
  2. data/lib/picky/adapters/rack.rb +3 -3
  3. data/lib/picky/application.rb +5 -3
  4. data/lib/picky/backend/file/json.rb +7 -0
  5. data/lib/picky/backend/file/text.rb +2 -2
  6. data/lib/picky/character_substituters/west_european.rb +3 -0
  7. data/lib/picky/extensions/symbol.rb +4 -4
  8. data/lib/picky/indexes/index.rb +11 -85
  9. data/lib/picky/indexes/index_indexed.rb +13 -2
  10. data/lib/picky/indexes/index_indexing.rb +38 -11
  11. data/lib/picky/loader.rb +0 -4
  12. data/lib/picky/search.rb +71 -78
  13. data/lib/picky/tokenizers/base.rb +4 -2
  14. data/lib/picky.rb +6 -0
  15. data/spec/lib/application_spec.rb +31 -11
  16. data/spec/lib/backend/files_spec.rb +1 -1
  17. data/spec/lib/categories_indexed_spec.rb +2 -2
  18. data/spec/lib/category_indexed_spec.rb +7 -2
  19. data/spec/lib/category_indexing_spec.rb +1 -1
  20. data/spec/lib/category_spec.rb +1 -1
  21. data/spec/lib/frontend_adapters/rack_spec.rb +4 -4
  22. data/spec/lib/indexed/bundle/memory_spec.rb +2 -2
  23. data/spec/lib/indexed/bundle/redis_spec.rb +1 -1
  24. data/spec/lib/indexed/wrappers/exact_first_spec.rb +2 -2
  25. data/spec/lib/indexes/index_indexed_spec.rb +25 -3
  26. data/spec/lib/indexes/index_indexing_spec.rb +58 -10
  27. data/spec/lib/indexes/index_spec.rb +13 -7
  28. data/spec/lib/indexes/redis_spec.rb +1 -1
  29. data/spec/lib/indexing/bundle/memory_partial_generation_speed_spec.rb +1 -1
  30. data/spec/lib/indexing/bundle/memory_spec.rb +1 -1
  31. data/spec/lib/indexing/bundle/redis_spec.rb +1 -1
  32. data/spec/lib/search_spec.rb +18 -18
  33. data/spec/lib/tokenizers/base_spec.rb +3 -3
  34. metadata +3 -6
  35. data/lib/picky/loggers/search.rb +0 -26
  36. data/spec/lib/loggers/search_spec.rb +0 -19
@@ -1,19 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- require 'spec_helper'
4
-
5
- describe Picky::Loggers::Search do
6
-
7
- before(:each) do
8
- @destination = stub :destination
9
- @logger = described_class.new @destination
10
- end
11
- describe "log" do
12
- it "should delegate to info" do
13
- @destination.should_receive(:info).once.with 'test'
14
-
15
- @logger.log 'test'
16
- end
17
- end
18
-
19
- end