lib/traject_plus/macros/xml.rb in traject_plus-1.2.1 vs lib/traject_plus/macros/xml.rb in traject_plus-1.2.2
- old
+ new
@@ -6,11 +6,9 @@
module Xml
# @param xpath [String] the xpath query expression
# @param namespaces [Hash<String,String>] The namespaces for the xpath query
# @param options [Hash] other options, may include :trim
def extract_xml(xpath, namespaces, options = {})
- Deprecation.warn(self, "extract_xml is deprecated and will be removed in the next major release. Use the Traject 3 pipeline instead")
-
lambda do |xml, accumulator, _context|
result = xml.xpath(xpath, namespaces).map(&:text)
unless options.empty?
Deprecation.warn(self, "passing options to extract_xml is deprecated and will be removed in the next major release. Use the Traject 3 pipeline instead")
end