bin/coypond in coypond-0.2.2 vs bin/coypond in coypond-0.2.3
- old
+ new
@@ -47,10 +47,10 @@
options[:all] ||= (options.keys & [:class, :method, :module]).empty?
def expand(file, pattern=["**"])
if File.directory?(file)
- return Dir.glob(File.join(file, *pattern, '*.rb') )
+ return Dir.glob(File.join([file, pattern, "*.rb"].flatten) )
else
return file
end
end
\ No newline at end of file