erichummel-sunspot_rails 2.0.0.pre.111215c → 2.0.0.pre.111215d
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sunspot/rails/configuration.rb +20 -0
- metadata +10 -10
@@ -352,5 +352,25 @@ module Sunspot #:nodoc:
|
|
352
352
|
end
|
353
353
|
|
354
354
|
end
|
355
|
+
|
356
|
+
class ExtendedConfiguration < Sunspot::Rails::Configuration
|
357
|
+
def initialize( configuration_hash )
|
358
|
+
@supplied_configuration = configuration_hash
|
359
|
+
end
|
360
|
+
protected
|
361
|
+
def solr_url
|
362
|
+
unless @cached_solr_url
|
363
|
+
@cached_solr_url = super
|
364
|
+
@cached_solr_url.path = @supplied_configuration["path"] if @cached_solr_url # fold in the path constructed from the multicore session
|
365
|
+
end
|
366
|
+
@cached_solr_url
|
367
|
+
end
|
368
|
+
|
369
|
+
private
|
370
|
+
def user_configuration
|
371
|
+
@user_configuration ||= @supplied_configuration || super
|
372
|
+
end
|
373
|
+
|
374
|
+
end
|
355
375
|
end
|
356
376
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erichummel-sunspot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.111215d
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -32,18 +32,18 @@ date: 2012-03-12 00:00:00.000000000Z
|
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: erichummel-sunspot
|
35
|
-
requirement: &
|
35
|
+
requirement: &2162608260 !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
38
|
- - =
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.0.pre.
|
40
|
+
version: 2.0.0.pre.111215d
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
|
-
version_requirements: *
|
43
|
+
version_requirements: *2162608260
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: nokogiri
|
46
|
-
requirement: &
|
46
|
+
requirement: &2162607720 !ruby/object:Gem::Requirement
|
47
47
|
none: false
|
48
48
|
requirements:
|
49
49
|
- - ! '>='
|
@@ -51,10 +51,10 @@ dependencies:
|
|
51
51
|
version: '0'
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
|
-
version_requirements: *
|
54
|
+
version_requirements: *2162607720
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
|
-
requirement: &
|
57
|
+
requirement: &2162606300 !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
59
|
requirements:
|
60
60
|
- - ~>
|
@@ -62,10 +62,10 @@ dependencies:
|
|
62
62
|
version: '1.2'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
|
-
version_requirements: *
|
65
|
+
version_requirements: *2162606300
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
67
|
name: rspec-rails
|
68
|
-
requirement: &
|
68
|
+
requirement: &2162604800 !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
71
71
|
- - ~>
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
version: '1.2'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
|
-
version_requirements: *
|
76
|
+
version_requirements: *2162604800
|
77
77
|
description: ! " Sunspot::Rails is an extension to the Sunspot library for Solr
|
78
78
|
search.\n Sunspot::Rails adds integration between Sunspot and ActiveRecord, including\n
|
79
79
|
\ defining search and indexing related methods on ActiveRecord models themselves,\n
|