down 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/down.rb +2 -2
- data/lib/down/version.rb +1 -1
- 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: f666ebb30afe8b5e6faaeb0ac159808620a1dd21
|
4
|
+
data.tar.gz: 8efca55dd0c9c7e8cfd6aafd82e857b7a3220b5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5641778d393b156f5b1c32df00a890f62c6454af3bc7b8563921cea760e12c159ddd66dbf70f7c2b77183c7dee1cd6083c7456c58088f47f5ea5fb1b92fe7ef
|
7
|
+
data.tar.gz: 7b5c5100c1418e4f494866efa45d8b14fd5e91fb84f7515d1bb3bdb0fdd0c0ac039f4dc02d8942d9ef1083dcda546ff47088e0e173ec3bbf19cb79dd58edada2
|
data/lib/down.rb
CHANGED
@@ -59,10 +59,10 @@ module Down
|
|
59
59
|
rescue OpenURI::HTTPRedirect => redirect
|
60
60
|
url = redirect.uri.to_s
|
61
61
|
retry if (tries -= 1) > 0
|
62
|
-
raise Down::NotFound, "too many redirects"
|
62
|
+
raise Down::NotFound, "too many redirects: #{url}"
|
63
63
|
rescue => error
|
64
64
|
raise if error.is_a?(Down::Error)
|
65
|
-
raise Down::NotFound, "file not found"
|
65
|
+
raise Down::NotFound, "file not found: #{url}"
|
66
66
|
end
|
67
67
|
|
68
68
|
# open-uri will return a StringIO instead of a Tempfile if the filesize is
|
data/lib/down/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: down
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|