summaryrefslogtreecommitdiff
path: root/lib/rake/contrib/ftptools.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/contrib/ftptools.rb')
-rw-r--r--lib/rake/contrib/ftptools.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rake/contrib/ftptools.rb b/lib/rake/contrib/ftptools.rb
index 4c6897f02e8..12e4ff25de3 100644
--- a/lib/rake/contrib/ftptools.rb
+++ b/lib/rake/contrib/ftptools.rb
@@ -23,7 +23,7 @@ module Rake # :nodoc:
def initialize(path, entry)
@path = path
- @mode, line, @owner, @group, size, d1, d2, d3, @name = entry.split(' ')
+ @mode, _, @owner, @group, size, d1, d2, d3, @name = entry.split(' ')
@size = size.to_i
@time = determine_time(d1, d2, d3)
end
@@ -57,7 +57,6 @@ module Rake # :nodoc:
def determine_time(d1, d2, d3)
now = self.class.time.now
if /:/ =~ d3
- h, m = d3.split(':')
result = Time.parse("#{d1} #{d2} #{now.year} #{d3}")
if result > now
result = Time.parse("#{d1} #{d2} #{now.year-1} #{d3}")