sunspot_solr 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9c1914c2c766805f204440436b477639f441c59157f8ea8cf3d3ff2b3247c0e
4
- data.tar.gz: c7a5a0862b69755a76d39bbcaa6b739bdf519c94398c80097da009b8aa322a8c
3
+ metadata.gz: a54c5d32df311f332d0c7f0c108429e880d60a7181c50b29d1eed5d678598a43
4
+ data.tar.gz: 1d24c0f41f77b5e813c12e8c4358f309ed24190134dd6b7c702061915031c052
5
5
  SHA512:
6
- metadata.gz: 324bd411649634ab9b317773c82069cfb91f40f1fe27ffe908122e975903a9243bb214daf5e9814c873cadcc0ed638297e54dbe05593000c2631d20ae326f7c1
7
- data.tar.gz: d54998daedd15e13503a8854bdd64fc39136e81481187256682752139bc9bd92fa053bfc3498bd82e440083f81b7f614a2a407f8324be78158f72c5c27f4c75c
6
+ metadata.gz: da7e2ff2a4c98b9baa445dadfa2574559a12d745260d549ca6801f5fcb70f32e9d87ec8684e5a9400f10aa722f1a573186d2b251d0184597d66a512e3340acac
7
+ data.tar.gz: 1c7053118bdfce36b53aed2df860cba9472f20f37d32673ab17fc6ca4a1490136f778d7e9725581c713cd6fea2b915802e8f7c01645915cdbc2d798031c565c2
@@ -95,6 +95,7 @@ module Sunspot
95
95
  command << "-p" << "#{port}" if port
96
96
  command << "-h" << "#{bind_address}" if bind_address
97
97
  command << "-s" << "#{solr_home}" if solr_home
98
+ command << "-Dlog4j.configuration=file:#{logging_config.path}" if logging_config
98
99
 
99
100
  exec_in_solr_executable_directory(command)
100
101
  end
@@ -194,18 +195,26 @@ module Sunspot
194
195
 
195
196
  private
196
197
 
197
- def logging_config_path
198
- return @logging_config_path if defined?(@logging_config_path)
199
- @logging_config_path =
198
+ def logging_config
199
+ return @logging_config if defined?(@logging_config)
200
+ @logging_config =
200
201
  if log_file
201
- logging_config = Tempfile.new('logging.properties')
202
- logging_config.puts("handlers = java.util.logging.FileHandler")
203
- logging_config.puts("java.util.logging.FileHandler.level = #{log_level.to_s.upcase}")
204
- logging_config.puts("java.util.logging.FileHandler.pattern = #{log_file}")
205
- logging_config.puts("java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter")
202
+ logging_config = Tempfile.new('log4j.properties')
203
+ logging_config.puts("log4j.rootLogger=#{log_level.to_s.upcase}, file, CONSOLE")
204
+ logging_config.puts("log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender")
205
+ logging_config.puts("log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout")
206
+ logging_config.puts("log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
207
+ logging_config.puts("log4j.appender.file=org.apache.log4j.RollingFileAppender")
208
+ logging_config.puts("log4j.appender.file.MaxFileSize=4MB")
209
+ logging_config.puts("log4j.appender.file.MaxBackupIndex=9")
210
+ logging_config.puts("log4j.appender.file.File=#{log_file}")
211
+ logging_config.puts("log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout")
212
+ logging_config.puts("log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
213
+ logging_config.puts("log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF")
214
+
206
215
  logging_config.flush
207
216
  logging_config.close
208
- logging_config.path
217
+ logging_config
209
218
  end
210
219
  end
211
220
  end
data/sunspot_solr.gemspec CHANGED
@@ -22,8 +22,6 @@ Gem::Specification.new do |s|
22
22
  distribution is well suited to development and testing.
23
23
  TEXT
24
24
 
25
- s.rubyforge_project = "sunspot"
26
-
27
25
  s.files = `git ls-files`.split("\n")
28
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_solr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown
@@ -23,10 +23,10 @@ authors:
23
23
  - Sam Granieri
24
24
  - Nick Zadrozny
25
25
  - Jason Ronallo
26
- autorequire:
26
+ autorequire:
27
27
  bindir: bin
28
28
  cert_chain: []
29
- date: 2019-07-12 00:00:00.000000000 Z
29
+ date: 2022-05-30 00:00:00.000000000 Z
30
30
  dependencies:
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rake
@@ -565,7 +565,7 @@ homepage: https://github.com/sunspot/sunspot/tree/master/sunspot_solr
565
565
  licenses:
566
566
  - MIT
567
567
  metadata: {}
568
- post_install_message:
568
+ post_install_message:
569
569
  rdoc_options: []
570
570
  require_paths:
571
571
  - lib
@@ -580,8 +580,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
580
580
  - !ruby/object:Gem::Version
581
581
  version: '0'
582
582
  requirements: []
583
- rubygems_version: 3.0.2
584
- signing_key:
583
+ rubygems_version: 3.1.4
584
+ signing_key:
585
585
  specification_version: 4
586
586
  summary: Bundled Solr distribution for Sunspot
587
587
  test_files: