lib/quality/rake/task.rb in quality-4.0.1 vs lib/quality/rake/task.rb in quality-4.0.2
- old
+ new
@@ -102,16 +102,16 @@
def source_dirs
@source_dirs ||= ruby_dirs.clone
end
- def source_files_glob(extensions = 'rb,swift,cpp,c,java,py')
- File.join("{#{source_dirs.join(',')}}",
- '**', "*.{#{extensions}}")
+ def source_files_glob(dirs = source_dirs,
+ extensions = 'rb,swift,cpp,c,java,py')
+ File.join("{#{dirs.join(',')}}", '**', "*.{#{extensions}}")
end
def ruby_files_glob
- source_files_glob('rb')
+ source_files_glob(ruby_dirs, 'rb')
end
def ruby_files
@globber.glob('{*.rb,Rakefile}')
.concat(@globber.glob(ruby_files_glob)).join(' ')