lib/dwc-archive/archive.rb in dwc-archive-0.9.6 vs lib/dwc-archive/archive.rb in dwc-archive-0.9.10
- old
+ new
@@ -6,11 +6,14 @@
@archive_path = archive_path
@tmp_dir = tmp_dir
@expander = DarwinCore::Expander.new(@archive_path, @tmp_dir)
@expander.unpack
if valid?
- @meta = DarwinCore::XmlReader.from_xml(open(File.join(@expander.path, 'meta.xml')))
- @eml = files.include?("eml.xml") ? DarwinCore::XmlReader.from_xml(open(File.join(@expander.path, 'eml.xml'))) : nil
+ @meta = DarwinCore::XmlReader.
+ from_xml(open(File.join(@expander.path, 'meta.xml')))
+ @eml = files.include?("eml.xml") ?
+ DarwinCore::XmlReader.
+ from_xml(open(File.join(@expander.path, 'eml.xml'))) : nil
else
clean
raise InvalidArchiveError
end
end