solr_wrapper 4.1.3 → 4.2.0
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 +4 -4
- data/lib/solr_wrapper/instance.rb +8 -3
- data/lib/solr_wrapper/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 626db54fafc1a1fc7b2cdf05ee35093193c48572f6a19eda6637a9947d0efea8
|
4
|
+
data.tar.gz: 2a096674ab3b3aa7a59a7d96210358c54bcb78197cc6761f93ecfb60dd39fb8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a849614bd09e398e205441e20df3dd93e07cc097116d97ef63c7b985ee5a925a75c2420fab42d360fc42f87dcacda21dc15445c192b1d2519ba6d71134e4057
|
7
|
+
data.tar.gz: 0a803b20156f2ceae31a2597361ec54360d3fd5ee9da6970143846e845e2caa1903d6680aa4cf629e9e26a39880d3947ae01ddd9a03ed6416ddcbea059d636b2
|
@@ -159,12 +159,17 @@ module SolrWrapper
|
|
159
159
|
create_options[:n] = options[:config_name] if options[:config_name]
|
160
160
|
|
161
161
|
if options[:dir]
|
162
|
+
# Turn a relative path to absolute. Solr 9.7+ changes relative to be
|
163
|
+
# relative to solr instance dir (which can be a temp dir for us),
|
164
|
+
# instead of command CWD. Normalize to absolute is good for all.
|
165
|
+
options[:dir] = File.absolute_path(options[:dir])
|
166
|
+
|
162
167
|
# Solr 9.7 required that the dir argument contain a `conf` directory that
|
163
168
|
# contains the actual configuration files.
|
164
169
|
if version >= '9.7' && !File.exist?(File.join(options[:dir], 'conf'))
|
165
|
-
|
166
|
-
if options[:dir].match?(/conf
|
167
|
-
create_options[:d] = File.expand_path(options[:dir]
|
170
|
+
# ends in `conf` or `conf/`
|
171
|
+
if options[:dir].match?(/conf\/?$/)
|
172
|
+
create_options[:d] = File.expand_path("..", options[:dir])
|
168
173
|
else
|
169
174
|
tmpdir = Dir.mktmpdir
|
170
175
|
|
data/lib/solr_wrapper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solr_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-08-04 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: faraday
|
@@ -182,7 +181,6 @@ dependencies:
|
|
182
181
|
- - ">="
|
183
182
|
- !ruby/object:Gem::Version
|
184
183
|
version: '0'
|
185
|
-
description:
|
186
184
|
email:
|
187
185
|
- chris@cbeer.info
|
188
186
|
executables:
|
@@ -235,7 +233,6 @@ homepage: https://github.com/cbeer/solr_wrapper
|
|
235
233
|
licenses:
|
236
234
|
- MIT
|
237
235
|
metadata: {}
|
238
|
-
post_install_message:
|
239
236
|
rdoc_options: []
|
240
237
|
require_paths:
|
241
238
|
- lib
|
@@ -250,8 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
247
|
- !ruby/object:Gem::Version
|
251
248
|
version: '0'
|
252
249
|
requirements: []
|
253
|
-
rubygems_version: 3.
|
254
|
-
signing_key:
|
250
|
+
rubygems_version: 3.6.3
|
255
251
|
specification_version: 4
|
256
252
|
summary: Solr service wrapper
|
257
253
|
test_files:
|