matthewtodd-downloads 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module Downloads
11
11
  private
12
12
 
13
13
  def status(remote_file)
14
- local_file = local.exists?(remote_file[:name]) || { :size => 0 }
14
+ local_file = local.files.detect(:size => 0) { |file| file[:name] == remote_file[:name] }
15
15
  percent(local_file[:size], remote_file[:size])
16
16
  end
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matthewtodd-downloads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Todd
@@ -82,7 +82,7 @@ rdoc_options:
82
82
  - --main
83
83
  - README.rdoc
84
84
  - --title
85
- - downloads-0.6.5
85
+ - downloads-0.6.6
86
86
  - --inline-source
87
87
  - --line-numbers
88
88
  require_paths: