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.
@@ -1,6 +1,6 @@
1
1
  begin
2
2
  require 'rubygems'
3
- gem 'libxml-ruby', '= 0.3.8.4'
3
+ gem 'libxml-ruby'
4
4
  require 'xml/libxml'
5
5
  rescue Exception => e
6
6
  end
@@ -20,6 +20,6 @@ module XML
20
20
  #
21
21
 
22
22
  module XMLRPC
23
- VERSION = "0.1.3"
23
+ VERSION = "0.1.4"
24
24
  end
25
25
  end
@@ -1,6 +1,6 @@
1
1
  begin
2
2
  require 'rubygems'
3
- gem 'libxml-ruby', '= 0.3.8.4'
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.3
7
- date: 2007-11-25 00:00:00 -08:00
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.3.8.4
63
+ version: 0.0.0
64
64
  version: