lib/speckle/cli/environment.rb in speckle-0.1.26 vs lib/speckle/cli/environment.rb in speckle-0.1.27

- old
+ new

@@ -162,12 +162,14 @@ end def build_riml_path(dirs, pattern = /.*\.riml$/, spec_pattern = /.*_spec\.riml$/) libs = [] dirs.each do |dir| - Find.find(dir) do |path| - if path =~ pattern && path !~ spec_pattern - libs << File.dirname(path) + if File.directory?(dir) + Find.find(dir) do |path| + if path =~ pattern && path !~ spec_pattern + libs << File.dirname(path) + end end end end libs.uniq.join(':')