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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjM2NTYyYWUzMzczMmRiMmE4ZmY4NGU3MmNjYmE2OGY5M2RkOTA5ZQ==
4
+ ZmRlYWRjMDA4YTliNzE3NGY2NzIzZGUyYjM3OTkyNjUyNGFkZmI1Yw==
5
5
  data.tar.gz: !binary |-
6
- ZWJhNjNkOGFhY2I4ZTkxN2M4YzZhYjMxZWIxMjU5MzA4ODI4NTRjNA==
6
+ MjA4Nzc5MzFmMzVkZmNkYTlmOWZkZTZjNWMxMDM0NzhkOGQ0NDVjNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWM5ZTgyM2NkMzEwOGI0Y2JjMmNlY2QwOWFjMjIwZjY3MDY3Yjg1MGE3Y2Jl
10
- ZDcxYTkyMDc2MzEzMzQ3ZDE0NjQ5YzgwZDgwNGZlNjk2OWVkMWExNjEyMzY3
11
- OTg4YTNlMjM5M2I4MzE1MDM0M2Y2MTI2NmZmYzU2YTI2Zjk3ZDU=
9
+ NTNiYzIzYjNjYWRmZDYyYWEyZWE3N2I1ODQxNmEwOTYzY2Q1M2EyNWE1NWZk
10
+ ZjI2MGRmODMzZDc2OGMzZTdhM2NmMTVhOGQwZGRhN2Y5OWJkNThiNDBhYzg3
11
+ Njk2NTZhOGMwMDIxZGJjNTBlY2Q2YWM1OGZhNGFlMGM3MDZiNzA=
12
12
  data.tar.gz: !binary |-
13
- Y2M2M2VmMjE1YzkyYjhiYjcwOTNkNzk4YmUxOTliMmI4ZmFlYzNmZmRiM2M5
14
- ZTI5MDZlMGQ4ZTkzMmJmMWI1ZTVlNjFmZmFiZjM2NWRjYmU3NmViYmZlODg0
15
- MGRiZWI2MjIyMjYwYTA4MTkxZjZlMDZjZjUyZmQzM2FhZDJiZjY=
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
  ```
@@ -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
@@ -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"
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"
@@ -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.7
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-09-26 00:00:00.000000000 Z
14
+ date: 2014-11-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubyntlm