solr_wrapper 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solr_wrapper/downloader.rb +1 -1
- data/lib/solr_wrapper/settings.rb +6 -2
- 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: 77650c2027982f2b38ccfb7bacd68256533c9a8a
|
4
|
+
data.tar.gz: 9c9b6e6ff2fb3e152330148fc133d98d16cab042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ad4272bd32b464f3477816731a0a60cc913918c1675a1bb56de0faad36d385b6f7640d398bf90e95c8a22c8008487a297c27fa1ab9795533697d525cfd0731
|
7
|
+
data.tar.gz: 550b5860c11b95a95d4b3d18aaa746029307029b5df95ecad0a84bf705ec3900fa7648c350feb42fd74a53428b13c358e1e8958baded580b75834c755f4aed6e
|
@@ -8,7 +8,7 @@ module SolrWrapper
|
|
8
8
|
IO.copy_stream(io, output)
|
9
9
|
end
|
10
10
|
rescue OpenURI::HTTPError => e
|
11
|
-
raise SolrWrapperError, "Unable to download solr from #{url}\n#{e.message}"
|
11
|
+
raise SolrWrapperError, "Unable to download solr from #{url}\n#{e.message}: #{e.io.read}"
|
12
12
|
end
|
13
13
|
|
14
14
|
class SafeProgressBar < ProgressBar::Base
|
@@ -74,7 +74,11 @@ module SolrWrapper
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def md5url
|
77
|
-
|
77
|
+
if default_download_url == archive_download_url
|
78
|
+
"#{archive_download_url}.md5"
|
79
|
+
else
|
80
|
+
"http://www.us.apache.org/dist/lucene/solr/#{static_config.version}/solr-#{static_config.version}.zip.md5"
|
81
|
+
end
|
78
82
|
end
|
79
83
|
|
80
84
|
def md5sum_path
|
@@ -128,7 +132,7 @@ module SolrWrapper
|
|
128
132
|
end
|
129
133
|
|
130
134
|
def archive_download_url
|
131
|
-
"
|
135
|
+
"https://archive.apache.org/dist/lucene/solr/#{static_config.version}/solr-#{static_config.version}.zip"
|
132
136
|
end
|
133
137
|
|
134
138
|
def random_open_port
|
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.
|
4
|
+
version: 0.18.0
|
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-09-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|