troelskn-handsoap 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/handsoap/parser.rb +11 -3
  3. metadata +4 -4
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 3
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require 'rubygems'
3
- require 'open-uri'
4
- require 'uri'
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
- self.new(Nokogiri.XML(Kernel.open(url).read), url)
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.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-24 00:00:00 -07:00
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: true
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: 2
64
+ specification_version: 3
65
65
  summary: Handsoap is a library for creating SOAP clients in Ruby
66
66
  test_files: []
67
67