constantcontact 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ describe ConstantContact::Services::LibraryService do
17
17
  json_response = load_file('library_info_response.json')
18
18
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
19
19
 
20
- response = RestClient::Response.create(json_response, net_http_resp, {}, @request)
20
+ response =RestClient::Response.create(json_response, net_http_resp, @request)
21
21
  RestClient.stub(:get).and_return(response)
22
22
 
23
23
  info = ConstantContact::Services::LibraryService.new(@client).get_library_info()
@@ -31,7 +31,7 @@ describe ConstantContact::Services::LibraryService do
31
31
  json_response = load_file('library_folders_response.json')
32
32
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
33
33
 
34
- response = RestClient::Response.create(json_response, net_http_resp, {}, @request)
34
+ response =RestClient::Response.create(json_response, net_http_resp, @request)
35
35
  RestClient.stub(:get).and_return(response)
36
36
 
37
37
  folders = ConstantContact::Services::LibraryService.new(@client).get_library_folders({:limit => 2})
@@ -46,7 +46,7 @@ describe ConstantContact::Services::LibraryService do
46
46
  json = load_file('library_folder_response.json')
47
47
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
48
48
 
49
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
49
+ response = RestClient::Response.create(json, net_http_resp, @request)
50
50
  RestClient.stub(:post).and_return(response)
51
51
  new_folder = ConstantContact::Components::LibraryFolder.create(JSON.parse(json))
52
52
 
@@ -61,7 +61,7 @@ describe ConstantContact::Services::LibraryService do
61
61
  json = load_file('library_folder_response.json')
62
62
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
63
63
 
64
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
64
+ response = RestClient::Response.create(json, net_http_resp, @request)
65
65
  RestClient.stub(:get).and_return(response)
66
66
 
67
67
  folder = ConstantContact::Services::LibraryService.new(@client).get_library_folder(6)
@@ -75,7 +75,7 @@ describe ConstantContact::Services::LibraryService do
75
75
  json = load_file('library_folder_response.json')
76
76
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
77
77
 
78
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
78
+ response = RestClient::Response.create(json, net_http_resp, @request)
79
79
  RestClient.stub(:put).and_return(response)
80
80
  folder = ConstantContact::Components::LibraryFolder.create(JSON.parse(json))
81
81
 
@@ -90,11 +90,11 @@ describe ConstantContact::Services::LibraryService do
90
90
  folder_id = 6
91
91
  net_http_resp = Net::HTTPResponse.new(1.0, 204, 'No Content')
92
92
 
93
- response = RestClient::Response.create('', net_http_resp, {}, @request)
93
+ response = RestClient::Response.create('', net_http_resp, @request)
94
94
  RestClient.stub(:delete).and_return(response)
95
95
 
96
96
  result = ConstantContact::Services::LibraryService.new(@client).delete_library_folder(folder_id)
97
- result.should be_true
97
+ expect(result).to eq true
98
98
  end
99
99
  end
100
100
 
@@ -103,7 +103,7 @@ describe ConstantContact::Services::LibraryService do
103
103
  json = load_file('library_trash_response.json')
104
104
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
105
105
 
106
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
106
+ response = RestClient::Response.create(json, net_http_resp, @request)
107
107
  RestClient.stub(:get).and_return(response)
108
108
 
109
109
  files = ConstantContact::Services::LibraryService.new(@client).get_library_trash({:sort_by => 'SIZE_DESC'})
@@ -117,11 +117,11 @@ describe ConstantContact::Services::LibraryService do
117
117
  it "permanently deletes all files in the Trash folder" do
118
118
  net_http_resp = Net::HTTPResponse.new(1.0, 204, 'No Content')
119
119
 
120
- response = RestClient::Response.create('', net_http_resp, {}, @request)
120
+ response = RestClient::Response.create('', net_http_resp, @request)
121
121
  RestClient.stub(:delete).and_return(response)
122
122
 
123
123
  result = ConstantContact::Services::LibraryService.new(@client).delete_library_trash()
124
- result.should be_true
124
+ expect(result).to eq true
125
125
  end
126
126
  end
127
127
 
@@ -130,7 +130,7 @@ describe ConstantContact::Services::LibraryService do
130
130
  json_response = load_file('library_files_response.json')
131
131
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
132
132
 
133
- response = RestClient::Response.create(json_response, net_http_resp, {}, @request)
133
+ response =RestClient::Response.create(json_response, net_http_resp, @request)
134
134
  RestClient.stub(:get).and_return(response)
135
135
 
136
136
  files = ConstantContact::Services::LibraryService.new(@client).get_library_files({:type => 'ALL'})
@@ -146,7 +146,7 @@ describe ConstantContact::Services::LibraryService do
146
146
  json_response = load_file('library_files_by_folder_response.json')
147
147
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
148
148
 
149
- response = RestClient::Response.create(json_response, net_http_resp, {}, @request)
149
+ response =RestClient::Response.create(json_response, net_http_resp, @request)
150
150
  RestClient.stub(:get).and_return(response)
151
151
 
152
152
  files = ConstantContact::Services::LibraryService.new(@client).get_library_files_by_folder(folder_id, {:limit => 10})
@@ -161,7 +161,7 @@ describe ConstantContact::Services::LibraryService do
161
161
  json = load_file('library_file_response.json')
162
162
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
163
163
 
164
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
164
+ response = RestClient::Response.create(json, net_http_resp, @request)
165
165
  RestClient.stub(:get).and_return(response)
166
166
 
167
167
  file = ConstantContact::Services::LibraryService.new(@client).get_library_file(6)
@@ -181,7 +181,7 @@ describe ConstantContact::Services::LibraryService do
181
181
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
182
182
  net_http_resp.add_field('Location', 'https://api.d1.constantcontact.com/v2/library/files/123456789')
183
183
 
184
- response = RestClient::Response.create("", net_http_resp, {}, @request)
184
+ response = RestClient::Response.create("", net_http_resp, @request)
185
185
  RestClient.stub(:post).and_return(response)
186
186
 
187
187
  response = ConstantContact::Services::LibraryService.new(@client).add_library_file(file_name, folder_id, description, source, file_type, contents)
@@ -195,7 +195,7 @@ describe ConstantContact::Services::LibraryService do
195
195
  json = load_file('library_file_response.json')
196
196
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
197
197
 
198
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
198
+ response = RestClient::Response.create(json, net_http_resp, @request)
199
199
  RestClient.stub(:put).and_return(response)
200
200
  file = ConstantContact::Components::LibraryFile.create(JSON.parse(json))
201
201
 
@@ -210,11 +210,11 @@ describe ConstantContact::Services::LibraryService do
210
210
  file_id = '6, 7'
211
211
  net_http_resp = Net::HTTPResponse.new(1.0, 204, 'No Content')
212
212
 
213
- response = RestClient::Response.create('', net_http_resp, {}, @request)
213
+ response = RestClient::Response.create('', net_http_resp, @request)
214
214
  RestClient.stub(:delete).and_return(response)
215
215
 
216
216
  result = ConstantContact::Services::LibraryService.new(@client).delete_library_file(file_id)
217
- result.should be_true
217
+ expect(result).to eq true
218
218
  end
219
219
  end
220
220
 
@@ -224,7 +224,7 @@ describe ConstantContact::Services::LibraryService do
224
224
  json = load_file('library_files_upload_status_response.json')
225
225
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
226
226
 
227
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
227
+ response = RestClient::Response.create(json, net_http_resp, @request)
228
228
  RestClient.stub(:get).and_return(response)
229
229
 
230
230
  statuses = ConstantContact::Services::LibraryService.new(@client).get_library_files_upload_status(file_id)
@@ -241,7 +241,7 @@ describe ConstantContact::Services::LibraryService do
241
241
  json = load_file('library_files_move_results_response.json')
242
242
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
243
243
 
244
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
244
+ response = RestClient::Response.create(json, net_http_resp, @request)
245
245
  RestClient.stub(:put).and_return(response)
246
246
 
247
247
  results = ConstantContact::Services::LibraryService.new(@client).move_library_files(folder_id, file_id)
@@ -17,7 +17,7 @@ describe ConstantContact::Services::ListService do
17
17
  json_response = load_file('lists_response.json')
18
18
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
19
19
 
20
- response = RestClient::Response.create(json_response, net_http_resp, {}, @request)
20
+ response =RestClient::Response.create(json_response, net_http_resp, @request)
21
21
  RestClient.stub(:get).and_return(response)
22
22
 
23
23
  lists = ConstantContact::Services::ListService.new(@client).get_lists()
@@ -32,7 +32,7 @@ describe ConstantContact::Services::ListService do
32
32
  json = load_file('list_response.json')
33
33
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
34
34
 
35
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
35
+ response = RestClient::Response.create(json, net_http_resp, @request)
36
36
  RestClient.stub(:get).and_return(response)
37
37
 
38
38
  list = ConstantContact::Services::ListService.new(@client).get_list(1)
@@ -46,7 +46,7 @@ describe ConstantContact::Services::ListService do
46
46
  json = load_file('list_response.json')
47
47
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
48
48
 
49
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
49
+ response = RestClient::Response.create(json, net_http_resp, @request)
50
50
  RestClient.stub(:post).and_return(response)
51
51
  new_list = ConstantContact::Components::ContactList.create(JSON.parse(json))
52
52
 
@@ -61,7 +61,7 @@ describe ConstantContact::Services::ListService do
61
61
  json = load_file('list_response.json')
62
62
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
63
63
 
64
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
64
+ response = RestClient::Response.create(json, net_http_resp, @request)
65
65
  RestClient.stub(:put).and_return(response)
66
66
  list = ConstantContact::Components::ContactList.create(JSON.parse(json))
67
67
 
@@ -77,7 +77,7 @@ describe ConstantContact::Services::ListService do
77
77
  json_contacts = load_file('contacts_response.json')
78
78
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
79
79
 
80
- response = RestClient::Response.create(json_contacts, net_http_resp, {}, @request)
80
+ response =RestClient::Response.create(json_contacts, net_http_resp, @request)
81
81
  RestClient.stub(:get).and_return(response)
82
82
  list = ConstantContact::Components::ContactList.create(JSON.parse(json_list))
83
83
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constantcontact
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ConstantContact
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-31 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -16,74 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.6.7
19
+ version: '2.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.6'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.6.7
26
+ version: '2.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: json
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '1.8'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.8.1
33
+ version: '2.1'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '1.8'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.8.1
53
- - !ruby/object:Gem::Dependency
54
- name: mime-types
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '2.4'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 2.4.1
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '2.4'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 2.4.1
40
+ version: '2.1'
73
41
  - !ruby/object:Gem::Dependency
74
42
  name: rspec
75
43
  requirement: !ruby/object:Gem::Requirement
76
44
  requirements:
77
45
  - - "~>"
78
46
  - !ruby/object:Gem::Version
79
- version: '2.14'
47
+ version: '3.6'
80
48
  type: :development
81
49
  prerelease: false
82
50
  version_requirements: !ruby/object:Gem::Requirement
83
51
  requirements:
84
52
  - - "~>"
85
53
  - !ruby/object:Gem::Version
86
- version: '2.14'
54
+ version: '3.6'
87
55
  description: Ruby library for interactions with Constant Contact v2 API
88
56
  email: webservices@constantcontact.com
89
57
  executables: []
@@ -215,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
183
  version: '0'
216
184
  requirements: []
217
185
  rubyforge_project:
218
- rubygems_version: 2.6.10
186
+ rubygems_version: 2.6.12
219
187
  signing_key:
220
188
  specification_version: 4
221
189
  summary: Constant Contact SDK for Ruby