Skip to content

Commit 412cd4d

Browse files
author
Terry Reese
committed
When adding libxml 0.5+ support, missed change for the stand alone client.
1 parent a2a5e8c commit 412cd4d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Changes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v0.0.11 Monday Sept. 15
2+
- fixed problem in client/response dealing with libxml call that was missed during recent libxml .5+ support corrections.
3+
- Thank you to Bjorn Hjelle for pointing out the above oversight.
4+
5+
v0.0.10 Friday Sept. 12
6+
- Changed providers functionality to support proper date formatting
17
v0.0.9 Tue Aug 12, 2008
28
- change to xpath.rb file to add support to libxml-ruby 0.8+ branch.
39

lib/oai/client/identify.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def to_s
2222

2323
# returns REXML::Element nodes for each description section
2424
# if the OAI::Client was configured to use libxml then you will
25-
# instead get a XML::Node object.
25+
# instead get a LibXML::XML::Node object.
2626
def descriptions
2727
return xpath_all(doc, './/Identify/description')
2828
end

lib/oai/client/response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def initialize(doc)
1515
when 'REXML::Element'
1616
message = error.text
1717
code = error.attributes['code']
18-
when 'XML::Node'
18+
when 'LibXML::XML::Node'
1919
message = error.content
20-
code = error.property('code')
20+
code = error.attributes('code')
2121
end
2222
raise OAI::Exception.new(message, code)
2323
end

0 commit comments

Comments
 (0)