Skip to content

Commit

Permalink
When adding libxml 0.5+ support, missed change for the stand alone cl…
Browse files Browse the repository at this point in the history
…ient.

git-svn-id: http://oai.rubyforge.org/svn/trunk@959 4dc5e89f-90f6-0310-ab54-a6a856e7c30e
  • Loading branch information
reeset committed Sep 15, 2008
1 parent 48c5128 commit 9a53d3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Changes
@@ -1,3 +1,9 @@
v0.0.11 Monday Sept. 15
- fixed problem in client/response dealing with libxml call that was missed during recent libxml .5+ support corrections.
- Thank you to Bjorn Hjelle for pointing out the above oversight.

v0.0.10 Friday Sept. 12
- Changed providers functionality to support proper date formatting
v0.0.9 Tue Aug 12, 2008
- change to xpath.rb file to add support to libxml-ruby 0.8+ branch.

Expand Down
2 changes: 1 addition & 1 deletion lib/oai/client/identify.rb
Expand Up @@ -22,7 +22,7 @@ def to_s

# returns REXML::Element nodes for each description section
# if the OAI::Client was configured to use libxml then you will
# instead get a XML::Node object.
# instead get a LibXML::XML::Node object.
def descriptions
return xpath_all(doc, './/Identify/description')
end
Expand Down
4 changes: 2 additions & 2 deletions lib/oai/client/response.rb
Expand Up @@ -15,9 +15,9 @@ def initialize(doc)
when 'REXML::Element'
message = error.text
code = error.attributes['code']
when 'XML::Node'
when 'LibXML::XML::Node'
message = error.content
code = error.property('code')
code = error.attributes('code')
end
raise OAI::Exception.new(message, code)
end
Expand Down

0 comments on commit 9a53d3d

Please sign in to comment.