picombo 0.2.4 → 0.2.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.
- data/lib/core/core.rb +11 -3
- metadata +2 -2
data/lib/core/core.rb
CHANGED
|
@@ -139,11 +139,19 @@ module Picombo
|
|
|
139
139
|
|
|
140
140
|
$LOAD_PATH.each do |path|
|
|
141
141
|
if File.directory?(path+'/'+directory)
|
|
142
|
-
|
|
142
|
+
Dir.new(path+'/'+directory).entries.each do |file|
|
|
143
143
|
unless (file == '.' or file == '..')
|
|
144
|
-
path+directory+'/'+file
|
|
144
|
+
if File.directory?(path+directory+'/'+file)
|
|
145
|
+
list_files(directory+'/'+file).each do |sub_file|
|
|
146
|
+
unless (sub_file == '.' or sub_file == '..' or File.directory?(sub_file))
|
|
147
|
+
files << sub_file
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
else
|
|
151
|
+
files << path+directory+'/'+file
|
|
152
|
+
end
|
|
145
153
|
end
|
|
146
|
-
|
|
154
|
+
end
|
|
147
155
|
end
|
|
148
156
|
end
|
|
149
157
|
files.delete('.')
|