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 +4 -4
- data/lib/emmy_extends/httpi/adapter.rb +3 -3
- data/lib/emmy_extends/savon/operation.rb +5 -5
- data/lib/emmy_extends/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0f9ee9bea9ad286bcb4470f18c00287c0db4239
|
4
|
+
data.tar.gz: 9eb27aa0534a251b5682adf7dea625f440fc7bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
43
|
-
|
44
|
-
|
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
|
|
data/lib/emmy_extends/version.rb
CHANGED