emmy-extends 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 097746b50e4d27dba575c4fb189564590e7cea17
4
- data.tar.gz: 9aa6795db438cf2209267123f0326effe1beac3f
3
+ metadata.gz: a0f9ee9bea9ad286bcb4470f18c00287c0db4239
4
+ data.tar.gz: 9eb27aa0534a251b5682adf7dea625f440fc7bdb
5
5
  SHA512:
6
- metadata.gz: 996f3d706ed8ebae5b9f81750b26ec250e2ce6e1fdb86b31bbe12c1665f0fd3e3e8a24beb460b6d9ee207be4318284cba4b6b3afc5e979dc33bf34a2f1021308
7
- data.tar.gz: b9db1cc0221e4f6ca6b114c45bbae926ac41f173d22969cfe14be32ff7e157f11a8a5fa5faa8d597e4789ac070ffa0a20d2d70bcc013f7c815d088005d6a3c06
6
+ metadata.gz: 13ff69b825ba007f5305fa321db72faef64c722d14a730e268b6b398dc83c3312794497a922aee27bca1dc2f43e9bd6ebcab99dfe8851a9fe52d35cad781a2d3
7
+ data.tar.gz: ebdaeaa9367b60bfd67dc686c4894d7b051081c59f207ae1fe894048db7549662ef09f7785487e89b479dde2e53ba865805b5e484614c7c19896da628cecc45c
@@ -28,10 +28,10 @@ module EmmyExtends
28
28
  raise NotSupportedError, "EM-HTTP-Request does not support response streaming"
29
29
  end
30
30
 
31
- if @request.ssl
31
+ if @request.ssl?
32
32
  ssl = {
33
- cert_chain_file: @request.ssl.ca_cert_file,
34
- verify_peer: @request.ssl.verify_mode
33
+ cert_chain_file: @request.auth.ssl.ca_cert_file,
34
+ verify_peer: @request.auth.ssl.verify_mode
35
35
  }
36
36
  end
37
37
 
@@ -39,15 +39,15 @@ module EmmyExtends
39
39
 
40
40
  def setup
41
41
  @httpi.on :success do |response, httpi, conn|
42
- unless response.http_error
43
- unless response.soap_fault
44
- @response = ::Savon::Response.new(response, globals, locals)
42
+ @response = ::Savon::Response.new(response, globals, locals)
43
+ unless @response.http_error
44
+ unless @response.soap_fault
45
45
  success!(@response, self, conn)
46
46
  else
47
- error!("SOAP error (#{response.soap_fault.to_s})", self, conn)
47
+ error!("SOAP error (#{@response.soap_fault.to_s})", self, conn)
48
48
  end
49
49
  else
50
- error!("HTTP error (#{response.http.code})", self, conn)
50
+ error!("HTTP error (#{@response.http.code})", self, conn)
51
51
  end
52
52
  end
53
53
 
@@ -1,3 +1,3 @@
1
1
  module EmmyExtends
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmy-extends
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - che