uploadcare-rails 1.2.0.pre.alpha → 1.2.0.pre.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/uploadcare-rails.rb +9 -2
- data/lib/uploadcare/rails/version.rb +1 -1
- data/spec/cassettes/Uploadcare_Rails_File/should_load_itself.yml +263 -0
- data/spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml +263 -0
- data/spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml +263 -0
- data/spec/cassettes/group_cahsing_file_load.yml +263 -0
- data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml +1763 -0
- data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml +543 -0
- data/spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml +679 -0
- data/spec/cassettes/has_uploadcare_group_save.yml +705 -0
- data/spec/cassettes/load_group.yml +263 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +3276 -0
- data/spec/dummy/tmp/cache/293/091/https%3A%2F%2Fucarecdn.com%2F19073296-2315-4726-817b-46398b2c7431%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/2AF/761/https%3A%2F%2Fucarecdn.com%2F595319d0-a113-459f-91bd-b29c7183467b%2F +0 -0
- data/spec/dummy/tmp/cache/301/D41/https%3A%2F%2Fucarecdn.com%2F81332043-fa2c-452f-936b-737d87ab2ae2%2F +0 -0
- data/spec/dummy/tmp/cache/30A/7C1/https%3A%2F%2Fucarecdn.com%2F39b34128-a001-46fd-9773-1b6ad46e6b9e%2F +0 -0
- data/spec/dummy/tmp/cache/340/A41/https%3A%2F%2Fucarecdn.com%2F090bcb5f-6d19-456c-b4a3-d753e690926f%2F +0 -0
- data/spec/dummy/tmp/cache/3AB/5A1/https%3A%2F%2Fucarecdn.com%2F7eb0161b-cebe-4316-946b-694de6f77ef9%2F +0 -0
- data/spec/dummy/tmp/cache/3FC/5C1/https%3A%2F%2Fucarecdn.com%2Fc3f0464b-ce9a-4281-8eaa-5c55783ccedf%2F +0 -0
- data/spec/dummy/tmp/cache/431/5C1/https%3A%2F%2Fucarecdn.com%2Fa1b1bb40-bd89-4f9c-b809-e84920f24a01%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/44B/7A1/https%3A%2F%2Fucarecdn.com%2Fd6c785a8-9761-4602-88de-65ddb04ddc6a%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/45B/F31/https%3A%2F%2Fucarecdn.com%2F73e3cdbc-6495-4cf2-bbd1-413e6cb70004%7E2%2F +0 -0
- data/spec/dummy/tmp/cache/461/AA1/https%3A%2F%2Fucarecdn.com%2Fc50e9a53-0b95-48ac-a4a9-6744052dbdab%7E2%2F +0 -0
- data/spec/tmp/config/uploadcare.yml +71 -0
- data/spec/uploadcare_rails_settings_spec.rb +8 -2
- metadata +130 -83
- data/spec/dummy/app/assets/javascripts/uploadcare-1.5.5.min.js +0 -16
data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml
ADDED
@@ -0,0 +1,543 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://api.uploadcare.com/files/913a5ee4-123c-4076-bc66-3ff5a3966ac0/storage/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.uploadcare-v0.3+json
|
12
|
+
User-Agent:
|
13
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
Date:
|
17
|
+
- Sat, 21 Oct 2017 13:40:31 -0000
|
18
|
+
Authorization:
|
19
|
+
- Uploadcare demopublickey:732d2dd7c30e41748072791c3701076c240ddefb
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Sat, 21 Oct 2017 13:40:31 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.uploadcare-v0.3+json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Server:
|
36
|
+
- nginx
|
37
|
+
X-Xss-Protection:
|
38
|
+
- 1; mode=block
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
Vary:
|
42
|
+
- Accept
|
43
|
+
Warning:
|
44
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
45
|
+
version 0.5, not 0.3'
|
46
|
+
Allow:
|
47
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
48
|
+
Access-Control-Allow-Origin:
|
49
|
+
- https://uploadcare.com
|
50
|
+
X-Frame-Options:
|
51
|
+
- DENY
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '{"uuid":"913a5ee4-123c-4076-bc66-3ff5a3966ac0","original_file_url":"https://ucarecdn.com/913a5ee4-123c-4076-bc66-3ff5a3966ac0/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-21T13:40:31.943380Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/913a5ee4-123c-4076-bc66-3ff5a3966ac0/","original_filename":"view.png","datetime_uploaded":"2017-10-21T13:40:26.646680Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Sat, 21 Oct 2017 13:40:32 GMT
|
57
|
+
- request:
|
58
|
+
method: put
|
59
|
+
uri: https://api.uploadcare.com/files/39b34128-a001-46fd-9773-1b6ad46e6b9e/storage/
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: ''
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- application/vnd.uploadcare-v0.3+json
|
66
|
+
User-Agent:
|
67
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
68
|
+
Content-Type:
|
69
|
+
- application/x-www-form-urlencoded
|
70
|
+
Date:
|
71
|
+
- Sun, 29 Oct 2017 17:15:31 -0000
|
72
|
+
Authorization:
|
73
|
+
- Uploadcare demopublickey:a6a35356059f9fc36d416c92fb7a1bc8cc7bb6f0
|
74
|
+
Accept-Encoding:
|
75
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Sun, 29 Oct 2017 17:15:32 GMT
|
83
|
+
Content-Type:
|
84
|
+
- application/vnd.uploadcare-v0.3+json
|
85
|
+
Transfer-Encoding:
|
86
|
+
- chunked
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Server:
|
90
|
+
- nginx
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
X-Content-Type-Options:
|
94
|
+
- nosniff
|
95
|
+
Vary:
|
96
|
+
- Accept
|
97
|
+
Warning:
|
98
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
99
|
+
version 0.5, not 0.3'
|
100
|
+
Allow:
|
101
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
102
|
+
Access-Control-Allow-Origin:
|
103
|
+
- https://uploadcare.com
|
104
|
+
X-Frame-Options:
|
105
|
+
- DENY
|
106
|
+
body:
|
107
|
+
encoding: UTF-8
|
108
|
+
string: '{"uuid":"39b34128-a001-46fd-9773-1b6ad46e6b9e","original_file_url":"https://ucarecdn.com/39b34128-a001-46fd-9773-1b6ad46e6b9e/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-29T17:15:32.176898Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/39b34128-a001-46fd-9773-1b6ad46e6b9e/","original_filename":"view.png","datetime_uploaded":"2017-10-29T17:15:28.147830Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Sun, 29 Oct 2017 17:15:32 GMT
|
111
|
+
- request:
|
112
|
+
method: put
|
113
|
+
uri: https://api.uploadcare.com/files/595319d0-a113-459f-91bd-b29c7183467b/storage/
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: ''
|
117
|
+
headers:
|
118
|
+
Accept:
|
119
|
+
- application/vnd.uploadcare-v0.3+json
|
120
|
+
User-Agent:
|
121
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
122
|
+
Content-Type:
|
123
|
+
- application/x-www-form-urlencoded
|
124
|
+
Date:
|
125
|
+
- Sun, 29 Oct 2017 17:17:11 -0000
|
126
|
+
Authorization:
|
127
|
+
- Uploadcare demopublickey:4eebb29636509ebb03dcb479c65a3e8754f1b835
|
128
|
+
Accept-Encoding:
|
129
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 200
|
133
|
+
message: OK
|
134
|
+
headers:
|
135
|
+
Date:
|
136
|
+
- Sun, 29 Oct 2017 17:17:12 GMT
|
137
|
+
Content-Type:
|
138
|
+
- application/vnd.uploadcare-v0.3+json
|
139
|
+
Transfer-Encoding:
|
140
|
+
- chunked
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Server:
|
144
|
+
- nginx
|
145
|
+
X-Xss-Protection:
|
146
|
+
- 1; mode=block
|
147
|
+
X-Content-Type-Options:
|
148
|
+
- nosniff
|
149
|
+
Vary:
|
150
|
+
- Accept
|
151
|
+
Warning:
|
152
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
153
|
+
version 0.5, not 0.3'
|
154
|
+
Allow:
|
155
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
156
|
+
Access-Control-Allow-Origin:
|
157
|
+
- https://uploadcare.com
|
158
|
+
X-Frame-Options:
|
159
|
+
- DENY
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"uuid":"595319d0-a113-459f-91bd-b29c7183467b","original_file_url":"https://ucarecdn.com/595319d0-a113-459f-91bd-b29c7183467b/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-29T17:17:12.432336Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/595319d0-a113-459f-91bd-b29c7183467b/","original_filename":"view.png","datetime_uploaded":"2017-10-29T17:17:08.532242Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Sun, 29 Oct 2017 17:17:13 GMT
|
165
|
+
- request:
|
166
|
+
method: put
|
167
|
+
uri: https://api.uploadcare.com/files/c3f0464b-ce9a-4281-8eaa-5c55783ccedf/storage/
|
168
|
+
body:
|
169
|
+
encoding: UTF-8
|
170
|
+
string: ''
|
171
|
+
headers:
|
172
|
+
Accept:
|
173
|
+
- application/vnd.uploadcare-v0.3+json
|
174
|
+
User-Agent:
|
175
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
176
|
+
Content-Type:
|
177
|
+
- application/x-www-form-urlencoded
|
178
|
+
Date:
|
179
|
+
- Sun, 29 Oct 2017 17:19:16 -0000
|
180
|
+
Authorization:
|
181
|
+
- Uploadcare demopublickey:3f45d495a312123df69df3c44960474c57939503
|
182
|
+
Accept-Encoding:
|
183
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
184
|
+
response:
|
185
|
+
status:
|
186
|
+
code: 200
|
187
|
+
message: OK
|
188
|
+
headers:
|
189
|
+
Date:
|
190
|
+
- Sun, 29 Oct 2017 17:19:17 GMT
|
191
|
+
Content-Type:
|
192
|
+
- application/vnd.uploadcare-v0.3+json
|
193
|
+
Transfer-Encoding:
|
194
|
+
- chunked
|
195
|
+
Connection:
|
196
|
+
- keep-alive
|
197
|
+
Server:
|
198
|
+
- nginx
|
199
|
+
X-Xss-Protection:
|
200
|
+
- 1; mode=block
|
201
|
+
X-Content-Type-Options:
|
202
|
+
- nosniff
|
203
|
+
Vary:
|
204
|
+
- Accept
|
205
|
+
Warning:
|
206
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
207
|
+
version 0.5, not 0.3'
|
208
|
+
Allow:
|
209
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
210
|
+
Access-Control-Allow-Origin:
|
211
|
+
- https://uploadcare.com
|
212
|
+
X-Frame-Options:
|
213
|
+
- DENY
|
214
|
+
body:
|
215
|
+
encoding: UTF-8
|
216
|
+
string: '{"uuid":"c3f0464b-ce9a-4281-8eaa-5c55783ccedf","original_file_url":"https://ucarecdn.com/c3f0464b-ce9a-4281-8eaa-5c55783ccedf/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-29T17:19:17.199860Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/c3f0464b-ce9a-4281-8eaa-5c55783ccedf/","original_filename":"view.png","datetime_uploaded":"2017-10-29T17:19:13.268781Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
217
|
+
http_version:
|
218
|
+
recorded_at: Sun, 29 Oct 2017 17:19:17 GMT
|
219
|
+
- request:
|
220
|
+
method: put
|
221
|
+
uri: https://api.uploadcare.com/files/81332043-fa2c-452f-936b-737d87ab2ae2/storage/
|
222
|
+
body:
|
223
|
+
encoding: UTF-8
|
224
|
+
string: ''
|
225
|
+
headers:
|
226
|
+
Accept:
|
227
|
+
- application/vnd.uploadcare-v0.3+json
|
228
|
+
User-Agent:
|
229
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
230
|
+
Content-Type:
|
231
|
+
- application/x-www-form-urlencoded
|
232
|
+
Date:
|
233
|
+
- Sun, 29 Oct 2017 17:19:41 -0000
|
234
|
+
Authorization:
|
235
|
+
- Uploadcare demopublickey:90a583a069d2a0cebd6188f0e29f5af78d6b645b
|
236
|
+
Accept-Encoding:
|
237
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
238
|
+
response:
|
239
|
+
status:
|
240
|
+
code: 200
|
241
|
+
message: OK
|
242
|
+
headers:
|
243
|
+
Date:
|
244
|
+
- Sun, 29 Oct 2017 17:19:42 GMT
|
245
|
+
Content-Type:
|
246
|
+
- application/vnd.uploadcare-v0.3+json
|
247
|
+
Transfer-Encoding:
|
248
|
+
- chunked
|
249
|
+
Connection:
|
250
|
+
- keep-alive
|
251
|
+
Server:
|
252
|
+
- nginx
|
253
|
+
X-Xss-Protection:
|
254
|
+
- 1; mode=block
|
255
|
+
X-Content-Type-Options:
|
256
|
+
- nosniff
|
257
|
+
Vary:
|
258
|
+
- Accept
|
259
|
+
Warning:
|
260
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
261
|
+
version 0.5, not 0.3'
|
262
|
+
Allow:
|
263
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
264
|
+
Access-Control-Allow-Origin:
|
265
|
+
- https://uploadcare.com
|
266
|
+
X-Frame-Options:
|
267
|
+
- DENY
|
268
|
+
body:
|
269
|
+
encoding: UTF-8
|
270
|
+
string: '{"uuid":"81332043-fa2c-452f-936b-737d87ab2ae2","original_file_url":"https://ucarecdn.com/81332043-fa2c-452f-936b-737d87ab2ae2/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-29T17:19:41.772104Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/81332043-fa2c-452f-936b-737d87ab2ae2/","original_filename":"view.png","datetime_uploaded":"2017-10-29T17:19:37.985219Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
271
|
+
http_version:
|
272
|
+
recorded_at: Sun, 29 Oct 2017 17:19:42 GMT
|
273
|
+
- request:
|
274
|
+
method: put
|
275
|
+
uri: https://api.uploadcare.com/files/7eb0161b-cebe-4316-946b-694de6f77ef9/storage/
|
276
|
+
body:
|
277
|
+
encoding: UTF-8
|
278
|
+
string: ''
|
279
|
+
headers:
|
280
|
+
Accept:
|
281
|
+
- application/vnd.uploadcare-v0.3+json
|
282
|
+
User-Agent:
|
283
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
284
|
+
Content-Type:
|
285
|
+
- application/x-www-form-urlencoded
|
286
|
+
Date:
|
287
|
+
- Sun, 29 Oct 2017 17:21:00 -0000
|
288
|
+
Authorization:
|
289
|
+
- Uploadcare demopublickey:0f8eaf1ab1a496c399d2debc37d78ef1a73b8edd
|
290
|
+
Accept-Encoding:
|
291
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
292
|
+
response:
|
293
|
+
status:
|
294
|
+
code: 200
|
295
|
+
message: OK
|
296
|
+
headers:
|
297
|
+
Date:
|
298
|
+
- Sun, 29 Oct 2017 17:21:01 GMT
|
299
|
+
Content-Type:
|
300
|
+
- application/vnd.uploadcare-v0.3+json
|
301
|
+
Transfer-Encoding:
|
302
|
+
- chunked
|
303
|
+
Connection:
|
304
|
+
- keep-alive
|
305
|
+
Server:
|
306
|
+
- nginx
|
307
|
+
X-Xss-Protection:
|
308
|
+
- 1; mode=block
|
309
|
+
X-Content-Type-Options:
|
310
|
+
- nosniff
|
311
|
+
Vary:
|
312
|
+
- Accept
|
313
|
+
Warning:
|
314
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
315
|
+
version 0.5, not 0.3'
|
316
|
+
Allow:
|
317
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
318
|
+
Access-Control-Allow-Origin:
|
319
|
+
- https://uploadcare.com
|
320
|
+
X-Frame-Options:
|
321
|
+
- DENY
|
322
|
+
body:
|
323
|
+
encoding: UTF-8
|
324
|
+
string: '{"uuid":"7eb0161b-cebe-4316-946b-694de6f77ef9","original_file_url":"https://ucarecdn.com/7eb0161b-cebe-4316-946b-694de6f77ef9/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-10-29T17:21:01.809574Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/7eb0161b-cebe-4316-946b-694de6f77ef9/","original_filename":"view.png","datetime_uploaded":"2017-10-29T17:20:57.720104Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
325
|
+
http_version:
|
326
|
+
recorded_at: Sun, 29 Oct 2017 17:21:02 GMT
|
327
|
+
- request:
|
328
|
+
method: put
|
329
|
+
uri: https://api.uploadcare.com/files/f6536fd7-fc46-4563-ba22-89062c277b5d/storage/
|
330
|
+
body:
|
331
|
+
encoding: UTF-8
|
332
|
+
string: ''
|
333
|
+
headers:
|
334
|
+
Accept:
|
335
|
+
- application/vnd.uploadcare-v0.3+json
|
336
|
+
User-Agent:
|
337
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
338
|
+
Content-Type:
|
339
|
+
- application/x-www-form-urlencoded
|
340
|
+
Date:
|
341
|
+
- Sun, 05 Nov 2017 09:23:02 -0000
|
342
|
+
Authorization:
|
343
|
+
- Uploadcare demopublickey:e4c661d144a79a3ac54b356de67f8e522f643906
|
344
|
+
Accept-Encoding:
|
345
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
346
|
+
response:
|
347
|
+
status:
|
348
|
+
code: 200
|
349
|
+
message: OK
|
350
|
+
headers:
|
351
|
+
Date:
|
352
|
+
- Sun, 05 Nov 2017 09:23:04 GMT
|
353
|
+
Content-Type:
|
354
|
+
- application/vnd.uploadcare-v0.3+json
|
355
|
+
Transfer-Encoding:
|
356
|
+
- chunked
|
357
|
+
Connection:
|
358
|
+
- keep-alive
|
359
|
+
Server:
|
360
|
+
- nginx
|
361
|
+
X-Xss-Protection:
|
362
|
+
- 1; mode=block
|
363
|
+
X-Content-Type-Options:
|
364
|
+
- nosniff
|
365
|
+
Vary:
|
366
|
+
- Accept
|
367
|
+
Warning:
|
368
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
369
|
+
version 0.5, not 0.3'
|
370
|
+
Allow:
|
371
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
372
|
+
Access-Control-Allow-Origin:
|
373
|
+
- https://uploadcare.com
|
374
|
+
X-Frame-Options:
|
375
|
+
- DENY
|
376
|
+
body:
|
377
|
+
encoding: UTF-8
|
378
|
+
string: '{"uuid":"f6536fd7-fc46-4563-ba22-89062c277b5d","original_file_url":"https://ucarecdn.com/f6536fd7-fc46-4563-ba22-89062c277b5d/view.png","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"datetime_stored":"2017-11-05T09:23:03.368234Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/f6536fd7-fc46-4563-ba22-89062c277b5d/","original_filename":"view.png","datetime_uploaded":"2017-11-05T09:22:56.619173Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null}'
|
379
|
+
http_version:
|
380
|
+
recorded_at: Sun, 05 Nov 2017 09:23:04 GMT
|
381
|
+
- request:
|
382
|
+
method: put
|
383
|
+
uri: https://api.uploadcare.com/files/6209544c-49f0-4520-ae7b-ebbd8cdd6891/storage/
|
384
|
+
body:
|
385
|
+
encoding: UTF-8
|
386
|
+
string: ''
|
387
|
+
headers:
|
388
|
+
Accept:
|
389
|
+
- application/vnd.uploadcare-v0.3+json
|
390
|
+
User-Agent:
|
391
|
+
- UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha)
|
392
|
+
Content-Type:
|
393
|
+
- application/x-www-form-urlencoded
|
394
|
+
Date:
|
395
|
+
- Fri, 25 May 2018 07:14:09 -0000
|
396
|
+
Authorization:
|
397
|
+
- Uploadcare demopublickey:495eb4b5bb2566cea4ef9fec24b8d17d956e38f2
|
398
|
+
Accept-Encoding:
|
399
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
400
|
+
response:
|
401
|
+
status:
|
402
|
+
code: 200
|
403
|
+
message: OK
|
404
|
+
headers:
|
405
|
+
Date:
|
406
|
+
- Fri, 25 May 2018 07:14:15 GMT
|
407
|
+
Content-Type:
|
408
|
+
- application/vnd.uploadcare-v0.3+json
|
409
|
+
Content-Length:
|
410
|
+
- '580'
|
411
|
+
Connection:
|
412
|
+
- keep-alive
|
413
|
+
Server:
|
414
|
+
- nginx
|
415
|
+
X-Xss-Protection:
|
416
|
+
- 1; mode=block
|
417
|
+
X-Content-Type-Options:
|
418
|
+
- nosniff
|
419
|
+
Vary:
|
420
|
+
- Accept
|
421
|
+
Warning:
|
422
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
423
|
+
version 0.5, not 0.3'
|
424
|
+
Allow:
|
425
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
426
|
+
Access-Control-Allow-Origin:
|
427
|
+
- https://uploadcare.com
|
428
|
+
X-Frame-Options:
|
429
|
+
- SAMEORIGIN
|
430
|
+
body:
|
431
|
+
encoding: UTF-8
|
432
|
+
string: '{"datetime_removed":null,"datetime_stored":"2018-05-25T07:14:15.182657Z","datetime_uploaded":"2018-05-25T07:13:48.778491Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/6209544c-49f0-4520-ae7b-ebbd8cdd6891/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/6209544c-49f0-4520-ae7b-ebbd8cdd6891/","uuid":"6209544c-49f0-4520-ae7b-ebbd8cdd6891","source":null}'
|
433
|
+
http_version:
|
434
|
+
recorded_at: Fri, 25 May 2018 07:14:17 GMT
|
435
|
+
- request:
|
436
|
+
method: put
|
437
|
+
uri: https://api.uploadcare.com/files/b22b9b14-52ee-4642-aa8a-6149b29f9b5a/storage/
|
438
|
+
body:
|
439
|
+
encoding: UTF-8
|
440
|
+
string: ''
|
441
|
+
headers:
|
442
|
+
Accept:
|
443
|
+
- application/vnd.uploadcare-v0.3+json
|
444
|
+
User-Agent:
|
445
|
+
- uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
|
446
|
+
Content-Type:
|
447
|
+
- application/x-www-form-urlencoded
|
448
|
+
Date:
|
449
|
+
- Fri, 25 May 2018 09:11:59 -0000
|
450
|
+
Authorization:
|
451
|
+
- Uploadcare demopublickey:a2fcdaab4679633d534ae1538b6f83e9089af615
|
452
|
+
Accept-Encoding:
|
453
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
454
|
+
response:
|
455
|
+
status:
|
456
|
+
code: 200
|
457
|
+
message: OK
|
458
|
+
headers:
|
459
|
+
Date:
|
460
|
+
- Fri, 25 May 2018 09:12:08 GMT
|
461
|
+
Content-Type:
|
462
|
+
- application/vnd.uploadcare-v0.3+json
|
463
|
+
Content-Length:
|
464
|
+
- '580'
|
465
|
+
Connection:
|
466
|
+
- keep-alive
|
467
|
+
Server:
|
468
|
+
- nginx
|
469
|
+
X-Xss-Protection:
|
470
|
+
- 1; mode=block
|
471
|
+
X-Content-Type-Options:
|
472
|
+
- nosniff
|
473
|
+
Vary:
|
474
|
+
- Accept
|
475
|
+
Warning:
|
476
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
477
|
+
version 0.5, not 0.3'
|
478
|
+
Allow:
|
479
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
480
|
+
Access-Control-Allow-Origin:
|
481
|
+
- https://uploadcare.com
|
482
|
+
X-Frame-Options:
|
483
|
+
- SAMEORIGIN
|
484
|
+
body:
|
485
|
+
encoding: UTF-8
|
486
|
+
string: '{"datetime_removed":null,"datetime_stored":"2018-05-25T09:12:08.339769Z","datetime_uploaded":"2018-05-25T09:11:53.254485Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/b22b9b14-52ee-4642-aa8a-6149b29f9b5a/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/b22b9b14-52ee-4642-aa8a-6149b29f9b5a/","uuid":"b22b9b14-52ee-4642-aa8a-6149b29f9b5a","source":null}'
|
487
|
+
http_version:
|
488
|
+
recorded_at: Fri, 25 May 2018 09:12:07 GMT
|
489
|
+
- request:
|
490
|
+
method: put
|
491
|
+
uri: https://api.uploadcare.com/files/d3595e70-e488-451c-a21b-11424cea46d2/storage/
|
492
|
+
body:
|
493
|
+
encoding: UTF-8
|
494
|
+
string: ''
|
495
|
+
headers:
|
496
|
+
Accept:
|
497
|
+
- application/vnd.uploadcare-v0.3+json
|
498
|
+
User-Agent:
|
499
|
+
- UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha2)
|
500
|
+
Content-Type:
|
501
|
+
- application/x-www-form-urlencoded
|
502
|
+
Date:
|
503
|
+
- Mon, 28 May 2018 19:05:09 -0000
|
504
|
+
Authorization:
|
505
|
+
- Uploadcare demopublickey:4ae2e508cebab778b3b006b79929e2d2c4949394
|
506
|
+
Accept-Encoding:
|
507
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
508
|
+
response:
|
509
|
+
status:
|
510
|
+
code: 200
|
511
|
+
message: OK
|
512
|
+
headers:
|
513
|
+
Date:
|
514
|
+
- Mon, 28 May 2018 19:05:10 GMT
|
515
|
+
Content-Type:
|
516
|
+
- application/vnd.uploadcare-v0.3+json
|
517
|
+
Content-Length:
|
518
|
+
- '580'
|
519
|
+
Connection:
|
520
|
+
- keep-alive
|
521
|
+
Server:
|
522
|
+
- nginx
|
523
|
+
X-Xss-Protection:
|
524
|
+
- 1; mode=block
|
525
|
+
X-Content-Type-Options:
|
526
|
+
- nosniff
|
527
|
+
Vary:
|
528
|
+
- Accept
|
529
|
+
Warning:
|
530
|
+
- '199 Miscellaneous warning: You are using the demo account; Please use API
|
531
|
+
version 0.5, not 0.3'
|
532
|
+
Allow:
|
533
|
+
- GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
|
534
|
+
Access-Control-Allow-Origin:
|
535
|
+
- https://uploadcare.com
|
536
|
+
X-Frame-Options:
|
537
|
+
- SAMEORIGIN
|
538
|
+
body:
|
539
|
+
encoding: UTF-8
|
540
|
+
string: '{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:10.071884Z","datetime_uploaded":"2018-05-28T19:04:57.151416Z","image_info":{"orientation":null,"format":"PNG","height":600,"width":800,"geo_location":null,"datetime_original":null,"dpi":null},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/d3595e70-e488-451c-a21b-11424cea46d2/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/d3595e70-e488-451c-a21b-11424cea46d2/","uuid":"d3595e70-e488-451c-a21b-11424cea46d2","source":null}'
|
541
|
+
http_version:
|
542
|
+
recorded_at: Mon, 28 May 2018 19:05:10 GMT
|
543
|
+
recorded_with: VCR 4.0.0
|