remotebackup 0.50.4 → 0.50.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/remotebackup.rb +4 -4
  2. metadata +2 -2
data/lib/remotebackup.rb CHANGED
@@ -10,7 +10,7 @@ require "date"
10
10
  require 'logger'
11
11
  require 'yaml'
12
12
  module Remotebackup
13
- VERSION='0.50.4'
13
+ VERSION='0.50.5'
14
14
  class Node
15
15
  attr_accessor :ftype,:name,:makeMap
16
16
  LS_FILE = /([-a-z]*)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\d*)\s+([A-Z][a-z]*)\s+(\d+)\s+([\d:]*)\s+(.*)/
@@ -20,9 +20,9 @@ module Remotebackup
20
20
  "Sep" => 9, "Oct" => 10, "Nov" => 11, "Dec" => 12}
21
21
 
22
22
  def initialize(out)
23
- @name=""
24
- if out =~ /[^\x20-\x7E]/
23
+ if out =~ /[^\x20-\x7E]/
25
24
  $log.error("#{out} includes irregular char. ignore.")
25
+ return;
26
26
  end
27
27
  case out
28
28
  when /^-/
@@ -133,7 +133,7 @@ module Remotebackup
133
133
  next
134
134
  end
135
135
  node = Node.new(line.chomp)
136
- if node.name == "." or node.name == ".."
136
+ if not node.name or node.name == "." or node.name == ".."
137
137
  next
138
138
  end
139
139
  if target != ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotebackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.4
4
+ version: 0.50.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - takeshi morita
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-20 00:00:00 -05:00
12
+ date: 2008-11-21 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency