vericite_api 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vericite_client/api/default_api.rb +46 -40
- data/lib/vericite_client/api_client.rb +10 -9
- data/lib/vericite_client/models/external_content_upload_info.rb +28 -17
- data/spec/api/default_api_spec.rb +9 -7
- data/spec/models/external_content_upload_info_spec.rb +7 -2
- data/vericite_api-1.4.0.gem +0 -0
- data/vericite_api.gemspec +1 -1
- metadata +36 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09ba35cbdeec1035a0ef4589d113995904404f5
|
4
|
+
data.tar.gz: 2b4d61afc5d8030ebdb9b3c8dcf4959b13143c35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30bc57e72a63603e36e9f06a7aab19199cb2b2edf43ab949fdccaa803746175bdb090f738b1425e3e7326412dd0b7fc691ec1a775fcd4963f56690c6d778760a
|
7
|
+
data.tar.gz: 0fc95accc0df2fe107b25ceef7ee0e2154f2b4f84f58325f1c89e567926fe6678120286cd86ea0427cc3f2759cd5f54ec8d90902b24a0cdf134ab25baf8cf016
|
@@ -12,54 +12,57 @@ module VeriCiteClient
|
|
12
12
|
@api_client = api_client
|
13
13
|
end
|
14
14
|
|
15
|
-
#
|
15
|
+
#
|
16
16
|
# Create/update assignment
|
17
17
|
# @param context_id Context ID
|
18
18
|
# @param assignment_id ID of assignment
|
19
19
|
# @param consumer the consumer
|
20
20
|
# @param consumer_secret the consumer secret
|
21
|
-
# @param assignment_data
|
21
|
+
# @param assignment_data
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
23
24
|
# @return [Array<ExternalContentUploadInfo>]
|
24
25
|
def assignments_context_id_assignment_id_post(context_id, assignment_id, consumer, consumer_secret, assignment_data, opts = {})
|
25
26
|
data, status_code, headers = assignments_context_id_assignment_id_post_with_http_info(context_id, assignment_id, consumer, consumer_secret, assignment_data, opts)
|
26
27
|
return data, status_code, headers
|
27
28
|
end
|
28
29
|
|
29
|
-
#
|
30
|
+
#
|
30
31
|
# Create/update assignment
|
31
32
|
# @param context_id Context ID
|
32
33
|
# @param assignment_id ID of assignment
|
33
34
|
# @param consumer the consumer
|
34
35
|
# @param consumer_secret the consumer secret
|
35
|
-
# @param assignment_data
|
36
|
+
# @param assignment_data
|
36
37
|
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
37
39
|
# @return [Array<(Array<ExternalContentUploadInfo>, Fixnum, Hash)>] Array<ExternalContentUploadInfo> data, response status code and response headers
|
38
40
|
def assignments_context_id_assignment_id_post_with_http_info(context_id, assignment_id, consumer, consumer_secret, assignment_data, opts = {})
|
39
41
|
if @api_client.config.debugging
|
40
42
|
@api_client.config.logger.debug "Calling API: DefaultApi#assignments_context_id_assignment_id_post ..."
|
41
43
|
end
|
42
|
-
|
44
|
+
|
43
45
|
# verify the required parameter 'context_id' is set
|
44
46
|
fail "Missing the required parameter 'context_id' when calling assignments_context_id_assignment_id_post" if context_id.nil?
|
45
|
-
|
47
|
+
|
46
48
|
# verify the required parameter 'assignment_id' is set
|
47
49
|
fail "Missing the required parameter 'assignment_id' when calling assignments_context_id_assignment_id_post" if assignment_id.nil?
|
48
|
-
|
50
|
+
|
49
51
|
# verify the required parameter 'consumer' is set
|
50
52
|
fail "Missing the required parameter 'consumer' when calling assignments_context_id_assignment_id_post" if consumer.nil?
|
51
|
-
|
53
|
+
|
52
54
|
# verify the required parameter 'consumer_secret' is set
|
53
55
|
fail "Missing the required parameter 'consumer_secret' when calling assignments_context_id_assignment_id_post" if consumer_secret.nil?
|
54
|
-
|
56
|
+
|
55
57
|
# verify the required parameter 'assignment_data' is set
|
56
58
|
fail "Missing the required parameter 'assignment_data' when calling assignments_context_id_assignment_id_post" if assignment_data.nil?
|
57
|
-
|
59
|
+
|
58
60
|
# resource path
|
59
61
|
local_var_path = "/assignments/{contextID}/{assignmentID}".sub('{format}','json').sub('{' + 'contextID' + '}', context_id.to_s).sub('{' + 'assignmentID' + '}', assignment_id.to_s)
|
60
62
|
|
61
63
|
# query parameters
|
62
64
|
query_params = {}
|
65
|
+
query_params[:'encrypted'] = opts[:'encrypted'] if !opts[:'encrypted'].nil?
|
63
66
|
|
64
67
|
# header parameters
|
65
68
|
header_params = {}
|
@@ -79,7 +82,7 @@ module VeriCiteClient
|
|
79
82
|
|
80
83
|
# http body (model)
|
81
84
|
post_body = @api_client.object_to_http_body(assignment_data)
|
82
|
-
|
85
|
+
|
83
86
|
auth_names = []
|
84
87
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
85
88
|
:header_params => header_params,
|
@@ -94,7 +97,7 @@ module VeriCiteClient
|
|
94
97
|
return data, status_code, headers
|
95
98
|
end
|
96
99
|
|
97
|
-
#
|
100
|
+
#
|
98
101
|
# Retrieves scores for the reports
|
99
102
|
# @param context_id Context ID
|
100
103
|
# @param consumer the consumer
|
@@ -109,7 +112,7 @@ module VeriCiteClient
|
|
109
112
|
return data, status_code, headers
|
110
113
|
end
|
111
114
|
|
112
|
-
#
|
115
|
+
#
|
113
116
|
# Retrieves scores for the reports
|
114
117
|
# @param context_id Context ID
|
115
118
|
# @param consumer the consumer
|
@@ -123,16 +126,16 @@ module VeriCiteClient
|
|
123
126
|
if @api_client.config.debugging
|
124
127
|
@api_client.config.logger.debug "Calling API: DefaultApi#reports_scores_context_id_get ..."
|
125
128
|
end
|
126
|
-
|
129
|
+
|
127
130
|
# verify the required parameter 'context_id' is set
|
128
131
|
fail "Missing the required parameter 'context_id' when calling reports_scores_context_id_get" if context_id.nil?
|
129
|
-
|
132
|
+
|
130
133
|
# verify the required parameter 'consumer' is set
|
131
134
|
fail "Missing the required parameter 'consumer' when calling reports_scores_context_id_get" if consumer.nil?
|
132
|
-
|
135
|
+
|
133
136
|
# verify the required parameter 'consumer_secret' is set
|
134
137
|
fail "Missing the required parameter 'consumer_secret' when calling reports_scores_context_id_get" if consumer_secret.nil?
|
135
|
-
|
138
|
+
|
136
139
|
# resource path
|
137
140
|
local_var_path = "/reports/scores/{contextID}".sub('{format}','json').sub('{' + 'contextID' + '}', context_id.to_s)
|
138
141
|
|
@@ -160,7 +163,7 @@ module VeriCiteClient
|
|
160
163
|
|
161
164
|
# http body (model)
|
162
165
|
post_body = nil
|
163
|
-
|
166
|
+
|
164
167
|
auth_names = []
|
165
168
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
166
169
|
:header_params => header_params,
|
@@ -175,59 +178,62 @@ module VeriCiteClient
|
|
175
178
|
return data, status_code, headers
|
176
179
|
end
|
177
180
|
|
178
|
-
#
|
181
|
+
#
|
179
182
|
# Request a file submission
|
180
183
|
# @param context_id Context ID
|
181
184
|
# @param assignment_id ID of assignment
|
182
185
|
# @param user_id ID of user
|
183
186
|
# @param consumer the consumer
|
184
187
|
# @param consumer_secret the consumer secret
|
185
|
-
# @param report_meta_data
|
188
|
+
# @param report_meta_data
|
186
189
|
# @param [Hash] opts the optional parameters
|
190
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
187
191
|
# @return [Array<ExternalContentUploadInfo>]
|
188
192
|
def reports_submit_request_context_id_assignment_id_user_id_post(context_id, assignment_id, user_id, consumer, consumer_secret, report_meta_data, opts = {})
|
189
193
|
data, status_code, headers = reports_submit_request_context_id_assignment_id_user_id_post_with_http_info(context_id, assignment_id, user_id, consumer, consumer_secret, report_meta_data, opts)
|
190
194
|
return data, status_code, headers
|
191
195
|
end
|
192
196
|
|
193
|
-
#
|
197
|
+
#
|
194
198
|
# Request a file submission
|
195
199
|
# @param context_id Context ID
|
196
200
|
# @param assignment_id ID of assignment
|
197
201
|
# @param user_id ID of user
|
198
202
|
# @param consumer the consumer
|
199
203
|
# @param consumer_secret the consumer secret
|
200
|
-
# @param report_meta_data
|
204
|
+
# @param report_meta_data
|
201
205
|
# @param [Hash] opts the optional parameters
|
206
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
202
207
|
# @return [Array<(Array<ExternalContentUploadInfo>, Fixnum, Hash)>] Array<ExternalContentUploadInfo> data, response status code and response headers
|
203
208
|
def reports_submit_request_context_id_assignment_id_user_id_post_with_http_info(context_id, assignment_id, user_id, consumer, consumer_secret, report_meta_data, opts = {})
|
204
209
|
if @api_client.config.debugging
|
205
210
|
@api_client.config.logger.debug "Calling API: DefaultApi#reports_submit_request_context_id_assignment_id_user_id_post ..."
|
206
211
|
end
|
207
|
-
|
212
|
+
|
208
213
|
# verify the required parameter 'context_id' is set
|
209
214
|
fail "Missing the required parameter 'context_id' when calling reports_submit_request_context_id_assignment_id_user_id_post" if context_id.nil?
|
210
|
-
|
215
|
+
|
211
216
|
# verify the required parameter 'assignment_id' is set
|
212
217
|
fail "Missing the required parameter 'assignment_id' when calling reports_submit_request_context_id_assignment_id_user_id_post" if assignment_id.nil?
|
213
|
-
|
218
|
+
|
214
219
|
# verify the required parameter 'user_id' is set
|
215
220
|
fail "Missing the required parameter 'user_id' when calling reports_submit_request_context_id_assignment_id_user_id_post" if user_id.nil?
|
216
|
-
|
221
|
+
|
217
222
|
# verify the required parameter 'consumer' is set
|
218
223
|
fail "Missing the required parameter 'consumer' when calling reports_submit_request_context_id_assignment_id_user_id_post" if consumer.nil?
|
219
|
-
|
224
|
+
|
220
225
|
# verify the required parameter 'consumer_secret' is set
|
221
226
|
fail "Missing the required parameter 'consumer_secret' when calling reports_submit_request_context_id_assignment_id_user_id_post" if consumer_secret.nil?
|
222
|
-
|
227
|
+
|
223
228
|
# verify the required parameter 'report_meta_data' is set
|
224
229
|
fail "Missing the required parameter 'report_meta_data' when calling reports_submit_request_context_id_assignment_id_user_id_post" if report_meta_data.nil?
|
225
|
-
|
230
|
+
|
226
231
|
# resource path
|
227
232
|
local_var_path = "/reports/submit/request/{contextID}/{assignmentID}/{userID}".sub('{format}','json').sub('{' + 'contextID' + '}', context_id.to_s).sub('{' + 'assignmentID' + '}', assignment_id.to_s).sub('{' + 'userID' + '}', user_id.to_s)
|
228
233
|
|
229
234
|
# query parameters
|
230
235
|
query_params = {}
|
236
|
+
query_params[:'encrypted'] = opts[:'encrypted'] if !opts[:'encrypted'].nil?
|
231
237
|
|
232
238
|
# header parameters
|
233
239
|
header_params = {}
|
@@ -247,7 +253,7 @@ module VeriCiteClient
|
|
247
253
|
|
248
254
|
# http body (model)
|
249
255
|
post_body = @api_client.object_to_http_body(report_meta_data)
|
250
|
-
|
256
|
+
|
251
257
|
auth_names = []
|
252
258
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
253
259
|
:header_params => header_params,
|
@@ -262,7 +268,7 @@ module VeriCiteClient
|
|
262
268
|
return data, status_code, headers
|
263
269
|
end
|
264
270
|
|
265
|
-
#
|
271
|
+
#
|
266
272
|
# Retrieves URLS for the reports
|
267
273
|
# @param context_id Context ID
|
268
274
|
# @param assignment_id_filter ID of assignment to filter results on
|
@@ -279,7 +285,7 @@ module VeriCiteClient
|
|
279
285
|
return data, status_code, headers
|
280
286
|
end
|
281
287
|
|
282
|
-
#
|
288
|
+
#
|
283
289
|
# Retrieves URLS for the reports
|
284
290
|
# @param context_id Context ID
|
285
291
|
# @param assignment_id_filter ID of assignment to filter results on
|
@@ -295,25 +301,25 @@ module VeriCiteClient
|
|
295
301
|
if @api_client.config.debugging
|
296
302
|
@api_client.config.logger.debug "Calling API: DefaultApi#reports_urls_context_id_get ..."
|
297
303
|
end
|
298
|
-
|
304
|
+
|
299
305
|
# verify the required parameter 'context_id' is set
|
300
306
|
fail "Missing the required parameter 'context_id' when calling reports_urls_context_id_get" if context_id.nil?
|
301
|
-
|
307
|
+
|
302
308
|
# verify the required parameter 'assignment_id_filter' is set
|
303
309
|
fail "Missing the required parameter 'assignment_id_filter' when calling reports_urls_context_id_get" if assignment_id_filter.nil?
|
304
|
-
|
310
|
+
|
305
311
|
# verify the required parameter 'consumer' is set
|
306
312
|
fail "Missing the required parameter 'consumer' when calling reports_urls_context_id_get" if consumer.nil?
|
307
|
-
|
313
|
+
|
308
314
|
# verify the required parameter 'consumer_secret' is set
|
309
315
|
fail "Missing the required parameter 'consumer_secret' when calling reports_urls_context_id_get" if consumer_secret.nil?
|
310
|
-
|
316
|
+
|
311
317
|
# verify the required parameter 'token_user' is set
|
312
318
|
fail "Missing the required parameter 'token_user' when calling reports_urls_context_id_get" if token_user.nil?
|
313
|
-
|
319
|
+
|
314
320
|
# verify the required parameter 'token_user_role' is set
|
315
321
|
fail "Missing the required parameter 'token_user_role' when calling reports_urls_context_id_get" if token_user_role.nil?
|
316
|
-
|
322
|
+
|
317
323
|
# resource path
|
318
324
|
local_var_path = "/reports/urls/{contextID}".sub('{format}','json').sub('{' + 'contextID' + '}', context_id.to_s)
|
319
325
|
|
@@ -343,7 +349,7 @@ module VeriCiteClient
|
|
343
349
|
|
344
350
|
# http body (model)
|
345
351
|
post_body = nil
|
346
|
-
|
352
|
+
|
347
353
|
auth_names = []
|
348
354
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
349
355
|
:header_params => header_params,
|
@@ -95,7 +95,7 @@ module VeriCiteClient
|
|
95
95
|
req = Net::HTTP::Get.new(uri)
|
96
96
|
when :delete
|
97
97
|
req = Net::HTTP::Delete.new(uri)
|
98
|
-
end
|
98
|
+
end
|
99
99
|
req.body = req_body
|
100
100
|
# Headers
|
101
101
|
header_params.each do |key, value|
|
@@ -105,7 +105,7 @@ module VeriCiteClient
|
|
105
105
|
key = "consumerSecret"
|
106
106
|
end
|
107
107
|
req.add_field(key, value)
|
108
|
-
end
|
108
|
+
end
|
109
109
|
res = https.start{|con|
|
110
110
|
con.request(req)
|
111
111
|
}
|
@@ -338,15 +338,16 @@ module VeriCiteClient
|
|
338
338
|
fail "unknown collection format: #{collection_format.inspect}"
|
339
339
|
end
|
340
340
|
end
|
341
|
-
|
342
|
-
def uploadfile(path, file)
|
341
|
+
|
342
|
+
def uploadfile(path, file, headers)
|
343
343
|
url = URI.parse(path)
|
344
|
-
|
344
|
+
|
345
|
+
headers ||= {}
|
346
|
+
# This is required, or Net::HTTP will add a default unsigned content-type.
|
347
|
+
headers["content-type"] = ""
|
348
|
+
|
345
349
|
response = Net::HTTP.start(url.host) do |http|
|
346
|
-
http.send_request("PUT", url.request_uri, (file.is_a?(String) ? file : file.read),
|
347
|
-
# This is required, or Net::HTTP will add a default unsigned content-type.
|
348
|
-
"content-type" => "",
|
349
|
-
})
|
350
|
+
http.send_request("PUT", url.request_uri, (file.is_a?(String) ? file : file.read), headers)
|
350
351
|
end
|
351
352
|
unless response.kind_of? Net::HTTPSuccess
|
352
353
|
fail ApiError.new(:code => response.code,
|
@@ -21,20 +21,25 @@ module VeriCiteClient
|
|
21
21
|
# The files content type
|
22
22
|
attr_accessor :content_type
|
23
23
|
|
24
|
+
# A map of required headers
|
25
|
+
attr_accessor :headers
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
|
-
|
30
|
+
|
28
31
|
:'external_content_id' => :'externalContentID',
|
29
|
-
|
32
|
+
|
30
33
|
:'url_post' => :'urlPost',
|
31
|
-
|
34
|
+
|
32
35
|
:'file_path' => :'filePath',
|
33
|
-
|
36
|
+
|
34
37
|
:'content_length' => :'contentLength',
|
35
|
-
|
36
|
-
:'content_type' => :'contentType'
|
37
|
-
|
38
|
+
|
39
|
+
:'content_type' => :'contentType',
|
40
|
+
|
41
|
+
:'headers' => :'headers'
|
42
|
+
|
38
43
|
}
|
39
44
|
end
|
40
45
|
|
@@ -45,8 +50,9 @@ module VeriCiteClient
|
|
45
50
|
:'url_post' => :'String',
|
46
51
|
:'file_path' => :'String',
|
47
52
|
:'content_length' => :'Integer',
|
48
|
-
:'content_type' => :'String'
|
49
|
-
|
53
|
+
:'content_type' => :'String',
|
54
|
+
:'headers' => :'Object'
|
55
|
+
|
50
56
|
}
|
51
57
|
end
|
52
58
|
|
@@ -56,27 +62,31 @@ module VeriCiteClient
|
|
56
62
|
# convert string to symbol for hash key
|
57
63
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
58
64
|
|
59
|
-
|
65
|
+
|
60
66
|
if attributes[:'externalContentID']
|
61
67
|
self.external_content_id = attributes[:'externalContentID']
|
62
68
|
end
|
63
|
-
|
69
|
+
|
64
70
|
if attributes[:'urlPost']
|
65
71
|
self.url_post = attributes[:'urlPost']
|
66
72
|
end
|
67
|
-
|
73
|
+
|
68
74
|
if attributes[:'filePath']
|
69
75
|
self.file_path = attributes[:'filePath']
|
70
76
|
end
|
71
|
-
|
77
|
+
|
72
78
|
if attributes[:'contentLength']
|
73
79
|
self.content_length = attributes[:'contentLength']
|
74
80
|
end
|
75
|
-
|
81
|
+
|
76
82
|
if attributes[:'contentType']
|
77
83
|
self.content_type = attributes[:'contentType']
|
78
84
|
end
|
79
|
-
|
85
|
+
|
86
|
+
if attributes.has_key?(:'headers')
|
87
|
+
self.headers = attributes[:'headers']
|
88
|
+
end
|
89
|
+
|
80
90
|
end
|
81
91
|
|
82
92
|
# Check equality by comparing each attribute.
|
@@ -87,7 +97,8 @@ module VeriCiteClient
|
|
87
97
|
url_post == o.url_post &&
|
88
98
|
file_path == o.file_path &&
|
89
99
|
content_length == o.content_length &&
|
90
|
-
content_type == o.content_type
|
100
|
+
content_type == o.content_type &&
|
101
|
+
headers == o.headers
|
91
102
|
end
|
92
103
|
|
93
104
|
# @see the `==` method
|
@@ -97,7 +108,7 @@ module VeriCiteClient
|
|
97
108
|
|
98
109
|
# Calculate hash code according to all attributes.
|
99
110
|
def hash
|
100
|
-
[external_content_id, url_post, file_path, content_length, content_type].hash
|
111
|
+
[external_content_id, url_post, file_path, content_length, content_type, headers].hash
|
101
112
|
end
|
102
113
|
|
103
114
|
# build the object from hash
|
@@ -21,16 +21,17 @@ describe 'DefaultApi' do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
|
25
25
|
# unit tests for assignments_context_id_assignment_id_post
|
26
|
-
#
|
26
|
+
#
|
27
27
|
# Create/update assignment
|
28
28
|
# @param context_id Context ID
|
29
29
|
# @param assignment_id ID of assignment
|
30
30
|
# @param consumer the consumer
|
31
31
|
# @param consumer_secret the consumer secret
|
32
|
-
# @param assignment_data
|
32
|
+
# @param assignment_data
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
34
35
|
# @return [Array<ExternalContentUploadInfo>]
|
35
36
|
describe 'assignments_context_id_assignment_id_post test' do
|
36
37
|
it "should work" do
|
@@ -43,7 +44,7 @@ describe 'DefaultApi' do
|
|
43
44
|
end
|
44
45
|
|
45
46
|
# unit tests for reports_scores_context_id_get
|
46
|
-
#
|
47
|
+
#
|
47
48
|
# Retrieves scores for the reports
|
48
49
|
# @param context_id Context ID
|
49
50
|
# @param consumer the consumer
|
@@ -64,15 +65,16 @@ describe 'DefaultApi' do
|
|
64
65
|
end
|
65
66
|
|
66
67
|
# unit tests for reports_submit_request_context_id_assignment_id_user_id_post
|
67
|
-
#
|
68
|
+
#
|
68
69
|
# Request a file submission
|
69
70
|
# @param context_id Context ID
|
70
71
|
# @param assignment_id ID of assignment
|
71
72
|
# @param user_id ID of user
|
72
73
|
# @param consumer the consumer
|
73
74
|
# @param consumer_secret the consumer secret
|
74
|
-
# @param report_meta_data
|
75
|
+
# @param report_meta_data
|
75
76
|
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [BOOLEAN] :encrypted Flag to indicate encryption
|
76
78
|
# @return [Array<ExternalContentUploadInfo>]
|
77
79
|
describe 'reports_submit_request_context_id_assignment_id_user_id_post test' do
|
78
80
|
it "should work" do
|
@@ -85,7 +87,7 @@ describe 'DefaultApi' do
|
|
85
87
|
end
|
86
88
|
|
87
89
|
# unit tests for reports_urls_context_id_get
|
88
|
-
#
|
90
|
+
#
|
89
91
|
# Retrieves URLS for the reports
|
90
92
|
# @param context_id Context ID
|
91
93
|
# @param assignment_id_filter ID of assignment to filter results on
|
@@ -18,7 +18,7 @@ describe 'ExternalContentUploadInfo' do
|
|
18
18
|
|
19
19
|
describe 'test an instance of ExternalContentUploadInfo' do
|
20
20
|
it 'should create an instact of ExternalContentUploadInfo' do
|
21
|
-
@instance.should be_a(VeriCiteClient::ExternalContentUploadInfo)
|
21
|
+
@instance.should be_a(VeriCiteClient::ExternalContentUploadInfo)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
describe 'test attribute "external_content_id"' do
|
@@ -71,5 +71,10 @@ describe 'ExternalContentUploadInfo' do
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
|
74
|
+
describe 'test attribute "headers"' do
|
75
|
+
it 'should work' do
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
75
79
|
|
80
|
+
end
|
Binary file
|
data/vericite_api.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "vericite_api"
|
7
7
|
s.description = "VeriCite API GEM"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.5.0"
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.authors = ["Bryan Holladay"]
|
11
11
|
s.email = ["bryan@vericite.com"]
|
metadata
CHANGED
@@ -1,167 +1,167 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vericite_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Holladay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.4.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.4.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.2'
|
34
|
-
- -
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 3.2.0
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - ~>
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '3.2'
|
44
|
-
- -
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 3.2.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: vcr
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - ~>
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '2.9'
|
54
|
-
- -
|
54
|
+
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.9.3
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ~>
|
61
|
+
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '2.9'
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.9.3
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: webmock
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - ~>
|
71
|
+
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '1.6'
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.6.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.6'
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 1.6.2
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: autotest
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- - ~>
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '4.4'
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 4.4.6
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '4.4'
|
104
|
-
- -
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: 4.4.6
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: autotest-rails-pure
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - ~>
|
111
|
+
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '4.1'
|
114
|
-
- -
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 4.1.2
|
117
117
|
type: :development
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - ~>
|
121
|
+
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '4.1'
|
124
|
-
- -
|
124
|
+
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 4.1.2
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: autotest-growl
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- - ~>
|
131
|
+
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0.2'
|
134
|
-
- -
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: 0.2.16
|
137
137
|
type: :development
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- - ~>
|
141
|
+
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0.2'
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: 0.2.16
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: autotest-fsevent
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - ~>
|
151
|
+
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0.2'
|
154
|
-
- -
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: 0.2.11
|
157
157
|
type: :development
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - ~>
|
161
|
+
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0.2'
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 0.2.11
|
167
167
|
description: VeriCite Api
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- spec/models/report_score_reponse_spec.rb
|
200
200
|
- spec/models/report_url_link_reponse_spec.rb
|
201
201
|
- vericite_api-1.3.0.gem
|
202
|
+
- vericite_api-1.4.0.gem
|
202
203
|
- vericite_api.gemspec
|
203
204
|
homepage: http://www.vericite.com
|
204
205
|
licenses:
|
@@ -210,17 +211,17 @@ require_paths:
|
|
210
211
|
- lib
|
211
212
|
required_ruby_version: !ruby/object:Gem::Requirement
|
212
213
|
requirements:
|
213
|
-
- -
|
214
|
+
- - ">="
|
214
215
|
- !ruby/object:Gem::Version
|
215
216
|
version: '0'
|
216
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
218
|
requirements:
|
218
|
-
- -
|
219
|
+
- - ">="
|
219
220
|
- !ruby/object:Gem::Version
|
220
221
|
version: '0'
|
221
222
|
requirements: []
|
222
223
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
224
|
+
rubygems_version: 2.6.11
|
224
225
|
signing_key:
|
225
226
|
specification_version: 4
|
226
227
|
summary: VeriCite Api
|