responsys-api 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -1
- data/lib/responsys/api/client.rb +4 -2
- data/responsys-api.gemspec +1 -1
- data/spec/api/client_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmRlYWRjMDA4YTliNzE3NGY2NzIzZGUyYjM3OTkyNjUyNGFkZmI1Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjA4Nzc5MzFmMzVkZmNkYTlmOWZkZTZjNWMxMDM0NzhkOGQ0NDVjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTNiYzIzYjNjYWRmZDYyYWEyZWE3N2I1ODQxNmEwOTYzY2Q1M2EyNWE1NWZk
|
10
|
+
ZjI2MGRmODMzZDc2OGMzZTdhM2NmMTVhOGQwZGRhN2Y5OWJkNThiNDBhYzg3
|
11
|
+
Njk2NTZhOGMwMDIxZGJjNTBlY2Q2YWM1OGZhNGFlMGM3MDZiNzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzZmYzk1NTkwOGMyOTRmOTUyYjYxOWY1NTdkNzM1NDgyNjFlZjhkNjVkZjgy
|
14
|
+
ZDkyYjU0M2E3MzYxNjc2YjE2YzAxZjUyOWVkMTk4MmUyYzA5MTBlMGU5NjVj
|
15
|
+
Njg5NGYxOWEyZjc5ZjhmZGRjYTFhNGZkMDU4MDZlODE0ODJmODE=
|
data/README.md
CHANGED
@@ -26,7 +26,8 @@ Responsys.configure do |config|
|
|
26
26
|
username: "your_responsys_username",
|
27
27
|
password: "your_responsys_password",
|
28
28
|
wsdl: "https://wsXXXX.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl",
|
29
|
-
debug: false
|
29
|
+
debug: false,
|
30
|
+
ssl_version: :TLSv1
|
30
31
|
}
|
31
32
|
end
|
32
33
|
```
|
data/lib/responsys/api/client.rb
CHANGED
@@ -20,10 +20,12 @@ module Responsys
|
|
20
20
|
password: settings[:password]
|
21
21
|
}
|
22
22
|
|
23
|
+
ssl_version = settings[:ssl_version] || :TLSv1
|
24
|
+
|
23
25
|
if settings[:debug]
|
24
|
-
@client = Savon.client(wsdl: settings[:wsdl], element_form_default: :qualified, log_level: :debug, log: true, pretty_print_xml: true)
|
26
|
+
@client = Savon.client(wsdl: settings[:wsdl], element_form_default: :qualified, ssl_version: ssl_version, log_level: :debug, log: true, pretty_print_xml: true)
|
25
27
|
else
|
26
|
-
@client = Savon.client(wsdl: settings[:wsdl], element_form_default: :qualified)
|
28
|
+
@client = Savon.client(wsdl: settings[:wsdl], element_form_default: :qualified, ssl_version: ssl_version)
|
27
29
|
end
|
28
30
|
|
29
31
|
login
|
data/responsys-api.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "responsys-api"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.8"
|
8
8
|
spec.authors = ["Dan DeMeyere", "Florian Lorrain", "Morgan Griggs", "Mike Rocco"]
|
9
9
|
spec.email = ["dan@thredup.com", "florian.lorrain@thredup.com", "morgan@thredup.com", "michael.rocco@thredup.com"]
|
10
10
|
spec.description = "A gem to integrate with the Responsys SOAP API"
|
data/spec/api/client_spec.rb
CHANGED
@@ -71,7 +71,7 @@ describe Responsys::Api::Client do
|
|
71
71
|
allow(response).to receive(:body).and_return(body)
|
72
72
|
allow(response).to receive(:http).and_return(double("cookies", cookies: cookies))
|
73
73
|
|
74
|
-
allow(Savon).to receive(:client).with({ wsdl: "https://wsxxxx.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl", element_form_default: :qualified }).and_return(savon_client) #Avoid the verification of the wsdl
|
74
|
+
allow(Savon).to receive(:client).with({ wsdl: "https://wsxxxx.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl", element_form_default: :qualified, ssl_version: :TLSv1}).and_return(savon_client) #Avoid the verification of the wsdl
|
75
75
|
allow_any_instance_of(Responsys::Api::Client).to receive(:run).with("login", @credentials).and_return(response) #Verification of credentials
|
76
76
|
allow(savon_client).to receive(:call).with(:login, @credentials ).and_return(response) #Actual login call
|
77
77
|
|
@@ -88,7 +88,7 @@ describe Responsys::Api::Client do
|
|
88
88
|
|
89
89
|
context "logout" do
|
90
90
|
before(:example) do
|
91
|
-
allow(Savon).to receive(:client).with({ wsdl: "https://wsxxxx.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl", element_form_default: :qualified }).and_return(savon_client) #Avoid the verification of the wsdl
|
91
|
+
allow(Savon).to receive(:client).with({ wsdl: "https://wsxxxx.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl", element_form_default: :qualified, ssl_version: :TLSv1}).and_return(savon_client) #Avoid the verification of the wsdl
|
92
92
|
allow_any_instance_of(Responsys::Api::Client).to receive(:login).and_return(nil) #Avoid credentials checking
|
93
93
|
|
94
94
|
Singleton.__init__(Responsys::Api::Client)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: responsys-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan DeMeyere
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rubyntlm
|