down 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/down.rb +2 -2
  3. data/lib/down/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b426820617504822aafdeca27a7fc75a9cc1ce4
4
- data.tar.gz: 2d3a6d3ffd897d4f58f415906226532a928aeaea
3
+ metadata.gz: f666ebb30afe8b5e6faaeb0ac159808620a1dd21
4
+ data.tar.gz: 8efca55dd0c9c7e8cfd6aafd82e857b7a3220b5e
5
5
  SHA512:
6
- metadata.gz: 373967a988ddd1a64bc2ca18cd73a6dfe393ba7c25a2fc831192535533d406ff4f77dc120c0b94a1a6b9b52c142b5452826b1948a91f1474b09a441457c8d2e2
7
- data.tar.gz: cb187938e2fecc42af93032c8a5d14db44fe996b39c2e768b0c89c64e275e64b464cda3f228777d21f4b86f38fc2c2afdeacb15130783822f2e101171146f029
6
+ metadata.gz: d5641778d393b156f5b1c32df00a890f62c6454af3bc7b8563921cea760e12c159ddd66dbf70f7c2b77183c7dee1cd6083c7456c58088f47f5ea5fb1b92fe7ef
7
+ data.tar.gz: 7b5c5100c1418e4f494866efa45d8b14fd5e91fb84f7515d1bb3bdb0fdd0c0ac039f4dc02d8942d9ef1083dcda546ff47088e0e173ec3bbf19cb79dd58edada2
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Down
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
3
3
  end
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.2
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-03-27 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake