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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae1eb7d22a407381248a653d41b0df070313427e
4
- data.tar.gz: ff7c614cf39b2d4a97e808018dab901fc0f20fb2
3
+ metadata.gz: 77650c2027982f2b38ccfb7bacd68256533c9a8a
4
+ data.tar.gz: 9c9b6e6ff2fb3e152330148fc133d98d16cab042
5
5
  SHA512:
6
- metadata.gz: 7ff26b718f0b4f198367a1bd836788b6bda5291a296a99f1f27cd653d5538d20c34b7f0397eb63fe8c632748b262dad08a5a19721c1cf5381fd5f8a6d0eda129
7
- data.tar.gz: 88146a36061f4954abff8162d136b966e68d8ca4ad5a02ae9274a4cfd87a4c0cb91d9bc66e1efa2f2604152156811772f1a63c4400630032ce606570619393df
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
- "http://archive.apache.org/dist/lucene/solr/#{static_config.version}/solr-#{static_config.version}.zip.md5"
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
- "http://archive.apache.org/dist/lucene/solr/#{static_config.version}/solr-#{static_config.version}.zip"
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
@@ -1,3 +1,3 @@
1
1
  module SolrWrapper
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
3
3
  end
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.17.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-01 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday