solr_wrapper 0.13.0 → 0.13.1
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.rb +2 -0
- data/lib/solr_wrapper/downloader.rb +2 -0
- data/lib/solr_wrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99f4f21c83ffdbf5806d404b14832e4246ba8552
|
4
|
+
data.tar.gz: 0c147272d39019c77189b76ac0e206d6c591ece2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11690c982a117f8a048e2a3625a079512e122c77e2068c4fe72721ac221e6a51f99b4592159fa395cce62e915f0bb6195dc31b79dbe8fda380f020d8d294d306
|
7
|
+
data.tar.gz: 0ac83a288c79341f6043b1dfe42618192a64626801a44064f8dec1b016304b4d34b88ea9dce8e00eb7cc7d52e5e644acf2672326c15ed5c7abf7d324a62367dd
|
data/lib/solr_wrapper.rb
CHANGED
@@ -7,6 +7,8 @@ module SolrWrapper
|
|
7
7
|
open(url, content_length_proc: ->(bytes) { pbar.total = bytes }, progress_proc: ->(bytes) { pbar.progress = bytes }) do |io|
|
8
8
|
IO.copy_stream(io, output)
|
9
9
|
end
|
10
|
+
rescue OpenURI::HTTPError => e
|
11
|
+
raise SolrWrapperError, "Unable to download solr from #{url}\n#{e.message}"
|
10
12
|
end
|
11
13
|
|
12
14
|
class SafeProgressBar < ProgressBar::Base
|
data/lib/solr_wrapper/version.rb
CHANGED