lib/bagit/bag.rb in bagit-0.0.4 vs lib/bagit/bag.rb in bagit-0.1.0

- old
+ new

@@ -11,11 +11,11 @@ class Bag attr_reader :bag_dir include Validity # Validity functionality - include Info # package & bag info functionality + include Info # bagit & bag info functionality include Manifest # manifest related functionality include Fetch # fetch related functionality # Make a new Bag based at path def initialize(path) @@ -25,14 +25,14 @@ FileUtils::mkdir bag_dir unless File.directory? bag_dir FileUtils::mkdir data_dir unless File.directory? data_dir # write some tag info if its not there unless File.exist? bagit_txt_file - write_bag_info("BagIt-Version" => SPEC_VERSION, "Tag-File-Character-Encoding" => "UTF-8") + write_bagit("BagIt-Version" => SPEC_VERSION, "Tag-File-Character-Encoding" => "UTF-8") end - unless File.exist? package_info_txt_file - write_package_info('Bag-Software-Agent' => "BagIt Ruby Gem (http://bagit.rubyforge.org)") + unless File.exist? bag_info_txt_file + write_bag_info('Bag-Software-Agent' => "BagIt Ruby Gem (http://bagit.rubyforge.org)") end end # Return the path to the data directory