You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: manifest.rb
    path of file: ./repos/breakfast/lib/breakfast
    
    the code of the file until where you have to start completion: require "json"
require "digest"
require "fileutils"

module Breakfast
  class Manifest
    MANIFEST_REGEX = /^\.breakfast-manifest-[0-9a-f]{32}.jso
    
    def digest!
      assets = asset_paths.map do |path|
        digest = Digest::MD5.new
        digest.update(File.read("#{base_dir}/#{path}"))

        digest_path = "#{path.sub_ext('')}-#{digest.hexdigest}#{File.extname(path)}"

        FileUtils.cp("#{base_dir}/#{path}", "#{base_dir}/#{digest_path}")

        [path, digest_path]
      end

      File.open(manifest_path, "w") do |manifest|
        manifest.write(assets.to_h.to_json)
      end

      update_cache!
    end