troelskn-handsoap 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/handsoap/parser.rb +11 -3
- metadata +4 -4
data/VERSION.yml
CHANGED
data/lib/handsoap/parser.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
require 'rubygems'
|
3
|
-
require '
|
4
|
-
require '
|
3
|
+
require 'httpclient'
|
4
|
+
require 'openssl'
|
5
5
|
require 'nokogiri'
|
6
6
|
|
7
7
|
module Handsoap
|
@@ -73,7 +73,15 @@ module Handsoap
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def self.read(url)
|
76
|
-
|
76
|
+
if url =~ /^http(s?):/
|
77
|
+
request = ::HTTPClient.new
|
78
|
+
request.ssl_config.verify_mode = ::OpenSSL::SSL::VERIFY_NONE
|
79
|
+
response = request.get(url)
|
80
|
+
xml_src = response.content
|
81
|
+
else
|
82
|
+
xml_src = Kernel.open(url).read
|
83
|
+
end
|
84
|
+
self.new(Nokogiri.XML(xml_src), url)
|
77
85
|
end
|
78
86
|
|
79
87
|
def ns
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: troelskn-handsoap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Troels Knak-Nielsen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -33,7 +33,7 @@ files:
|
|
33
33
|
- lib/handsoap/service.rb
|
34
34
|
- lib/handsoap/xml_mason.rb
|
35
35
|
- lib/handsoap/xml_query_front.rb
|
36
|
-
has_rdoc:
|
36
|
+
has_rdoc: false
|
37
37
|
homepage: http://github.com/troelskn/handsoap
|
38
38
|
post_install_message:
|
39
39
|
rdoc_options:
|
@@ -61,7 +61,7 @@ requirements:
|
|
61
61
|
rubyforge_project:
|
62
62
|
rubygems_version: 1.2.0
|
63
63
|
signing_key:
|
64
|
-
specification_version:
|
64
|
+
specification_version: 3
|
65
65
|
summary: Handsoap is a library for creating SOAP clients in Ruby
|
66
66
|
test_files: []
|
67
67
|
|