erichummel-sunspot_rails 1.2.1e → 1.2.1f

Sign up to get free protection for your applications and to get access to all the features.
@@ -112,6 +112,13 @@ module Sunspot
112
112
  configuration.max_memory
113
113
  end
114
114
 
115
+ #
116
+ # A boolean value indicating whether or not solr is being run with multiple cores
117
+ #
118
+ def multicore
119
+ !!configuration.multicore
120
+ end
121
+
115
122
  private
116
123
 
117
124
  #
@@ -147,7 +154,7 @@ module Sunspot
147
154
  # Boolean:: success
148
155
  #
149
156
  def install_solr_home
150
- unless File.exists?(solr_home)
157
+ unless File.exists?(File.join(File.dirname(solr_jar), solr_home))
151
158
  Sunspot::Installer.execute(
152
159
  solr_home,
153
160
  :force => true,
@@ -1,5 +1,5 @@
1
1
  module Sunspot
2
2
  module Rails
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.1f'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: erichummel-sunspot_rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 5
5
- version: 1.2.1e
5
+ version: 1.2.1f
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mat Brown
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - "="
30
30
  - !ruby/object:Gem::Version
31
- version: 1.2.1b
31
+ version: 1.2.1f
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency