solr_wrapper 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4250eaeef1fb8ffaa37524d27adb84d53634c727aeecdb8ce4ae3d879a365590
4
- data.tar.gz: af8859570ebd748be62e4fc0fe9880dbe2d1cb48ff41c95fc0137b1d47ecab87
3
+ metadata.gz: 9c1284ffe589ddc60ddddb23b70fe7daf57ca017efa1630f80787bb28f5f5c66
4
+ data.tar.gz: 0be582a13adedabd32636247b0554cfe0705d21990ae1221b34d83cac0882754
5
5
  SHA512:
6
- metadata.gz: 84cfb3bb69164e2a2e62d6bcfc041f642cedca0e5fcc5dc45512d3388b719464daf9f229b0c2e5a43a2056834d52d434b614322e280daea63417035475f58bc2
7
- data.tar.gz: 6f906bc082b23435cb8e755c4b3f796752dc5ef50ac769852e5194400183404d9eb03cc07f4164840ee52846ce655906623288bc9b2df237cc437cb0d8b0ed93
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
- "http://www.apache.org/dyn/closer.lua/lucene/solr/#{version}/solr-#{version}.zip?asjson=true"
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
 
@@ -1,3 +1,3 @@
1
1
  module SolrWrapper
2
- VERSION = '3.1.1'
2
+ VERSION = '3.1.2'
3
3
  end
@@ -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/solr/downloads.html').to_return(body: 'Solr 1.2.3 is the latest version')
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.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-03-03 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http