solr_wrapper 3.1.1 → 3.1.2
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c1284ffe589ddc60ddddb23b70fe7daf57ca017efa1630f80787bb28f5f5c66
|
4
|
+
data.tar.gz: 0be582a13adedabd32636247b0554cfe0705d21990ae1221b34d83cac0882754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5323d1a0d5d02fb6dab1e22dc100007863de09f458cd4259cf69ef3eda7882b9d23c89bc821aa478b4f529554d38cd771dc3fa7b37115bb61c478e89f9239b
|
7
|
+
data.tar.gz: 1298a39b87f6608efc35669d8214f3cd034f42cae956b83d369ae0b5eb1553304ba59c53882a870dac69f8f69267f155c6e99eab36c6eb5d8f4eeaa5a3a5e187
|
@@ -94,7 +94,7 @@ module SolrWrapper
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def closest_mirror_url
|
97
|
-
"
|
97
|
+
"https://www.apache.org/dyn/closer.lua/lucene/solr/#{version}/solr-#{version}.zip?asjson=true"
|
98
98
|
end
|
99
99
|
|
100
100
|
def mirror_url
|
@@ -102,7 +102,7 @@ module SolrWrapper
|
|
102
102
|
options[:mirror_url] + "lucene/solr/#{version}/solr-#{version}.zip"
|
103
103
|
else
|
104
104
|
begin
|
105
|
-
json = HTTP.get(closest_mirror_url).body
|
105
|
+
json = HTTP.follow.get(closest_mirror_url).body
|
106
106
|
doc = JSON.parse(json)
|
107
107
|
url = doc['preferred'] + doc['path_info']
|
108
108
|
|
data/lib/solr_wrapper/version.rb
CHANGED
@@ -75,7 +75,7 @@ describe SolrWrapper::Configuration do
|
|
75
75
|
let(:options) { { version: 'latest'} }
|
76
76
|
|
77
77
|
before do
|
78
|
-
stub_request(:get, 'https://solr.apache.org/
|
78
|
+
stub_request(:get, 'https://solr.apache.org/downloads.html').to_return(body: 'Solr 1.2.3 is the latest version')
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'fetches the latest version number from apache' do
|
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: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|