down 1.0.3 → 1.0.4

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/down.gemspec +1 -1
  3. data/lib/down.rb +1 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b92313f399fb288e1c324b1355cd26b3eb02ca00
4
- data.tar.gz: bec353dfe70af7fb445b0203ecdd0f20cacc1a29
3
+ metadata.gz: 308e9ad61508c3ff017fc00268b10bf7940e127c
4
+ data.tar.gz: 2aaaa11f72a058efa83efbe173989a9bf48ee0f7
5
5
  SHA512:
6
- metadata.gz: 64b80aa1853dcc253828360b4d8c903c22f4cf0ef4ee4f340b458bc37160852caf6544613476d24fb354b2c103df0bfdaf25b55cdcf5a51a09982ca32b99e949
7
- data.tar.gz: a3d520d6b413114981037d589884f9c113bd0bbef0e5f384c0a5acabee15f73ccec76ca17490ecb5b0b1cf272f337562ed06338449d9c943e3a149c2d983d623
6
+ metadata.gz: e109c11f4ca94c98c8d7863f00265166e410dfb30feb0717b072016dc93d66b744d8699b1409fc418e7050f44f4592cfebbcbac5b6c8b4f76e54868744cb0af4
7
+ data.tar.gz: b9e42b21509b659338853831724199124f520cfc7f25d55be0d9d0c7422efd715a783966e3528ccda9a5ce9be6365f9e47abf5526ace76b5b7e9471936a88db6
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "down"
3
- spec.version = "1.0.3"
3
+ spec.version = "1.0.4"
4
4
  spec.authors = ["Janko Marohnić"]
5
5
  spec.email = ["janko.marohnic@gmail.com"]
6
6
 
@@ -33,6 +33,7 @@ module Down
33
33
  open_uri_file = downloaded_file
34
34
  downloaded_file = copy_to_tempfile(URI(url).path, open_uri_file)
35
35
  OpenURI::Meta.init downloaded_file, open_uri_file
36
+ open_uri_file.delete if open_uri_file.respond_to?(:delete)
36
37
 
37
38
  downloaded_file.extend DownloadedFile
38
39
  downloaded_file
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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake