wmls 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/lib/wmls.rb +8 -2
- metadata +3 -5
data/LICENSE
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
Copyright 2010 Wellstorm Development.
|
2
|
-
|
2
|
+
Licensed under the Apache License 2.0
|
data/lib/wmls.rb
CHANGED
@@ -166,12 +166,18 @@ END
|
|
166
166
|
req = Net::HTTP::Post.new(url.path)
|
167
167
|
req.basic_auth user, pass if user && user.length > 0
|
168
168
|
req.body_stream = io
|
169
|
+
|
170
|
+
#soap 1.1:
|
169
171
|
req.add_field('SOAPAction', soap_action)
|
170
|
-
req.content_type = '
|
172
|
+
req.content_type = 'text/xml'
|
173
|
+
|
174
|
+
#soap 1.2 would replace the above with:
|
175
|
+
#req.content_type = "application/soap+xml; action=#{soap_action}"
|
176
|
+
|
171
177
|
#req.content_length = io.stat.size
|
172
178
|
req.content_length = io.size # specific to StringIO class ? why no stat on that class?
|
173
179
|
http = Net::HTTP.new(url.host, url.port)
|
174
|
-
http.use_ssl =
|
180
|
+
http.use_ssl = (url.scheme == "https")
|
175
181
|
http.read_timeout = @timeout # secs
|
176
182
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
177
183
|
res = http.start {|http2| http2.request(req) }
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: wmls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Hugh Winkler
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-10-16 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
16
|
description: Wmls calls GetFromStore, AddToStore, UpdateInStore, or DeleteFromStore on a WITSML server.
|
@@ -27,7 +26,6 @@ files:
|
|
27
26
|
- LICENSE
|
28
27
|
- lib/wmls.rb
|
29
28
|
- bin/wmls
|
30
|
-
has_rdoc: true
|
31
29
|
homepage: https://github.com/wellstorm/wmls.rb/
|
32
30
|
licenses: []
|
33
31
|
|
@@ -51,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
49
|
requirements: []
|
52
50
|
|
53
51
|
rubyforge_project:
|
54
|
-
rubygems_version: 1.
|
52
|
+
rubygems_version: 1.8.11
|
55
53
|
signing_key:
|
56
54
|
specification_version: 3
|
57
55
|
summary: Calls GetFromStore, AddToStore, UpdateInStore, or DeleteFromStore on a WITSML server.
|