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 CHANGED
@@ -1 +1 @@
1
- 0.1.0
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
@@ -16,7 +16,6 @@ require 'pyramid_scheme/index_server'
16
16
 
17
17
  require 'pyramid_scheme/index_client'
18
18
 
19
- require 'pyramid_scheme/tasks/rake_tasks.rake'
20
19
  require 'pyramid_scheme/tasks'
21
20
 
22
21
  module PyramidScheme
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pyramid_scheme}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Pickett"]
@@ -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
- @server = PyramidScheme::IndexServer.new(:indexer_class => PyramidScheme::UltrasphinxIndexer)
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
 
@@ -1 +1 @@
1
- require File.join(File.dirname(__FILE), '../lib/pyramid_scheme/tasks'
1
+ require File.join(File.dirname(__FILE), '../lib/pyramid_scheme/tasks')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyramid_scheme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett