lib/bagit/manifest.rb in bagit-0.4.0 vs lib/bagit/manifest.rb in bagit-0.4.1

- old
+ new

@@ -14,11 +14,11 @@ # All tag files that are bag manifest files (manifest-[algorithm].txt) def manifest_files files = Dir[File.join(@bag_dir, '*')].select { |f| - File.file? f and File.basename(f) =~ /^manifest-.*.txt/ + File.file? f and File.basename(f) =~ /^manifest-.*.txt$/ } files end # A path to a manifest file of the specified algorithm @@ -48,10 +48,10 @@ end # All tag files that are bag manifest files (tagmanifest-[algorithm].txt) def tagmanifest_files files = Dir[File.join(@bag_dir, '*')].select { |f| - File.file? f and File.basename(f) =~ /^tagmanifest-.*.txt/ + File.file? f and File.basename(f) =~ /^tagmanifest-.*.txt$/ } files end # A path to a tagmanifest file of the specified algorithm