right_data 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/FileSystemItem.rb +4 -4
  2. metadata +3 -3
@@ -126,13 +126,13 @@ module RightData
126
126
  if n.leaf?
127
127
  if(File.directory?(n.path))
128
128
  # Prune empty dirs!
129
- puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' # Empty dir" # Remove the dups/igns!
129
+ puts "#{pre}'#{n.path.gsub(/'/,"\\\\'")}' # Empty dir" # Remove the dups/igns!
130
130
  else
131
131
  msg = nil
132
132
  msg = "# dup(#{n.duplicates.count})" if n.duplicate?
133
133
  msg = "# ign" if n.ignorable?
134
134
  if msg
135
- puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' #{msg}" # Remove the dups/igns!
135
+ puts "#{pre}'#{n.path.gsub(/'/,"\\\\'")}' #{msg}" # Remove the dups/igns!
136
136
  else
137
137
  puts "# #{n.path} unique"
138
138
  end
@@ -140,10 +140,10 @@ module RightData
140
140
  false # Don't traverse deeper!
141
141
  else
142
142
  if n.duplicate_children + n.ignore_children == n.children.size
143
- puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' # #{n.duplicate_children} dups / #{n.ignore_children} ignores"
143
+ puts "#{pre}'#{n.path.gsub(/'/,"\\\\'")}' # #{n.duplicate_children} dups / #{n.ignore_children} ignores"
144
144
  false # Don't traverse deeper!
145
145
  elsif n.children.size == 0
146
- puts "#{pre}'#{n.path.gsub(/'/,"\\'")}' # Empty... "
146
+ puts "#{pre}'#{n.path.gsub(/'/,"\\\\'")}' # Empty... "
147
147
  false
148
148
  else
149
149
  puts "# #{n.path} # Not #{n.duplicate_children} dup/ #{n.ignore_children} ign / #{n.other_children} other "
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_data
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 10
10
- version: 0.5.10
9
+ - 11
10
+ version: 0.5.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Siegel