exact_target_sdk 0.8.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8d1469c404cae93754961e4e5147d87d189a0a5e
4
+ data.tar.gz: f8b04291315e3703a998ea12b577dd394afe8441
5
+ SHA512:
6
+ metadata.gz: 98196108d7f50aec1242a990803c04edc99751ccf1ee4468c2bdb878e6e2d31ba7c154793ce6e315bbaa11752d68c806bc90682b589bc70f3b4563ea8a4d9085
7
+ data.tar.gz: 5de26e3cae163bf65cf1dad7c55a2b0c8a13f06a4faf5ba900df9f3f28d829c157f9a2b7d6408df6fc7225e66e5d54a904b38cd95f6cd5f5a2b62824466db49c
@@ -1,5 +1,8 @@
1
1
  = ExactTarget SDK
2
2
 
3
+ == Version 1.0.0
4
+ * Update Savon to 2.4.x
5
+
3
6
  == Version 0.8.0
4
7
  * Implemented APIProperty object
5
8
  * Implemented DataExtension object
@@ -24,11 +24,6 @@ class Client
24
24
  self.config = {
25
25
  }.merge!(ExactTargetSDK.config).merge!(options)
26
26
 
27
- Savon.configure do |c|
28
- c.logger = config[:logger]
29
- c.raise_errors = false
30
- end
31
-
32
27
  initialize_client!
33
28
  end
34
29
 
@@ -213,12 +208,15 @@ class Client
213
208
 
214
209
  # Constructs and saves the savon client using provided config.
215
210
  def initialize_client!
216
- self.client = ::Savon::Client.new do
217
- wsdl.endpoint = config[:endpoint]
218
- wsdl.namespace = config[:namespace]
219
- http.open_timeout = config[:open_timeout]
220
- http.read_timeout = config[:read_timeout]
221
- end
211
+ self.client = ::Savon.client(
212
+ :endpoint => config[:endpoint],
213
+ :namespace => config[:namespace],
214
+ :open_timeout => config[:open_timeout],
215
+ :read_timeout => config[:read_timeout],
216
+ :raise_errors => false,
217
+ :logger => config[:logger],
218
+ :log => config[:logger] && config[:logger].level == Logger::DEBUG
219
+ )
222
220
  end
223
221
 
224
222
  # Builds the SOAP request for the given method, delegating body
@@ -230,8 +228,10 @@ class Client
230
228
  # Returns the raw savon response.
231
229
  def execute_request(method)
232
230
  begin
233
- response = client.request(method) do
234
- soap.xml do |xml|
231
+ response = client.call(method) do |locals|
232
+ xml = Builder::XmlMarkup.new
233
+ xml.instruct!(:xml, :encoding => 'UTF-8')
234
+ result = begin
235
235
  xml.s :Envelope,
236
236
  "xmlns" => config[:namespace],
237
237
  "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema",
@@ -260,8 +260,11 @@ class Client
260
260
  end
261
261
  end
262
262
  end
263
+
264
+ locals.xml result
263
265
  end
264
266
 
267
+
265
268
  if response.http_error?
266
269
  raise HTTPError, response.http_error.to_s
267
270
  end
@@ -1,3 +1,3 @@
1
1
  module ExactTargetSDK
2
- VERSION = '0.8.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,93 +1,85 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: exact_target_sdk
3
- version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease:
6
- segments:
7
- - 0
8
- - 8
9
- - 0
10
- version: 0.8.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - David Dawson
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-01-30 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 7
27
- segments:
28
- - 3
29
- - 0
30
- version: "3.0"
31
- version_requirements: *id001
11
+ date: 2012-01-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
32
14
  name: activemodel
33
- prerelease: false
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
34
20
  type: :runtime
35
- - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 7
42
- segments:
43
- - 3
44
- - 0
45
- version: "3.0"
46
- version_requirements: *id002
47
- name: activesupport
48
21
  prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
49
34
  type: :runtime
50
- - !ruby/object:Gem::Dependency
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- hash: 9
57
- segments:
58
- - 0
59
- - 1
60
- version: "0.1"
61
- version_requirements: *id003
62
- name: guid
63
35
  prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guid
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.1'
64
48
  type: :runtime
65
- - !ruby/object:Gem::Dependency
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- hash: 25
72
- segments:
73
- - 0
74
- - 9
75
- version: "0.9"
76
- version_requirements: *id004
77
- name: savon
78
49
  prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: savon
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.4.0
79
62
  type: :runtime
80
- description: Provides an easy-to-use ruby interface into the ExactTarget SOAP API, using the Savon client.
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.4.0
69
+ description: Provides an easy-to-use ruby interface into the ExactTarget SOAP API,
70
+ using the Savon client.
81
71
  email: daws23@gmail.com
82
72
  executables: []
83
-
84
73
  extensions: []
85
-
86
- extra_rdoc_files:
74
+ extra_rdoc_files:
87
75
  - README.rdoc
88
76
  - CHANGELOG.rdoc
89
77
  - LICENSE.txt
90
- files:
78
+ files:
79
+ - CHANGELOG.rdoc
80
+ - LICENSE.txt
81
+ - README.rdoc
82
+ - lib/exact_target_sdk.rb
91
83
  - lib/exact_target_sdk/api_object.rb
92
84
  - lib/exact_target_sdk/api_property.rb
93
85
  - lib/exact_target_sdk/attribute.rb
@@ -115,43 +107,29 @@ files:
115
107
  - lib/exact_target_sdk/update_response.rb
116
108
  - lib/exact_target_sdk/update_result.rb
117
109
  - lib/exact_target_sdk/version.rb
118
- - lib/exact_target_sdk.rb
119
- - README.rdoc
120
- - CHANGELOG.rdoc
121
- - LICENSE.txt
122
110
  homepage: https://github.com/daws/exact_target_sdk
123
111
  licenses: []
124
-
112
+ metadata: {}
125
113
  post_install_message:
126
- rdoc_options:
127
- - --main
114
+ rdoc_options:
115
+ - "--main"
128
116
  - README.rdoc
129
- require_paths:
117
+ require_paths:
130
118
  - lib
131
- required_ruby_version: !ruby/object:Gem::Requirement
132
- none: false
133
- requirements:
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
134
121
  - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
140
- required_rubygems_version: !ruby/object:Gem::Requirement
141
- none: false
142
- requirements:
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
143
126
  - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
149
129
  requirements: []
150
-
151
130
  rubyforge_project:
152
- rubygems_version: 1.8.10
131
+ rubygems_version: 2.2.2
153
132
  signing_key:
154
- specification_version: 3
133
+ specification_version: 4
155
134
  summary: A simple wrapper for the ExactTarget SOAP API.
156
135
  test_files: []
157
-