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 +4 -4
- data/lib/browse_everything/retriever.rb +1 -1
- data/lib/browse_everything/version.rb +1 -1
- data/spec/unit/retriever_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3dac91a7b55dbdc832f74cac8f959bc0f17f856
|
4
|
+
data.tar.gz: 566510c4721a075a8e8045c518270022fcb9938e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43028fac8de3a563e4481c2be55195d16baa44ce561892b5437e0af25215cfcd23d93d5b1d74c7741d18429c433d072f8729ca349cd9becc635dead723717f61
|
7
|
+
data.tar.gz: fd6f9d1fb68fb27c42f33d68d2a4f69ee752a13895671894b82d8643cc1f760ea8f7046c59b7327d17f23f952710275a8786c0e1ab0cd81830d995daf6bb1eaa
|
data/spec/unit/retriever_spec.rb
CHANGED
@@ -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.
|
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-
|
16
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|