sunspot_solr 2.2.7 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 175b06d8e6dcf9f947e16064355ae4df251cd708
4
- data.tar.gz: ae0612e05708ed7f6315935db3e3ad925556fc5f
2
+ SHA256:
3
+ metadata.gz: 05a6545b6fe13ddd20500c27a357e86d0517a05c250052ad047bf494208b1295
4
+ data.tar.gz: a526076e28a9a2cfcce2b7c4586d5f510be7c0ee0fe6563b3bf0b5e93b27f420
5
5
  SHA512:
6
- metadata.gz: 924b267b19166328dc30ddc3d9c1ef370cb0678462e7204c83bd70706600486907420df46b1c736c38f85a0b73a36ad4620ea0891ee886cb1dd137a9c32f905a
7
- data.tar.gz: a62254db93d134c3aa4502fd9f5e24a2155e8e970b163814468388491d526ffcaa317aa58a764dbc0f7a41f71748f2b75ac813d8237d80b2f2b6c0275caf0604
6
+ metadata.gz: 18cacdef55223c7a6180d08debd43b7e0c8ab2997b20029b81c0ad006a2b9e047ce06afa3bc1526250f17b216de1f5326c77a4816275d2482ba9dcdb70b6a957
7
+ data.tar.gz: fd6dc19b62be22c08798ea09d8bf2b737a1dd9ebc0a2df8ea46286ca4710889294386ce71279736f5ab4501e2ad9a53295da07955c808918375f27d826030a18
@@ -158,7 +158,7 @@ module Sunspot
158
158
  end
159
159
 
160
160
  def exec_in_solr_executable_directory(command)
161
- FileUtils.cd(solr_executable_directory) { exec(*command) }
161
+ FileUtils.cd(solr_executable_directory) { system(*command) }
162
162
  end
163
163
 
164
164
  #
data/solr/bin/solr.in.cmd CHANGED
@@ -24,8 +24,11 @@ REM set SOLR_JAVA_HOME=
24
24
  REM Increase Java Min/Max Heap as needed to support your indexing / query needs
25
25
  set SOLR_JAVA_MEM=-Xms512m -Xmx512m
26
26
 
27
- REM Enable verbose GC logging
28
- set GC_LOG_OPTS=-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime
27
+ REM Enable verbose GC logging (Java 9+)
28
+ REM set GC_LOG_OPTS=-Xlog:gc*
29
+
30
+ REM Enable verbose GC logging (Java <9)
31
+ REM set GC_LOG_OPTS=-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime
29
32
 
30
33
  REM These GC settings have shown to work well for a number of common Solr workloads
31
34
  set GC_TUNE=-XX:NewRatio=3 ^
data/solr/bin/solr.in.sh CHANGED
@@ -25,9 +25,12 @@ SOLR_HEAP="512m"
25
25
  # Comment out SOLR_HEAP if you are using this though, that takes precedence
26
26
  #SOLR_JAVA_MEM="-Xms512m -Xmx512m"
27
27
 
28
- # Enable verbose GC logging
29
- GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
30
- -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
28
+ # Enable verbose GC logging (Java 9+)
29
+ #GC_LOG_OPTS="-Xlog:gc*"
30
+
31
+ # Enable verbose GC logging (Java <9)
32
+ #GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
33
+ #-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
31
34
 
32
35
  # These GC settings have shown to work well for a number of common Solr workloads
33
36
  GC_TUNE="-XX:NewRatio=3 \
@@ -541,13 +541,13 @@
541
541
  <!-- change field to textSpell and use copyField in schema.xml
542
542
  to spellcheck multiple fields -->
543
543
  <str name="field">textSpell</str>
544
- <str name="buildOnCommit">true</str>
544
+ <str name="buildOnOptimize">true</str>
545
545
  </lst>
546
546
 
547
547
  <lst name="spellchecker">
548
548
  <str name="name">example</str>
549
549
  <str name="field">title_text</str>
550
- <str name="buildOnCommit">true</str>
550
+ <str name="buildOnOptimize">true</str>
551
551
  <str name="classname">solr.DirectSolrSpellChecker</str>
552
552
  <!-- the spellcheck distance measure used, the default is the internal levenshtein -->
553
553
  <str name="distanceMeasure">internal</str>
data/spec/server_spec.rb CHANGED
@@ -23,32 +23,32 @@ describe Sunspot::Solr::Server do
23
23
  before { expect(subject).to receive(:bootstrap) }
24
24
 
25
25
  it 'runs the Solr server in the foreground' do
26
- expect(subject).to receive(:exec).with("./solr", "start", "-f", any_args)
26
+ expect(subject).to receive(:system).with("./solr", "start", "-f", any_args)
27
27
  subject.run
28
28
  end
29
29
 
30
30
  it 'runs the Solr server with the memory specified' do
31
31
  subject.memory = 2048
32
- expect(subject).to receive(:exec).with("./solr", "start", "-f", "-m", "2048", any_args)
32
+ expect(subject).to receive(:system).with("./solr", "start", "-f", "-m", "2048", any_args)
33
33
  subject.run
34
34
  end
35
35
 
36
36
  it 'runs the Solr server with the port specified' do
37
37
  subject.port = 8981
38
- expect(subject).to receive(:exec).with("./solr", "start", "-f", "-p", "8981", any_args)
38
+ expect(subject).to receive(:system).with("./solr", "start", "-f", "-p", "8981", any_args)
39
39
  subject.run
40
40
  end
41
41
 
42
42
  it 'runs the Solr server with the hostname specified' do
43
43
  subject.bind_address = "0.0.0.0"
44
- expect(subject).to receive(:exec).with("./solr", "start", "-f", "-h", "0.0.0.0", any_args)
44
+ expect(subject).to receive(:system).with("./solr", "start", "-f", "-h", "0.0.0.0", any_args)
45
45
  subject.run
46
46
  end
47
47
 
48
48
  it 'runs the Solr server with the solr home directory specified' do
49
49
  specified_dir = Dir.mktmpdir + "/test_directory"
50
50
  subject.solr_home = specified_dir
51
- expect(subject).to receive(:exec).with(any_args, "-s", specified_dir)
51
+ expect(subject).to receive(:system).with(any_args, "-s", specified_dir)
52
52
  subject.run
53
53
  end
54
54
  end
data/sunspot_solr.gemspec CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |s|
29
29
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
30
30
  s.require_paths = ["lib"]
31
31
 
32
- s.add_development_dependency 'rake', '~> 11.1.2'
33
- s.add_development_dependency 'rspec', '~> 3.4.0'
32
+ s.add_development_dependency 'rake', '< 12.3'
33
+ s.add_development_dependency 'rspec'
34
34
  end
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.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown
@@ -26,36 +26,36 @@ authors:
26
26
  autorequire:
27
27
  bindir: bin
28
28
  cert_chain: []
29
- date: 2016-10-26 00:00:00.000000000 Z
29
+ date: 2018-03-26 00:00:00.000000000 Z
30
30
  dependencies:
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rake
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - "~>"
35
+ - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: 11.1.2
37
+ version: '12.3'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - "~>"
42
+ - - "<"
43
43
  - !ruby/object:Gem::Version
44
- version: 11.1.2
44
+ version: '12.3'
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: rspec
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 3.4.0
51
+ version: '0'
52
52
  type: :development
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - "~>"
56
+ - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 3.4.0
58
+ version: '0'
59
59
  description: |2
60
60
  Sunspot::Solr provides a bundled Solr distribution for use with Sunspot.
61
61
  Typical deployment environments will require more configuration, but this
@@ -581,7 +581,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
581
581
  version: '0'
582
582
  requirements: []
583
583
  rubyforge_project: sunspot
584
- rubygems_version: 2.5.0
584
+ rubygems_version: 2.7.6
585
585
  signing_key:
586
586
  specification_version: 4
587
587
  summary: Bundled Solr distribution for Sunspot