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.
- data/lib/picky/adapters/rack/search.rb +3 -3
- data/lib/picky/adapters/rack.rb +3 -3
- data/lib/picky/application.rb +5 -3
- data/lib/picky/backend/file/json.rb +7 -0
- data/lib/picky/backend/file/text.rb +2 -2
- data/lib/picky/character_substituters/west_european.rb +3 -0
- data/lib/picky/extensions/symbol.rb +4 -4
- data/lib/picky/indexes/index.rb +11 -85
- data/lib/picky/indexes/index_indexed.rb +13 -2
- data/lib/picky/indexes/index_indexing.rb +38 -11
- data/lib/picky/loader.rb +0 -4
- data/lib/picky/search.rb +71 -78
- data/lib/picky/tokenizers/base.rb +4 -2
- data/lib/picky.rb +6 -0
- data/spec/lib/application_spec.rb +31 -11
- data/spec/lib/backend/files_spec.rb +1 -1
- data/spec/lib/categories_indexed_spec.rb +2 -2
- data/spec/lib/category_indexed_spec.rb +7 -2
- data/spec/lib/category_indexing_spec.rb +1 -1
- data/spec/lib/category_spec.rb +1 -1
- data/spec/lib/frontend_adapters/rack_spec.rb +4 -4
- data/spec/lib/indexed/bundle/memory_spec.rb +2 -2
- data/spec/lib/indexed/bundle/redis_spec.rb +1 -1
- data/spec/lib/indexed/wrappers/exact_first_spec.rb +2 -2
- data/spec/lib/indexes/index_indexed_spec.rb +25 -3
- data/spec/lib/indexes/index_indexing_spec.rb +58 -10
- data/spec/lib/indexes/index_spec.rb +13 -7
- data/spec/lib/indexes/redis_spec.rb +1 -1
- data/spec/lib/indexing/bundle/memory_partial_generation_speed_spec.rb +1 -1
- data/spec/lib/indexing/bundle/memory_spec.rb +1 -1
- data/spec/lib/indexing/bundle/redis_spec.rb +1 -1
- data/spec/lib/search_spec.rb +18 -18
- data/spec/lib/tokenizers/base_spec.rb +3 -3
- metadata +3 -6
- data/lib/picky/loggers/search.rb +0 -26
- 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
|