Fix a bug in FSSM for ruby 1.9. Closes GH-48.

This commit is contained in:
Chris Eppstein 2009-11-19 02:19:38 -08:00
parent 9e93da16cc
commit bad615ef09

View File

@ -37,7 +37,7 @@ class FSSM::State
end
def add_glob(snap, glob)
Pathname.glob(@path.to_pathname.join(glob)).each do |fn|
Pathname.glob(@path.to_pathname.join(glob).to_s).each do |fn|
next unless fn.file?
snap["#{fn}"] = fn.mtime
end