ruby_ICE_client 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f8927979fda5acc7aca4afe7d51e7dda0ea195a
4
- data.tar.gz: 2b1ce0d2a6cb3eedaef3b619ce9316d7f106271a
3
+ metadata.gz: ad5f297923deae239f78ebc4d1d15ed42acbf146
4
+ data.tar.gz: c14f13b28153286b33c85e94e9987c77b8f3bdaf
5
5
  SHA512:
6
- metadata.gz: 968a9e83a2d62df610ed4ada20cc0bee83003aa94bf4dcd67b8eef85e37cc0bcdb1f2b9a901a6ff6e4cf6a6eaf65e1c08524c56c848d7e007378c444025ed330
7
- data.tar.gz: 984b5fc23f263d2b0d28c8a735928b9999c2b89c11997cbb2d0e7428ced806a149c2ee0cb26b039f11023a614385ef6cb40ff34eeda814d59e950b0207bb489d
6
+ metadata.gz: 697875289125bee31fa30ea02fd94d51ef561fffb7f25c41a449d13965cbe5dcd729cac5a34fa52ceb351689b918fbf468de033532383c0f96181a364f3af154
7
+ data.tar.gz: 7f5bd090b07c4178024f8c7139b2c268e98bf45931dbc0b0c31956777dc6008f9cdbce44f660b83e354c76da0d3a8365fe429c1a743a160d851cc2bff7ab7fdc
@@ -31,9 +31,13 @@ module RubyICEClient
31
31
  ns = xml.doc.root.add_namespace_definition 'S', 'http://www.w3.org/2003/05/soap-envelope'
32
32
  xml.doc.root.namespace = ns
33
33
  xml.doc.root.child.namespace = ns
34
+ ns2 = xml.doc.root.child.child.add_namespace_definition 'ns2', 'http://www.w3.org/2003/05/soap-envelope'
35
+ xml.doc.root.child.child.namespace = ns2
34
36
 
35
37
  uri = URI.parse url
36
38
  http = Net::HTTP.new uri.host, uri.port
39
+ http.use_ssl = true
40
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
37
41
  request = Net::HTTP::Post.new uri.path
38
42
  request.body = xml.to_xml
39
43
  response = http.request request
@@ -41,7 +45,7 @@ module RubyICEClient
41
45
  puts "#{response_xml}"
42
46
  output_message_node = response_xml.xpath '//evaluationResponse//base64EncodedPayload' if response_xml.present?
43
47
  if output_message_node.present? && output_message_node.first.present?
44
- return Base64.decode64 output_message_node.first.text
48
+ return Base64.decode64 output_message_node.first.text
45
49
  else
46
50
  return nil
47
51
  end
@@ -1,3 +1,3 @@
1
1
  module RubyICEClient
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ICE_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergei-krylov