exact-target-api 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3b6bd3ed15cda28cfe2f05f7e89c35a03bbc472
4
- data.tar.gz: 636380464fa77643163b5a54f422683e6bfa84c4
3
+ metadata.gz: f16b1465275075f5b2b956702c000af1872935ef
4
+ data.tar.gz: 04bb5390afa4c61ba19e5ea212b792bdab596b6c
5
5
  SHA512:
6
- metadata.gz: 7b2a89d7eb6d1262eee81b4f018cf2bfc954f2fc9fd2ba61e337ad2421c08e1a5d4c6ce671528d402cd59f93a304fcdbfbe1758cf5460678ec6b2ca39b9541c0
7
- data.tar.gz: bf9efa06eac1b73196e8d910623ad662029f5db016f300844cb00d3f5ae547f9ba164ff82e41f2d649a7193e55189a2b319e1df28f87136c176ce72f3d982e2e
6
+ metadata.gz: 5a6b1736bdada888b8649f167e1093267f5c6d56f048ddbf71eb430b05e2043d219d00411948838a33dacbd02a66a40aa3dae0cc562fe573643c5939cee29acd
7
+ data.tar.gz: f3a477594d4239dab32fa99880b5c9c24a5db0b1a7bbdfd2ba75d0d271edcb84715cf4d2dda14b8fca067b901b85acd0ccb4d5e9eea76193b6947743471112a6
@@ -39,6 +39,12 @@ module ET
39
39
  end
40
40
 
41
41
  res = post(props)
42
+
43
+ # The subscriber is already on the list
44
+ if !res.status && res.results[0][:error_code] == "12014"
45
+ res = patch(props)
46
+ end
47
+
42
48
  if assign_values(res)
43
49
  @email = email
44
50
  @list_id = list_id
@@ -1,3 +1,3 @@
1
1
  module ET
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exact-target-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shapiotko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-26 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon