lib/arx.rb in arx-1.2.0 vs lib/arx.rb in arx-1.2.1
- old
+ new
@@ -57,10 +57,10 @@
query ||= Query.new(*ids, sort_by: sort_by, sort_order: sort_order)
raise TypeError.new("Expected `query` to be an Arx::Query, got: #{query.class}") unless query.is_a? Query
yield query if block_given?
- document = Nokogiri::XML(open ENDPOINT + query.to_s + '&max_results=10000').remove_namespaces!
+ document = Nokogiri::XML(URI.open ENDPOINT + query.to_s + '&max_results=10000').remove_namespaces!
results = Paper.parse(document, single: ids.size == 1)
if results.is_a? Paper
raise Error::MissingPaper.new(ids.first) if results.title.empty?
elsif results.is_a? Array
\ No newline at end of file