pyramid_scheme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pyramid_scheme/index_server.rb +1 -1
- data/lib/pyramid_scheme.rb +0 -1
- data/pyramid_scheme.gemspec +1 -1
- data/spec/pyramid_scheme/index_server_spec.rb +4 -1
- data/tasks/pyramid_scheme.rake +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -5,9 +5,9 @@ module PyramidScheme
|
|
5
5
|
# initializes a new index server
|
6
6
|
# @param options [Hash] takes an optional :indexer_class (defaults to PyramidScheme::ThinkingSphinxIndexer
|
7
7
|
def initialize(options = {})
|
8
|
-
@indexer_class = options[:indexer_class] || PyramidScheme::ThinkingSphinxIndexer
|
9
8
|
@index_provider = PyramidScheme::IndexProvider::FileSystem.new
|
10
9
|
@configuration = PyramidScheme::Configuration.new
|
10
|
+
@indexer_class = configuration[:indexer_class] || PyramidScheme::ThinkingSphinxIndexer
|
11
11
|
end
|
12
12
|
|
13
13
|
# @returns [PyramidScheme::Indexer] an instance of the specified indexer_class from initialization
|
data/lib/pyramid_scheme.rb
CHANGED
data/pyramid_scheme.gemspec
CHANGED
@@ -19,7 +19,10 @@ describe PyramidScheme::IndexServer do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
it 'should allow me to specify an ultrasphinx indexer' do
|
22
|
-
|
22
|
+
PyramidScheme.configure do |config|
|
23
|
+
config.indexer_class = PyramidScheme::UltrasphinxIndexer
|
24
|
+
end
|
25
|
+
@server = PyramidScheme::IndexServer.new
|
23
26
|
@server.indexer.should be_kind_of(PyramidScheme::UltrasphinxIndexer)
|
24
27
|
end
|
25
28
|
|
data/tasks/pyramid_scheme.rake
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require File.join(File.dirname(__FILE), '../lib/pyramid_scheme/tasks'
|
1
|
+
require File.join(File.dirname(__FILE), '../lib/pyramid_scheme/tasks')
|