mumboe-soap4r 1.5.8.2 → 1.5.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/soap/mapping/typeMap.rb +0 -1
- data/lib/soap/property.rb +1 -1
- data/lib/soap/ruby18ext.rb +13 -0
- data/lib/soap/soap.rb +1 -1
- data/lib/soap/wsdlDriver.rb +1 -1
- data/lib/xsd/xmlparser.rb +14 -8
- metadata +4 -3
data/lib/soap/mapping/typeMap.rb
CHANGED
data/lib/soap/property.rb
CHANGED
@@ -70,7 +70,7 @@ class Property
|
|
70
70
|
LINE_REGEXP = Regexp.new("^#{DEF_REGSRC}$")
|
71
71
|
def load(stream)
|
72
72
|
key_prefix = ""
|
73
|
-
stream.
|
73
|
+
stream.readlines.each_with_index do |line, lineno|
|
74
74
|
line.sub!(/\r?\n\z/u, '')
|
75
75
|
case line
|
76
76
|
when COMMENT_REGEXP
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# SOAP4R - Extensions for Ruby 1.8.X compatibility
|
2
|
+
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
3
|
+
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
|
4
|
+
# redistribute it and/or modify it under the same terms of Ruby's license;
|
5
|
+
# either the dual license version in 2003, or any later version.
|
6
|
+
|
7
|
+
unless RUBY_VERSION >= "1.9.0"
|
8
|
+
class Hash
|
9
|
+
def key(value)
|
10
|
+
index(value)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/soap/soap.rb
CHANGED
data/lib/soap/wsdlDriver.rb
CHANGED
data/lib/xsd/xmlparser.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
require 'xsd/xmlparser/parser'
|
10
|
+
require 'soap/property'
|
10
11
|
|
11
12
|
|
12
13
|
module XSD
|
@@ -50,19 +51,23 @@ end
|
|
50
51
|
end
|
51
52
|
|
52
53
|
|
54
|
+
PARSER_LIBS = [
|
55
|
+
'libxmlparser',
|
56
|
+
'xmlparser',
|
57
|
+
'xmlscanner',
|
58
|
+
'rexmlparser'
|
59
|
+
]
|
60
|
+
# Get library prefs
|
61
|
+
opt = ::SOAP::Property.loadproperty('soap/property')
|
62
|
+
use_libxml = (opt and opt['parser'] and opt['parser']['use_libxml'] and opt['parser']['use_libxml'] == 'false') ? false : true
|
53
63
|
# Try to load XML processor.
|
54
64
|
loaded = false
|
55
|
-
|
56
|
-
'xsd/xmlparser/libxmlparser',
|
57
|
-
'xsd/xmlparser/xmlparser',
|
58
|
-
'xsd/xmlparser/xmlscanner',
|
59
|
-
'xsd/xmlparser/rexmlparser'
|
60
|
-
].each do |lib|
|
65
|
+
PARSER_LIBS.each do |name|
|
61
66
|
begin
|
62
|
-
|
67
|
+
lib = "xsd/xmlparser/#{name}"
|
68
|
+
require lib unless !use_libxml && name == 'libxmlparser'
|
63
69
|
# XXX: for a workaround of rubygems' require inconsistency
|
64
70
|
# XXX: MUST BE REMOVED IN THE FUTURE
|
65
|
-
name = lib.sub(/^.*\//, '')
|
66
71
|
raise LoadError unless XSD::XMLParser.constants.find { |c|
|
67
72
|
c.to_s.downcase == name.downcase
|
68
73
|
}
|
@@ -74,3 +79,4 @@ end
|
|
74
79
|
unless loaded
|
75
80
|
raise RuntimeError.new("XML processor module not found.")
|
76
81
|
end
|
82
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumboe-soap4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.8.
|
4
|
+
version: 1.5.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Scott Diedrick (modifier: swalterd)"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-08 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/soap/rpc/rpc.rb
|
84
84
|
- lib/soap/rpc/soaplet.rb
|
85
85
|
- lib/soap/rpc/standaloneServer.rb
|
86
|
+
- lib/soap/ruby18ext.rb
|
86
87
|
- lib/soap/soap.rb
|
87
88
|
- lib/soap/streamHandler.rb
|
88
89
|
- lib/soap/wsdlDriver.rb
|
@@ -501,6 +502,6 @@ rubyforge_project:
|
|
501
502
|
rubygems_version: 1.3.5
|
502
503
|
signing_key:
|
503
504
|
specification_version: 3
|
504
|
-
summary:
|
505
|
+
summary: An implementation of SOAP 1.1 for Ruby.
|
505
506
|
test_files:
|
506
507
|
- test/runner.rb
|