browse-everything 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 517bf8920fbeb90a14f3f2e1d3c33f73d68c0578
4
- data.tar.gz: 3abe80da837a6adafc95893c3a9a0cbba89bdd1c
3
+ metadata.gz: b3dac91a7b55dbdc832f74cac8f959bc0f17f856
4
+ data.tar.gz: 566510c4721a075a8e8045c518270022fcb9938e
5
5
  SHA512:
6
- metadata.gz: efdb8266d087e847282d2822a49a4363e33c5e070f65df84a16156077df9fd8704a0c1289ec7ece5df5244fec5a08f18c0a7fa64fc2daf78a9cef21f9bbdd6e5
7
- data.tar.gz: 1b5a31483ea411070cc6fcbeb790ada41cc34afd102f5df8d28561e70e7f8a05fa5f7df98608adc51c543dcd12b7ee9bd6c32c4c8b4f64249db0354fc6d05f87
6
+ metadata.gz: 43028fac8de3a563e4481c2be55195d16baa44ce561892b5437e0af25215cfcd23d93d5b1d74c7741d18429c433d072f8729ca349cd9becc635dead723717f61
7
+ data.tar.gz: fd6f9d1fb68fb27c42f33d68d2a4f69ee752a13895671894b82d8643cc1f760ea8f7046c59b7327d17f23f952710275a8786c0e1ab0cd81830d995daf6bb1eaa
@@ -53,7 +53,7 @@ module BrowseEverything
53
53
  yield(chunk, retrieved, spec['file_size'].to_i)
54
54
  end
55
55
  else
56
- raise URI::BadURIError, "Unknown URI scheme: #{uri.scheme}"
56
+ raise URI::BadURIError, "Unknown URI scheme: #{url.scheme}"
57
57
  end
58
58
  end
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = '0.13.0'.freeze
2
+ VERSION = '0.13.1'.freeze
3
3
  end
@@ -6,6 +6,24 @@ describe BrowseEverything::Retriever, vcr: { cassette_name: 'retriever', record:
6
6
  let(:data_with_spaces) { File.open(datafile_with_spaces, 'rb', &:read) }
7
7
  let(:size) { File.size(datafile) }
8
8
 
9
+ context 'with a non-URI' do
10
+ let(:spec) do
11
+ {
12
+ '0' => {
13
+ 'url' => '/some/dir/file.pdf',
14
+ 'file_name' => 'file.pdf',
15
+ 'file_size' => size.to_s
16
+ }
17
+ }
18
+ end
19
+
20
+ describe '#retrieve' do
21
+ it 'raises an error' do
22
+ expect { retriever.retrieve(spec['0']) }.to raise_error(URI::BadURIError)
23
+ end
24
+ end
25
+ end
26
+
9
27
  context 'http://' do
10
28
  let(:spec) do
11
29
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browse-everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carolyn Cole
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2017-04-30 00:00:00.000000000 Z
16
+ date: 2017-05-09 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails