lib/longleaf/services/metadata_deserializer.rb in longleaf-1.0.0 vs lib/longleaf/services/metadata_deserializer.rb in longleaf-1.1.0

- old
+ new

@@ -30,10 +30,11 @@ registered = data.delete(MDFields::REGISTERED_TIMESTAMP) deregistered = data.delete(MDFields::DEREGISTERED_TIMESTAMP) checksums = data.delete(MDFields::CHECKSUMS) file_size = data.delete(MDFields::FILE_SIZE) last_modified = data.delete(MDFields::LAST_MODIFIED) + physical_path = data.delete(MDFields::PHYSICAL_PATH) services = md[MDF::SERVICES] service_records = Hash.new services&.each do |name, props| raise MetadataError.new("Value of service #{name} must be a hash") unless props.class == Hash @@ -55,10 +56,11 @@ services: service_records, registered: registered, deregistered: deregistered, checksums: checksums, file_size: file_size, - last_modified: last_modified) + last_modified: last_modified, + physical_path: physical_path) end # Load configuration a yaml encoded configuration file def self.from_yaml(file_path, digest_algs) File.open(file_path, 'r:bom|utf-8') do |f|