responsys-api 0.2.4 → 0.2.5

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: fbfa81074d50f8e90fc528f981870da937f65879
4
- data.tar.gz: 891c9ad978543c2a42e108760b9b925021fe7b19
3
+ metadata.gz: bdb555ebc25a9e36220f23db35cce71c6699447a
4
+ data.tar.gz: 07f3955ef5d568caf42437dfaf9497556908eb3e
5
5
  SHA512:
6
- metadata.gz: 95a079c05dfa6142ab38638b2b8706133b7e21a21b227e5419a09088b03b770fd0cf41b40bfc5c22fa4dbecab72881dc2ccce3124462ba5b6432939904380ba9
7
- data.tar.gz: 95a62332882a8584830405a11da58d23ce04b5a1946354895e2ddd1ff6730c289fa9a02c573dace68a8bf7a3261832b931c284dfae4c24ff115e82a984d949c6
6
+ metadata.gz: 6fa7ef72a3a02b7fa83c2f122d0c90b782732adb4548398f44452454a94180a8376902878e80c041cf9531b64a162af5ad5bc591a5c53c2aab83ef2473e8c6a9
7
+ data.tar.gz: a7615c3c86f6f2d778d7dd3fe376fc40af2b6e8526c527e9ae24293eb4ebe5bfb35ba110c98684b4d2d89b50322b2b160eb7bc804737b77336e02050f987bd1e
@@ -13,8 +13,11 @@ module Responsys
13
13
  def logout
14
14
  return unless logged_in?
15
15
 
16
- run_with_credentials(:logout, nil)
17
- destroy_session_objects
16
+ begin
17
+ run_with_credentials(:logout, nil)
18
+ ensure
19
+ destroy_session_objects
20
+ end
18
21
  end
19
22
 
20
23
  def logged_in?
@@ -42,4 +45,4 @@ module Responsys
42
45
  end
43
46
  end
44
47
  end
45
- end
48
+ end
@@ -16,16 +16,17 @@ module Responsys
16
16
  begin
17
17
  session.login
18
18
  response = session.run_with_credentials(action, message)
19
+ session.logout
19
20
  case response_type
20
21
  when :result
21
- Responsys::Helper.format_response_result(response, action)
22
+ Responsys::Helper.format_response_result(response, action)
22
23
  when :hash
23
- Responsys::Helper.format_response_hash(response, action)
24
+ Responsys::Helper.format_response_hash(response, action)
25
+ else
26
+ response
24
27
  end
25
28
  rescue Exception => e
26
29
  Responsys::Helper.format_response_with_errors(e)
27
- ensure
28
- session.logout
29
30
  end
30
31
  end
31
32
  end
@@ -37,4 +38,4 @@ module Responsys
37
38
  end
38
39
  end
39
40
  end
40
- end
41
+ end
@@ -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.2.4"
7
+ spec.version = "0.2.5"
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"
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.2.4
4
+ version: 0.2.5
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: 2015-09-18 00:00:00.000000000 Z
14
+ date: 2015-09-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubyntlm