libxml-xmlrpc 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xml/libxml/xmlrpc.rb +2 -2
- data/lib/xml/libxml/xmlrpc/parser.rb +4 -4
- metadata +4 -4
data/lib/xml/libxml/xmlrpc.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
begin
|
2
2
|
require 'rubygems'
|
3
|
-
gem 'libxml-ruby'
|
3
|
+
gem 'libxml-ruby'
|
4
4
|
rescue Exception => e
|
5
5
|
end
|
6
6
|
|
@@ -141,8 +141,8 @@ module XML::XMLRPC
|
|
141
141
|
def self.parse(node)
|
142
142
|
method = node.find('/methodCall/methodName')
|
143
143
|
methodname = "unknown"
|
144
|
-
if method and method[0]
|
145
|
-
content = method[0].content
|
144
|
+
if method and method.to_a[0]
|
145
|
+
content = method.to_a[0].content
|
146
146
|
methodname = content
|
147
147
|
end
|
148
148
|
|
@@ -165,7 +165,7 @@ module XML::XMLRPC
|
|
165
165
|
when 'fault'
|
166
166
|
# RPC call has returned an error - find the fault and GTFO
|
167
167
|
value = Parser::ValueParser.parse(node.find('/methodResponse/fault/value'))
|
168
|
-
raise RemoteCallError, value[0][:faultCode].to_s + ": " + value[0][:faultString]
|
168
|
+
raise RemoteCallError, value.to_a[0][:faultCode].to_s + ": " + value[0][:faultString]
|
169
169
|
when 'params'
|
170
170
|
return Parser::ValueParser.parse(node.find('/methodResponse/params/param/value'))
|
171
171
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: libxml-xmlrpc
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.1.4
|
7
|
+
date: 2007-12-09 00:00:00 -08:00
|
8
8
|
summary: Provides a alternative and faster XML-RPC layer through libxml's parsing framework
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
version_requirement:
|
59
59
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
60
60
|
requirements:
|
61
|
-
- - "
|
61
|
+
- - ">"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.0.0
|
64
64
|
version:
|