picombo 0.2.4 → 0.2.5

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/core/core.rb +11 -3
  2. 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
- files.concat(Dir.new(path+'/'+directory).entries.collect! {|file|
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('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Bush