solr_wrapper 0.18.0 → 0.18.1
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 -8
- data/lib/solr_wrapper/md5.rb +2 -2
- data/lib/solr_wrapper/settings.rb +1 -1
- data/lib/solr_wrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4003df13bf105dbf5bb12a5593a8cfa5bcaa6fe
|
|
4
|
+
data.tar.gz: 607971ddd802c68cc0d8eaede0eb4121fc90c0d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a8437e169cad81c857fdc2513ffe37311a6f3431aa9d6925ba6771a69708d085dff7858ea52794732c2b17cc0b44487259804572a13df3dfd09337fec451c78
|
|
7
|
+
data.tar.gz: 4e44c61e56b5a34d795f646a2db3d7a8a5a8abbbfac65013b97b046366b173042d88b8f435f135bd570c4fdcaa5c5101ddfda5406bd3e1ceae7eab74e1c04173
|
|
@@ -221,16 +221,16 @@ module SolrWrapper
|
|
|
221
221
|
def clean!
|
|
222
222
|
stop
|
|
223
223
|
remove_instance_dir!
|
|
224
|
-
FileUtils.remove_entry(config.download_dir, true) if File.
|
|
225
|
-
FileUtils.remove_entry(config.tmp_save_dir, true) if File.
|
|
224
|
+
FileUtils.remove_entry(config.download_dir, true) if File.exist?(config.download_dir)
|
|
225
|
+
FileUtils.remove_entry(config.tmp_save_dir, true) if File.exist? config.tmp_save_dir
|
|
226
226
|
md5.clean!
|
|
227
|
-
FileUtils.remove_entry(config.version_file) if File.
|
|
227
|
+
FileUtils.remove_entry(config.version_file) if File.exist? config.version_file
|
|
228
228
|
end
|
|
229
229
|
|
|
230
230
|
##
|
|
231
231
|
# Clean up any files in the Solr instance dir
|
|
232
232
|
def remove_instance_dir!
|
|
233
|
-
FileUtils.remove_entry(instance_dir, true) if File.
|
|
233
|
+
FileUtils.remove_entry(instance_dir, true) if File.exist? instance_dir
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
def configure
|
|
@@ -278,18 +278,18 @@ module SolrWrapper
|
|
|
278
278
|
|
|
279
279
|
config.instance_dir
|
|
280
280
|
ensure
|
|
281
|
-
FileUtils.remove_entry config.tmp_save_dir if File.
|
|
281
|
+
FileUtils.remove_entry config.tmp_save_dir if File.exist? config.tmp_save_dir
|
|
282
282
|
end
|
|
283
283
|
# rubocop:enable Lint/RescueException
|
|
284
284
|
|
|
285
285
|
protected
|
|
286
286
|
|
|
287
287
|
def extracted?
|
|
288
|
-
File.
|
|
288
|
+
File.exist?(config.solr_binary) && extracted_version == config.version
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
def download
|
|
292
|
-
unless File.
|
|
292
|
+
unless File.exist?(config.solr_zip_path) && md5.validate?(config.solr_zip_path)
|
|
293
293
|
Downloader.fetch_with_progressbar config.download_url, config.solr_zip_path
|
|
294
294
|
md5.validate! config.solr_zip_path
|
|
295
295
|
end
|
|
@@ -372,7 +372,7 @@ module SolrWrapper
|
|
|
372
372
|
end
|
|
373
373
|
|
|
374
374
|
def extracted_version
|
|
375
|
-
File.read(config.version_file).strip if File.
|
|
375
|
+
File.read(config.version_file).strip if File.exist? config.version_file
|
|
376
376
|
end
|
|
377
377
|
|
|
378
378
|
def extracted_version=(version)
|
data/lib/solr_wrapper/md5.rb
CHANGED
|
@@ -6,7 +6,7 @@ module SolrWrapper
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def clean!
|
|
9
|
-
FileUtils.remove_entry(config.md5sum_path) if File.
|
|
9
|
+
FileUtils.remove_entry(config.md5sum_path) if File.exist? config.md5sum_path
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def validate?(file)
|
|
@@ -33,7 +33,7 @@ module SolrWrapper
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def md5file
|
|
36
|
-
unless File.
|
|
36
|
+
unless File.exist? config.md5sum_path
|
|
37
37
|
Downloader.fetch_with_progressbar config.md5url, config.md5sum_path
|
|
38
38
|
end
|
|
39
39
|
|
data/lib/solr_wrapper/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solr_wrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|