uploadcare-rails 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +5 -5
  2. data/lib/generators/templates/uploadcare_config_template.yml +3 -7
  3. data/lib/uploadcare/rails/active_record/has_file.rb +18 -15
  4. data/lib/uploadcare/rails/active_record/has_group.rb +18 -13
  5. data/lib/uploadcare/rails/version.rb +1 -1
  6. data/spec/dummy/app/models/post.rb +1 -0
  7. data/spec/dummy/app/models/post_with_collection.rb +1 -0
  8. data/spec/dummy/config/uploadcare.yml +3 -7
  9. data/spec/dummy/db/migrate/20181001132710_add_other_file_to_post.rb +8 -0
  10. data/spec/dummy/db/migrate/20181001141434_add_other_file_to_post_with_collections.rb +8 -0
  11. data/spec/dummy/db/schema.rb +3 -1
  12. data/spec/models/has_several_files_spec.rb +55 -0
  13. data/spec/models/has_several_groups_spec.rb +62 -0
  14. data/spec/spec_helper.rb +9 -1
  15. metadata +87 -107
  16. data/spec/cassettes/Uploadcare_Rails_File/should_load_itself.yml +0 -419
  17. data/spec/cassettes/Uploadcare_Rails_Group/group_should_stay_loaded.yml +0 -419
  18. data/spec/cassettes/Uploadcare_Rails_Group/rails_cache_should_updates_after_load_call.yml +0 -419
  19. data/spec/cassettes/group_cahsing_file_load.yml +0 -419
  20. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/deletes_file_after_destroy.yml +0 -2243
  21. data/spec/cassettes/has_uploadcare_file/object_with_uploadcare_file/stores_file_after_save.yml +0 -705
  22. data/spec/cassettes/has_uploadcare_group/object_attachment/contains_files_inside.yml +0 -835
  23. data/spec/cassettes/has_uploadcare_group_save.yml +0 -867
  24. data/spec/cassettes/load_group.yml +0 -419
  25. data/spec/dummy/db/test.sqlite3 +0 -0
  26. data/spec/dummy/log/test.log +0 -552
  27. data/spec/dummy/tmp/cache/457/D71/https%3A%2F%2Fucarecdn.com%2F04058c13-549a-495a-bab8-83a5deaae0a0%7E2%2F +0 -0
  28. data/spec/dummy/tmp/cache/49B/481/https%3A%2F%2Fucarecdn.com%2F2d40a7e9-bab4-446d-8d7a-b9fc5438c04c%7E2%2F +0 -0
  29. data/spec/tmp/config/uploadcare.yml +0 -71
@@ -1,419 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/groups/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/
6
- body:
7
- encoding: US-ASCII
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
- Date:
15
- - Sat, 21 Oct 2017 13:40:36 -0000
16
- Authorization:
17
- - Uploadcare demopublickey:ca8a4caf8c645dda0b950319fde7c07b60ea9636
18
- Accept-Encoding:
19
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Date:
26
- - Sat, 21 Oct 2017 13:40:37 GMT
27
- Content-Type:
28
- - application/vnd.uploadcare-v0.3+json
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Server:
34
- - nginx
35
- X-Xss-Protection:
36
- - 1; mode=block
37
- X-Content-Type-Options:
38
- - nosniff
39
- Vary:
40
- - Accept
41
- Warning:
42
- - '199 Miscellaneous warning: You are using the demo account; Please use API
43
- version 0.5, not 0.3'
44
- Allow:
45
- - GET, HEAD, OPTIONS
46
- Access-Control-Allow-Origin:
47
- - https://uploadcare.com
48
- X-Frame-Options:
49
- - DENY
50
- body:
51
- encoding: UTF-8
52
- string: '{"id":"a1b1bb40-bd89-4f9c-b809-e84920f24a01~2","datetime_created":"2017-10-21T13:40:29.035828Z","datetime_stored":"2017-10-21T13:40:36.348200Z","files_count":2,"cdn_url":"http://www.ucarecdn.com/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/","url":"https://api.uploadcare.com/groups/a1b1bb40-bd89-4f9c-b809-e84920f24a01~2/","files":[{"uuid":"83ce550d-f67e-4c1a-a4da-3d550224a8a5","original_file_url":"https://ucarecdn.com/83ce550d-f67e-4c1a-a4da-3d550224a8a5/view2.jpg","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"datetime_stored":"2017-10-21T13:40:36.247049Z","mime_type":"image/jpeg","is_ready":true,"url":"https://api.uploadcare.com/files/83ce550d-f67e-4c1a-a4da-3d550224a8a5/","original_filename":"view2.jpg","datetime_uploaded":"2017-10-21T13:40:28.343956Z","size":255570,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""},{"uuid":"8bd4d6b5-e844-42a7-b2b1-8814aa4ca713","original_file_url":"https://ucarecdn.com/8bd4d6b5-e844-42a7-b2b1-8814aa4ca713/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:36.318844Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/8bd4d6b5-e844-42a7-b2b1-8814aa4ca713/","original_filename":"view.png","datetime_uploaded":"2017-10-21T13:40:28.362231Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""}]}'
53
- http_version:
54
- recorded_at: Sat, 21 Oct 2017 13:40:37 GMT
55
- - request:
56
- method: get
57
- uri: https://api.uploadcare.com/groups/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/
58
- body:
59
- encoding: US-ASCII
60
- string: ''
61
- headers:
62
- Accept:
63
- - application/vnd.uploadcare-v0.3+json
64
- User-Agent:
65
- - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
66
- Date:
67
- - Sun, 05 Nov 2017 09:23:09 -0000
68
- Authorization:
69
- - Uploadcare demopublickey:8b225ef6d71350f07bff3982206c960b7638f3cb
70
- Accept-Encoding:
71
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
- response:
73
- status:
74
- code: 200
75
- message: OK
76
- headers:
77
- Date:
78
- - Sun, 05 Nov 2017 09:23:10 GMT
79
- Content-Type:
80
- - application/vnd.uploadcare-v0.3+json
81
- Transfer-Encoding:
82
- - chunked
83
- Connection:
84
- - keep-alive
85
- Server:
86
- - nginx
87
- X-Xss-Protection:
88
- - 1; mode=block
89
- X-Content-Type-Options:
90
- - nosniff
91
- Vary:
92
- - Accept
93
- Warning:
94
- - '199 Miscellaneous warning: You are using the demo account; Please use API
95
- version 0.5, not 0.3'
96
- Allow:
97
- - GET, HEAD, OPTIONS
98
- Access-Control-Allow-Origin:
99
- - https://uploadcare.com
100
- X-Frame-Options:
101
- - DENY
102
- body:
103
- encoding: UTF-8
104
- string: '{"id":"d6c785a8-9761-4602-88de-65ddb04ddc6a~2","datetime_created":"2017-11-05T09:22:59.302130Z","datetime_stored":"2017-11-05T09:23:08.887600Z","files_count":2,"cdn_url":"http://www.ucarecdn.com/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/","url":"https://api.uploadcare.com/groups/d6c785a8-9761-4602-88de-65ddb04ddc6a~2/","files":[{"uuid":"0b37b745-6637-49a1-9c00-3d8281a383e3","original_file_url":"https://ucarecdn.com/0b37b745-6637-49a1-9c00-3d8281a383e3/view2.jpg","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"datetime_stored":"2017-11-05T09:23:08.824767Z","mime_type":"image/jpeg","is_ready":true,"url":"https://api.uploadcare.com/files/0b37b745-6637-49a1-9c00-3d8281a383e3/","original_filename":"view2.jpg","datetime_uploaded":"2017-11-05T09:22:58.509252Z","size":255570,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""},{"uuid":"f839e2df-ddf8-4c10-9e7d-5a0777eddc93","original_file_url":"https://ucarecdn.com/f839e2df-ddf8-4c10-9e7d-5a0777eddc93/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:08.861737Z","mime_type":"image/png","is_ready":true,"url":"https://api.uploadcare.com/files/f839e2df-ddf8-4c10-9e7d-5a0777eddc93/","original_filename":"view.png","datetime_uploaded":"2017-11-05T09:22:58.526374Z","size":2785,"is_image":true,"datetime_removed":null,"source":null,"variations":null,"default_effects":""}]}'
105
- http_version:
106
- recorded_at: Sun, 05 Nov 2017 09:23:11 GMT
107
- - request:
108
- method: get
109
- uri: https://api.uploadcare.com/groups/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/
110
- body:
111
- encoding: US-ASCII
112
- string: ''
113
- headers:
114
- Accept:
115
- - application/vnd.uploadcare-v0.3+json
116
- User-Agent:
117
- - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha)
118
- Date:
119
- - Fri, 25 May 2018 07:14:45 -0000
120
- Authorization:
121
- - Uploadcare demopublickey:efdc230760a97eeffdc78c96fc7507eb1e58b625
122
- Accept-Encoding:
123
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
124
- response:
125
- status:
126
- code: 200
127
- message: OK
128
- headers:
129
- Date:
130
- - Fri, 25 May 2018 07:14:46 GMT
131
- Content-Type:
132
- - application/vnd.uploadcare-v0.3+json
133
- Content-Length:
134
- - '1536'
135
- Connection:
136
- - keep-alive
137
- Server:
138
- - nginx
139
- X-Xss-Protection:
140
- - 1; mode=block
141
- X-Content-Type-Options:
142
- - nosniff
143
- Vary:
144
- - Accept
145
- Warning:
146
- - '199 Miscellaneous warning: You are using the demo account; Please use API
147
- version 0.5, not 0.3'
148
- Allow:
149
- - GET, HEAD, OPTIONS
150
- Access-Control-Allow-Origin:
151
- - https://uploadcare.com
152
- X-Frame-Options:
153
- - SAMEORIGIN
154
- body:
155
- encoding: UTF-8
156
- string: '{"id":"73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2","datetime_created":"2018-05-25T07:13:58.345080Z","datetime_stored":"2018-05-25T07:14:44.293014Z","files_count":2,"cdn_url":"https://ucarecdn.com/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/","url":"https://api.uploadcare.com/groups/73e3cdbc-6495-4cf2-bbd1-413e6cb70004~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-05-25T07:14:43.631573Z","datetime_uploaded":"2018-05-25T07:13:56.295620Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/dbda04e6-c45c-454e-8e6d-443e2c92e781/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/dbda04e6-c45c-454e-8e6d-443e2c92e781/","uuid":"dbda04e6-c45c-454e-8e6d-443e2c92e781","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-05-25T07:14:44.261201Z","datetime_uploaded":"2018-05-25T07:13:56.319714Z","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/d684a061-1bce-49cc-ab60-f60650246516/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/d684a061-1bce-49cc-ab60-f60650246516/","uuid":"d684a061-1bce-49cc-ab60-f60650246516","source":null,"default_effects":""}]}'
157
- http_version:
158
- recorded_at: Fri, 25 May 2018 07:14:46 GMT
159
- - request:
160
- method: get
161
- uri: https://api.uploadcare.com/groups/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/
162
- body:
163
- encoding: US-ASCII
164
- string: ''
165
- headers:
166
- Accept:
167
- - application/vnd.uploadcare-v0.3+json
168
- User-Agent:
169
- - uploadcare-ruby/2.3.1.112/1.1.0/demopublickey
170
- Date:
171
- - Fri, 25 May 2018 09:12:13 -0000
172
- Authorization:
173
- - Uploadcare demopublickey:632d016b78d11080d93ef9af8b46af170918715a
174
- Accept-Encoding:
175
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
176
- response:
177
- status:
178
- code: 200
179
- message: OK
180
- headers:
181
- Date:
182
- - Fri, 25 May 2018 09:12:15 GMT
183
- Content-Type:
184
- - application/vnd.uploadcare-v0.3+json
185
- Content-Length:
186
- - '1536'
187
- Connection:
188
- - keep-alive
189
- Server:
190
- - nginx
191
- X-Xss-Protection:
192
- - 1; mode=block
193
- X-Content-Type-Options:
194
- - nosniff
195
- Vary:
196
- - Accept
197
- Warning:
198
- - '199 Miscellaneous warning: You are using the demo account; Please use API
199
- version 0.5, not 0.3'
200
- Allow:
201
- - GET, HEAD, OPTIONS
202
- Access-Control-Allow-Origin:
203
- - https://uploadcare.com
204
- X-Frame-Options:
205
- - SAMEORIGIN
206
- body:
207
- encoding: UTF-8
208
- string: '{"id":"c50e9a53-0b95-48ac-a4a9-6744052dbdab~2","datetime_created":"2018-05-25T09:11:57.237165Z","datetime_stored":"2018-05-25T09:12:13.960290Z","files_count":2,"cdn_url":"https://ucarecdn.com/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/","url":"https://api.uploadcare.com/groups/c50e9a53-0b95-48ac-a4a9-6744052dbdab~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-05-25T09:12:13.881956Z","datetime_uploaded":"2018-05-25T09:11:56.464753Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/81144776-fbd9-4c5f-887b-a5404da1fb71/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/81144776-fbd9-4c5f-887b-a5404da1fb71/","uuid":"81144776-fbd9-4c5f-887b-a5404da1fb71","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-05-25T09:12:13.911791Z","datetime_uploaded":"2018-05-25T09:11:56.488947Z","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/f40b1430-c576-42d5-b2ab-3c1fc39ee356/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/f40b1430-c576-42d5-b2ab-3c1fc39ee356/","uuid":"f40b1430-c576-42d5-b2ab-3c1fc39ee356","source":null,"default_effects":""}]}'
209
- http_version:
210
- recorded_at: Fri, 25 May 2018 09:12:14 GMT
211
- - request:
212
- method: get
213
- uri: https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/
214
- body:
215
- encoding: US-ASCII
216
- string: ''
217
- headers:
218
- Accept:
219
- - application/vnd.uploadcare-v0.3+json
220
- User-Agent:
221
- - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha2)
222
- Date:
223
- - Mon, 28 May 2018 19:05:28 -0000
224
- Authorization:
225
- - Uploadcare demopublickey:ef119e40ef0462d15d889daba0fa992d4ee17f7a
226
- Accept-Encoding:
227
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
228
- response:
229
- status:
230
- code: 200
231
- message: OK
232
- headers:
233
- Date:
234
- - Mon, 28 May 2018 19:05:29 GMT
235
- Content-Type:
236
- - application/vnd.uploadcare-v0.3+json
237
- Content-Length:
238
- - '1536'
239
- Connection:
240
- - keep-alive
241
- Server:
242
- - nginx
243
- X-Xss-Protection:
244
- - 1; mode=block
245
- X-Content-Type-Options:
246
- - nosniff
247
- Vary:
248
- - Accept
249
- Warning:
250
- - '199 Miscellaneous warning: You are using the demo account; Please use API
251
- version 0.5, not 0.3'
252
- Allow:
253
- - GET, HEAD, OPTIONS
254
- Access-Control-Allow-Origin:
255
- - https://uploadcare.com
256
- X-Frame-Options:
257
- - SAMEORIGIN
258
- body:
259
- encoding: UTF-8
260
- string: '{"id":"19073296-2315-4726-817b-46398b2c7431~2","datetime_created":"2018-05-28T19:05:04.518599Z","datetime_stored":"2018-05-28T19:05:25.719275Z","files_count":2,"cdn_url":"https://ucarecdn.com/19073296-2315-4726-817b-46398b2c7431~2/","url":"https://api.uploadcare.com/groups/19073296-2315-4726-817b-46398b2c7431~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:25.637792Z","datetime_uploaded":"2018-05-28T19:05:02.297907Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/42627fa0-e88e-4055-b8ed-98e6a9500737/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/42627fa0-e88e-4055-b8ed-98e6a9500737/","uuid":"42627fa0-e88e-4055-b8ed-98e6a9500737","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-05-28T19:05:25.693326Z","datetime_uploaded":"2018-05-28T19:05:02.352341Z","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/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1ee9aaa7-2aba-4700-9aa5-ce88cf95085b/","uuid":"1ee9aaa7-2aba-4700-9aa5-ce88cf95085b","source":null,"default_effects":""}]}'
261
- http_version:
262
- recorded_at: Mon, 28 May 2018 19:05:29 GMT
263
- - request:
264
- method: get
265
- uri: https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/
266
- body:
267
- encoding: US-ASCII
268
- string: ''
269
- headers:
270
- Accept:
271
- - application/vnd.uploadcare-v0.3+json
272
- User-Agent:
273
- - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
274
- Date:
275
- - Sat, 02 Jun 2018 18:31:15 -0000
276
- Authorization:
277
- - Uploadcare demopublickey:c4c2d18158bb54e1cd5190a19ba47450b964cd10
278
- Accept-Encoding:
279
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
280
- response:
281
- status:
282
- code: 200
283
- message: OK
284
- headers:
285
- Date:
286
- - Sat, 02 Jun 2018 18:31:16 GMT
287
- Content-Type:
288
- - application/vnd.uploadcare-v0.3+json
289
- Content-Length:
290
- - '1536'
291
- Connection:
292
- - keep-alive
293
- Server:
294
- - nginx
295
- X-Xss-Protection:
296
- - 1; mode=block
297
- X-Content-Type-Options:
298
- - nosniff
299
- Vary:
300
- - Accept
301
- Warning:
302
- - '199 Miscellaneous warning: You are using the demo account; Please use API
303
- version 0.5, not 0.3'
304
- Allow:
305
- - GET, HEAD, OPTIONS
306
- Access-Control-Allow-Origin:
307
- - https://uploadcare.com
308
- X-Frame-Options:
309
- - SAMEORIGIN
310
- body:
311
- encoding: UTF-8
312
- string: '{"id":"d35a4f57-71e6-447e-8143-0912fd1f0f59~2","datetime_created":"2018-06-02T18:30:55.386068Z","datetime_stored":"2018-06-02T18:31:13.334381Z","files_count":2,"cdn_url":"https://ucarecdn.com/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","url":"https://api.uploadcare.com/groups/d35a4f57-71e6-447e-8143-0912fd1f0f59~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:31:12.745808Z","datetime_uploaded":"2018-06-02T18:30:53.594401Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/f3bbea1d-42d8-4564-a64f-4a72433aba0a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/f3bbea1d-42d8-4564-a64f-4a72433aba0a/","uuid":"f3bbea1d-42d8-4564-a64f-4a72433aba0a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:31:13.304402Z","datetime_uploaded":"2018-06-02T18:30:53.619984Z","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/fd3af95e-77a7-403b-abeb-9296c9e6969f/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/fd3af95e-77a7-403b-abeb-9296c9e6969f/","uuid":"fd3af95e-77a7-403b-abeb-9296c9e6969f","source":null,"default_effects":""}]}'
313
- http_version:
314
- recorded_at: Sat, 02 Jun 2018 18:31:16 GMT
315
- - request:
316
- method: get
317
- uri: https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/
318
- body:
319
- encoding: US-ASCII
320
- string: ''
321
- headers:
322
- Accept:
323
- - application/vnd.uploadcare-v0.3+json
324
- User-Agent:
325
- - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
326
- Date:
327
- - Sat, 02 Jun 2018 18:35:25 -0000
328
- Authorization:
329
- - Uploadcare demopublickey:d1bbb9821b10229d3b577aaf9b5d3270d2376cae
330
- Accept-Encoding:
331
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
332
- response:
333
- status:
334
- code: 200
335
- message: OK
336
- headers:
337
- Date:
338
- - Sat, 02 Jun 2018 18:35:27 GMT
339
- Content-Type:
340
- - application/vnd.uploadcare-v0.3+json
341
- Content-Length:
342
- - '1536'
343
- Connection:
344
- - keep-alive
345
- Server:
346
- - nginx
347
- X-Xss-Protection:
348
- - 1; mode=block
349
- X-Content-Type-Options:
350
- - nosniff
351
- Vary:
352
- - Accept
353
- Warning:
354
- - '199 Miscellaneous warning: You are using the demo account; Please use API
355
- version 0.5, not 0.3'
356
- Allow:
357
- - GET, HEAD, OPTIONS
358
- Access-Control-Allow-Origin:
359
- - https://uploadcare.com
360
- X-Frame-Options:
361
- - SAMEORIGIN
362
- body:
363
- encoding: UTF-8
364
- string: '{"id":"04058c13-549a-495a-bab8-83a5deaae0a0~2","datetime_created":"2018-06-02T18:34:54.305546Z","datetime_stored":"2018-06-02T18:35:23.343294Z","files_count":2,"cdn_url":"https://ucarecdn.com/04058c13-549a-495a-bab8-83a5deaae0a0~2/","url":"https://api.uploadcare.com/groups/04058c13-549a-495a-bab8-83a5deaae0a0~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:35:21.726449Z","datetime_uploaded":"2018-06-02T18:34:52.263294Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/36e223f9-9fc6-4283-9245-34a4a690379a/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/36e223f9-9fc6-4283-9245-34a4a690379a/","uuid":"36e223f9-9fc6-4283-9245-34a4a690379a","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:35:22.596718Z","datetime_uploaded":"2018-06-02T18:34:52.306599Z","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/1dacbb47-491d-42e2-83a7-38534f4da7a6/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/1dacbb47-491d-42e2-83a7-38534f4da7a6/","uuid":"1dacbb47-491d-42e2-83a7-38534f4da7a6","source":null,"default_effects":""}]}'
365
- http_version:
366
- recorded_at: Sat, 02 Jun 2018 18:35:27 GMT
367
- - request:
368
- method: get
369
- uri: https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/
370
- body:
371
- encoding: US-ASCII
372
- string: ''
373
- headers:
374
- Accept:
375
- - application/vnd.uploadcare-v0.3+json
376
- User-Agent:
377
- - UploadcareRuby/1.2.1/demopublickey (Ruby/2.3.1.112; Rails/5.2.0; UploadcareRails/1.2.0-alpha3)
378
- Date:
379
- - Sat, 02 Jun 2018 18:39:38 -0000
380
- Authorization:
381
- - Uploadcare demopublickey:51130dc0c8cc8f547abb9e5e6fbf69d557fa6eb8
382
- Accept-Encoding:
383
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
384
- response:
385
- status:
386
- code: 200
387
- message: OK
388
- headers:
389
- Date:
390
- - Sat, 02 Jun 2018 18:39:40 GMT
391
- Content-Type:
392
- - application/vnd.uploadcare-v0.3+json
393
- Content-Length:
394
- - '1536'
395
- Connection:
396
- - keep-alive
397
- Server:
398
- - nginx
399
- X-Xss-Protection:
400
- - 1; mode=block
401
- X-Content-Type-Options:
402
- - nosniff
403
- Vary:
404
- - Accept
405
- Warning:
406
- - '199 Miscellaneous warning: You are using the demo account; Please use API
407
- version 0.5, not 0.3'
408
- Allow:
409
- - GET, HEAD, OPTIONS
410
- Access-Control-Allow-Origin:
411
- - https://uploadcare.com
412
- X-Frame-Options:
413
- - SAMEORIGIN
414
- body:
415
- encoding: UTF-8
416
- string: '{"id":"2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2","datetime_created":"2018-06-02T18:39:14.607820Z","datetime_stored":"2018-06-02T18:39:36.027204Z","files_count":2,"cdn_url":"https://ucarecdn.com/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","url":"https://api.uploadcare.com/groups/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/","files":[{"datetime_removed":null,"datetime_stored":"2018-06-02T18:39:35.312330Z","datetime_uploaded":"2018-06-02T18:39:13.011872Z","image_info":{"orientation":1,"format":"JPEG","height":1162,"width":800,"geo_location":null,"datetime_original":null,"dpi":[72,72]},"is_image":true,"is_ready":true,"mime_type":"image/jpeg","original_file_url":"https://ucarecdn.com/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/view2.jpg","original_filename":"view2.jpg","size":255570,"url":"https://api.uploadcare.com/files/2ce44dbc-e38f-4601-afb1-c6b4b36bc57b/","uuid":"2ce44dbc-e38f-4601-afb1-c6b4b36bc57b","source":null,"default_effects":""},{"datetime_removed":null,"datetime_stored":"2018-06-02T18:39:35.998539Z","datetime_uploaded":"2018-06-02T18:39:13.032614Z","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/61ab6222-418f-4239-b8ae-7ce94a6170fa/view.png","original_filename":"view.png","size":2785,"url":"https://api.uploadcare.com/files/61ab6222-418f-4239-b8ae-7ce94a6170fa/","uuid":"61ab6222-418f-4239-b8ae-7ce94a6170fa","source":null,"default_effects":""}]}'
417
- http_version:
418
- recorded_at: Sat, 02 Jun 2018 18:39:40 GMT
419
- recorded_with: VCR 4.0.0
Binary file
@@ -1,552 +0,0 @@
1
-  (0.1ms) begin transaction
2
-  (0.1ms) rollback transaction
3
-  (0.1ms) begin transaction
4
-  (0.1ms) rollback transaction
5
-  (0.1ms) begin transaction
6
-  (0.0ms) rollback transaction
7
-  (0.1ms) begin transaction
8
-  (0.1ms) rollback transaction
9
-  (0.2ms) begin transaction
10
-  (0.1ms) rollback transaction
11
-  (0.1ms) begin transaction
12
-  (0.1ms) rollback transaction
13
-  (0.1ms) begin transaction
14
-  (0.1ms) rollback transaction
15
-  (0.0ms) begin transaction
16
-  (0.1ms) rollback transaction
17
-  (0.1ms) begin transaction
18
-  (0.1ms) rollback transaction
19
-  (0.1ms) begin transaction
20
-  (0.1ms) rollback transaction
21
-  (0.1ms) begin transaction
22
-  (0.1ms) rollback transaction
23
-  (0.1ms) begin transaction
24
-  (0.1ms) rollback transaction
25
-  (0.1ms) begin transaction
26
-  (0.1ms) rollback transaction
27
-  (0.1ms) begin transaction
28
-  (0.1ms) rollback transaction
29
-  (0.1ms) begin transaction
30
-  (0.1ms) rollback transaction
31
-  (0.1ms) begin transaction
32
-  (0.1ms) rollback transaction
33
-  (0.1ms) begin transaction
34
-  (0.1ms) rollback transaction
35
-  (0.2ms) begin transaction
36
-  (0.1ms) rollback transaction
37
-  (0.1ms) begin transaction
38
-  (0.1ms) rollback transaction
39
-  (0.1ms) begin transaction
40
-  (0.1ms) rollback transaction
41
-  (0.1ms) begin transaction
42
-  (0.1ms) rollback transaction
43
-  (0.1ms) begin transaction
44
-  (0.1ms) rollback transaction
45
-  (0.1ms) begin transaction
46
-  (0.1ms) rollback transaction
47
-  (0.1ms) begin transaction
48
-  (0.1ms) rollback transaction
49
-  (0.1ms) begin transaction
50
-  (0.1ms) rollback transaction
51
-  (0.1ms) begin transaction
52
-  (0.1ms) rollback transaction
53
-  (0.1ms) begin transaction
54
-  (0.1ms) rollback transaction
55
-  (0.1ms) begin transaction
56
-  (0.1ms) rollback transaction
57
-  (0.1ms) begin transaction
58
-  (0.1ms) rollback transaction
59
-  (0.1ms) begin transaction
60
-  (0.1ms) rollback transaction
61
-  (0.1ms) begin transaction
62
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
-  (0.1ms) rollback transaction
65
-  (0.1ms) begin transaction
66
-  (0.1ms) rollback transaction
67
-  (0.1ms) begin transaction
68
-  (0.1ms) rollback transaction
69
-  (0.1ms) begin transaction
70
-  (0.1ms) rollback transaction
71
-  (0.1ms) begin transaction
72
-  (0.1ms) rollback transaction
73
-  (0.1ms) begin transaction
74
-  (0.1ms) rollback transaction
75
-  (0.1ms) begin transaction
76
-  (0.1ms) rollback transaction
77
-  (0.1ms) begin transaction
78
-  (0.1ms) rollback transaction
79
-  (0.1ms) begin transaction
80
-  (0.1ms) rollback transaction
81
-  (0.1ms) begin transaction
82
-  (0.1ms) rollback transaction
83
-  (0.1ms) begin transaction
84
-  (0.1ms) rollback transaction
85
-  (0.1ms) begin transaction
86
-  (0.1ms) SAVEPOINT active_record_1
87
- PostsWithCollectionAndFile Create (0.4ms) INSERT INTO "posts_with_collection_and_files" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-02 18:35:00.735207"], ["updated_at", "2018-06-02 18:35:00.735207"]]
88
-  (0.1ms) RELEASE SAVEPOINT active_record_1
89
-  (0.1ms) rollback transaction
90
-  (0.1ms) begin transaction
91
-  (0.1ms) rollback transaction
92
-  (0.1ms) begin transaction
93
-  (0.1ms) rollback transaction
94
-  (0.1ms) begin transaction
95
-  (0.1ms) rollback transaction
96
-  (0.1ms) begin transaction
97
-  (0.1ms) rollback transaction
98
-  (0.0ms) begin transaction
99
-  (0.0ms) rollback transaction
100
-  (0.1ms) begin transaction
101
-  (0.1ms) SAVEPOINT active_record_1
102
- Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-02 18:35:00.759316"], ["updated_at", "2018-06-02 18:35:00.759316"]]
103
-  (0.1ms) RELEASE SAVEPOINT active_record_1
104
-  (0.2ms) rollback transaction
105
-  (0.1ms) begin transaction
106
-  (0.0ms) rollback transaction
107
-  (0.1ms) begin transaction
108
-  (0.1ms) rollback transaction
109
-  (0.1ms) begin transaction
110
-  (0.1ms) rollback transaction
111
-  (0.1ms) begin transaction
112
-  (0.2ms) SAVEPOINT active_record_1
113
- Post Create (0.4ms) INSERT INTO "posts" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Post title"], ["file", "https://ucarecdn.com/7b4a1a96-ebba-4d41-98cc-477af78d9965/"], ["created_at", "2018-06-02 18:35:00.767340"], ["updated_at", "2018-06-02 18:35:00.767340"]]
114
-  (0.2ms) RELEASE SAVEPOINT active_record_1
115
-  (0.3ms) rollback transaction
116
-  (0.1ms) begin transaction
117
-  (0.2ms) SAVEPOINT active_record_1
118
- Post Create (1.0ms) INSERT INTO "posts" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Post title"], ["file", "https://ucarecdn.com/7b4a1a96-ebba-4d41-98cc-477af78d9965/"], ["created_at", "2018-06-02 18:35:03.267100"], ["updated_at", "2018-06-02 18:35:03.267100"]]
119
-  (0.1ms) RELEASE SAVEPOINT active_record_1
120
-  (0.1ms) SAVEPOINT active_record_1
121
- Post Destroy (0.4ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
122
-  (0.1ms) RELEASE SAVEPOINT active_record_1
123
-  (0.2ms) rollback transaction
124
-  (0.1ms) begin transaction
125
-  (0.2ms) rollback transaction
126
-  (0.1ms) begin transaction
127
-  (0.1ms) rollback transaction
128
-  (0.1ms) begin transaction
129
-  (0.1ms) rollback transaction
130
-  (0.1ms) begin transaction
131
-  (0.1ms) rollback transaction
132
-  (0.1ms) begin transaction
133
-  (0.1ms) rollback transaction
134
-  (0.1ms) begin transaction
135
-  (0.3ms) rollback transaction
136
-  (0.1ms) begin transaction
137
-  (0.1ms) rollback transaction
138
-  (0.1ms) begin transaction
139
-  (0.0ms) rollback transaction
140
-  (0.0ms) begin transaction
141
-  (0.1ms) rollback transaction
142
-  (0.1ms) begin transaction
143
-  (0.1ms) SAVEPOINT active_record_1
144
- PostWithCollection Create (0.4ms) INSERT INTO "post_with_collections" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title"], ["file", "https://ucarecdn.com/04058c13-549a-495a-bab8-83a5deaae0a0~2/"], ["created_at", "2018-06-02 18:35:20.555889"], ["updated_at", "2018-06-02 18:35:20.555889"]]
145
-  (0.2ms) RELEASE SAVEPOINT active_record_1
146
-  (0.2ms) rollback transaction
147
-  (0.1ms) begin transaction
148
-  (0.1ms) rollback transaction
149
-  (0.1ms) begin transaction
150
-  (0.1ms) rollback transaction
151
-  (0.1ms) begin transaction
152
-  (0.1ms) rollback transaction
153
-  (0.1ms) begin transaction
154
-  (0.1ms) rollback transaction
155
-  (0.1ms) begin transaction
156
-  (0.1ms) rollback transaction
157
-  (0.1ms) begin transaction
158
-  (0.1ms) rollback transaction
159
-  (0.1ms) begin transaction
160
-  (0.1ms) rollback transaction
161
-  (0.1ms) begin transaction
162
-  (0.1ms) rollback transaction
163
-  (0.1ms) begin transaction
164
-  (0.1ms) rollback transaction
165
-  (0.1ms) begin transaction
166
-  (0.1ms) rollback transaction
167
-  (0.1ms) begin transaction
168
-  (0.1ms) rollback transaction
169
-  (0.1ms) begin transaction
170
-  (0.1ms) rollback transaction
171
-  (0.1ms) begin transaction
172
-  (0.1ms) rollback transaction
173
-  (0.1ms) begin transaction
174
-  (0.0ms) rollback transaction
175
-  (0.0ms) begin transaction
176
-  (0.0ms) rollback transaction
177
-  (0.0ms) begin transaction
178
-  (0.1ms) rollback transaction
179
-  (0.0ms) begin transaction
180
-  (0.0ms) rollback transaction
181
-  (0.0ms) begin transaction
182
-  (0.0ms) rollback transaction
183
-  (0.0ms) begin transaction
184
-  (0.0ms) rollback transaction
185
-  (0.0ms) begin transaction
186
-  (0.1ms) rollback transaction
187
-  (0.1ms) begin transaction
188
-  (0.0ms) rollback transaction
189
-  (0.0ms) begin transaction
190
-  (0.0ms) rollback transaction
191
-  (0.1ms) begin transaction
192
-  (0.1ms) rollback transaction
193
-  (0.1ms) begin transaction
194
-  (0.1ms) rollback transaction
195
-  (0.1ms) begin transaction
196
-  (0.1ms) rollback transaction
197
-  (0.1ms) begin transaction
198
-  (0.1ms) rollback transaction
199
-  (0.1ms) begin transaction
200
-  (0.0ms) rollback transaction
201
-  (0.1ms) begin transaction
202
-  (0.1ms) rollback transaction
203
-  (0.1ms) begin transaction
204
-  (0.1ms) rollback transaction
205
-  (0.1ms) begin transaction
206
-  (0.0ms) rollback transaction
207
-  (0.1ms) begin transaction
208
-  (0.0ms) rollback transaction
209
-  (0.1ms) begin transaction
210
-  (0.1ms) rollback transaction
211
-  (0.0ms) begin transaction
212
-  (0.1ms) rollback transaction
213
-  (0.0ms) begin transaction
214
-  (0.0ms) rollback transaction
215
-  (0.0ms) begin transaction
216
-  (0.1ms) rollback transaction
217
-  (0.0ms) begin transaction
218
-  (0.0ms) rollback transaction
219
-  (0.1ms) begin transaction
220
-  (0.1ms) rollback transaction
221
-  (0.1ms) begin transaction
222
-  (0.0ms) rollback transaction
223
-  (0.0ms) begin transaction
224
-  (0.0ms) rollback transaction
225
-  (0.1ms) begin transaction
226
-  (0.0ms) rollback transaction
227
-  (0.0ms) begin transaction
228
-  (0.1ms) rollback transaction
229
-  (0.0ms) begin transaction
230
-  (0.0ms) rollback transaction
231
-  (0.0ms) begin transaction
232
-  (0.1ms) rollback transaction
233
-  (0.1ms) begin transaction
234
-  (0.1ms) rollback transaction
235
-  (0.1ms) begin transaction
236
-  (0.1ms) rollback transaction
237
-  (0.1ms) begin transaction
238
-  (0.1ms) rollback transaction
239
-  (0.1ms) begin transaction
240
-  (0.1ms) rollback transaction
241
-  (0.1ms) begin transaction
242
-  (0.1ms) rollback transaction
243
-  (0.1ms) begin transaction
244
-  (0.1ms) rollback transaction
245
-  (0.1ms) begin transaction
246
-  (0.0ms) rollback transaction
247
-  (0.0ms) begin transaction
248
-  (0.0ms) rollback transaction
249
-  (0.0ms) begin transaction
250
-  (0.1ms) rollback transaction
251
-  (0.0ms) begin transaction
252
-  (0.0ms) rollback transaction
253
-  (0.0ms) begin transaction
254
-  (0.1ms) rollback transaction
255
-  (0.1ms) begin transaction
256
-  (0.1ms) rollback transaction
257
-  (0.1ms) begin transaction
258
-  (0.1ms) rollback transaction
259
-  (0.1ms) begin transaction
260
-  (0.1ms) rollback transaction
261
-  (0.1ms) begin transaction
262
-  (0.0ms) rollback transaction
263
-  (0.0ms) begin transaction
264
-  (0.0ms) rollback transaction
265
-  (0.1ms) begin transaction
266
-  (0.0ms) rollback transaction
267
-  (0.0ms) begin transaction
268
-  (0.0ms) rollback transaction
269
-  (0.1ms) begin transaction
270
-  (0.0ms) rollback transaction
271
-  (0.0ms) begin transaction
272
-  (0.0ms) rollback transaction
273
-  (0.0ms) begin transaction
274
-  (0.0ms) rollback transaction
275
-  (0.0ms) begin transaction
276
-  (0.0ms) rollback transaction
277
-  (0.1ms) begin transaction
278
-  (0.1ms) rollback transaction
279
-  (0.1ms) begin transaction
280
-  (0.1ms) rollback transaction
281
-  (0.2ms) begin transaction
282
-  (0.1ms) rollback transaction
283
-  (0.1ms) begin transaction
284
-  (0.1ms) rollback transaction
285
-  (0.1ms) begin transaction
286
-  (0.1ms) rollback transaction
287
-  (0.1ms) begin transaction
288
-  (0.1ms) rollback transaction
289
-  (0.1ms) begin transaction
290
-  (0.1ms) rollback transaction
291
-  (0.1ms) begin transaction
292
-  (0.1ms) rollback transaction
293
-  (0.3ms) begin transaction
294
-  (0.1ms) rollback transaction
295
-  (0.1ms) begin transaction
296
-  (0.1ms) rollback transaction
297
-  (0.1ms) begin transaction
298
-  (0.1ms) rollback transaction
299
-  (0.3ms) begin transaction
300
-  (0.1ms) rollback transaction
301
-  (0.1ms) begin transaction
302
-  (0.1ms) rollback transaction
303
-  (0.1ms) begin transaction
304
-  (0.1ms) rollback transaction
305
-  (0.1ms) begin transaction
306
-  (0.1ms) rollback transaction
307
-  (0.1ms) begin transaction
308
-  (0.1ms) rollback transaction
309
-  (0.1ms) begin transaction
310
-  (0.1ms) rollback transaction
311
-  (0.1ms) begin transaction
312
-  (0.1ms) rollback transaction
313
-  (0.1ms) begin transaction
314
-  (0.1ms) rollback transaction
315
-  (0.1ms) begin transaction
316
-  (0.1ms) rollback transaction
317
-  (0.1ms) begin transaction
318
-  (0.1ms) rollback transaction
319
-  (0.1ms) begin transaction
320
-  (0.1ms) rollback transaction
321
-  (0.1ms) begin transaction
322
-  (0.1ms) rollback transaction
323
-  (0.1ms) begin transaction
324
-  (0.1ms) rollback transaction
325
-  (0.1ms) begin transaction
326
-  (0.1ms) rollback transaction
327
-  (0.1ms) begin transaction
328
-  (0.1ms) rollback transaction
329
-  (0.1ms) begin transaction
330
-  (0.1ms) rollback transaction
331
-  (0.1ms) begin transaction
332
-  (0.1ms) rollback transaction
333
-  (0.1ms) begin transaction
334
-  (0.1ms) rollback transaction
335
-  (0.1ms) begin transaction
336
-  (0.1ms) rollback transaction
337
-  (0.1ms) begin transaction
338
-  (0.1ms) rollback transaction
339
-  (0.1ms) begin transaction
340
-  (0.1ms) rollback transaction
341
-  (0.1ms) begin transaction
342
-  (0.1ms) rollback transaction
343
-  (0.1ms) begin transaction
344
-  (0.1ms) rollback transaction
345
-  (0.1ms) begin transaction
346
-  (0.1ms) rollback transaction
347
-  (0.1ms) begin transaction
348
-  (0.1ms) rollback transaction
349
-  (0.1ms) begin transaction
350
-  (0.1ms) rollback transaction
351
-  (0.1ms) begin transaction
352
-  (0.1ms) rollback transaction
353
-  (0.1ms) begin transaction
354
-  (0.1ms) rollback transaction
355
-  (0.1ms) begin transaction
356
-  (0.1ms) rollback transaction
357
-  (0.1ms) begin transaction
358
-  (0.1ms) rollback transaction
359
-  (0.1ms) begin transaction
360
-  (0.1ms) rollback transaction
361
-  (0.1ms) begin transaction
362
-  (0.1ms) SAVEPOINT active_record_1
363
- PostsWithCollectionAndFile Create (0.4ms) INSERT INTO "posts_with_collection_and_files" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-02 18:39:21.468110"], ["updated_at", "2018-06-02 18:39:21.468110"]]
364
-  (0.1ms) RELEASE SAVEPOINT active_record_1
365
-  (0.1ms) rollback transaction
366
-  (0.1ms) begin transaction
367
-  (0.1ms) rollback transaction
368
-  (0.1ms) begin transaction
369
-  (0.1ms) rollback transaction
370
-  (0.1ms) begin transaction
371
-  (0.0ms) rollback transaction
372
-  (0.1ms) begin transaction
373
-  (0.0ms) rollback transaction
374
-  (0.1ms) begin transaction
375
-  (0.1ms) rollback transaction
376
-  (0.0ms) begin transaction
377
-  (0.1ms) SAVEPOINT active_record_1
378
- Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-02 18:39:21.493606"], ["updated_at", "2018-06-02 18:39:21.493606"]]
379
-  (0.1ms) RELEASE SAVEPOINT active_record_1
380
-  (0.1ms) rollback transaction
381
-  (0.0ms) begin transaction
382
-  (0.0ms) rollback transaction
383
-  (0.1ms) begin transaction
384
-  (0.0ms) rollback transaction
385
-  (0.1ms) begin transaction
386
-  (0.0ms) rollback transaction
387
-  (0.0ms) begin transaction
388
-  (0.1ms) SAVEPOINT active_record_1
389
- Post Create (0.3ms) INSERT INTO "posts" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Post title"], ["file", "https://ucarecdn.com/760f249c-77d2-4952-8b7b-f1ca23daf3f4/"], ["created_at", "2018-06-02 18:39:21.499707"], ["updated_at", "2018-06-02 18:39:21.499707"]]
390
-  (0.2ms) RELEASE SAVEPOINT active_record_1
391
-  (0.2ms) rollback transaction
392
-  (0.1ms) begin transaction
393
-  (0.1ms) SAVEPOINT active_record_1
394
- Post Create (0.4ms) INSERT INTO "posts" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Post title"], ["file", "https://ucarecdn.com/760f249c-77d2-4952-8b7b-f1ca23daf3f4/"], ["created_at", "2018-06-02 18:39:23.818821"], ["updated_at", "2018-06-02 18:39:23.818821"]]
395
-  (0.2ms) RELEASE SAVEPOINT active_record_1
396
-  (0.1ms) SAVEPOINT active_record_1
397
- Post Destroy (0.3ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
398
-  (0.1ms) RELEASE SAVEPOINT active_record_1
399
-  (0.2ms) rollback transaction
400
-  (0.1ms) begin transaction
401
-  (0.1ms) rollback transaction
402
-  (0.1ms) begin transaction
403
-  (0.1ms) rollback transaction
404
-  (0.1ms) begin transaction
405
-  (0.1ms) rollback transaction
406
-  (0.1ms) begin transaction
407
-  (0.1ms) rollback transaction
408
-  (0.1ms) begin transaction
409
-  (0.1ms) rollback transaction
410
-  (0.1ms) begin transaction
411
-  (0.1ms) rollback transaction
412
-  (0.1ms) begin transaction
413
-  (0.1ms) rollback transaction
414
-  (0.1ms) begin transaction
415
-  (0.1ms) rollback transaction
416
-  (0.3ms) begin transaction
417
-  (0.1ms) rollback transaction
418
-  (0.0ms) begin transaction
419
-  (0.1ms) SAVEPOINT active_record_1
420
- PostWithCollection Create (0.5ms) INSERT INTO "post_with_collections" ("title", "file", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title"], ["file", "https://ucarecdn.com/2d40a7e9-bab4-446d-8d7a-b9fc5438c04c~2/"], ["created_at", "2018-06-02 18:39:34.107666"], ["updated_at", "2018-06-02 18:39:34.107666"]]
421
-  (0.1ms) RELEASE SAVEPOINT active_record_1
422
-  (0.2ms) rollback transaction
423
-  (0.2ms) begin transaction
424
-  (0.1ms) rollback transaction
425
-  (0.1ms) begin transaction
426
-  (0.0ms) rollback transaction
427
-  (0.0ms) begin transaction
428
-  (0.1ms) rollback transaction
429
-  (0.1ms) begin transaction
430
-  (0.1ms) rollback transaction
431
-  (0.4ms) begin transaction
432
-  (0.1ms) rollback transaction
433
-  (0.1ms) begin transaction
434
-  (0.1ms) rollback transaction
435
-  (0.1ms) begin transaction
436
-  (0.1ms) rollback transaction
437
-  (0.2ms) begin transaction
438
-  (0.1ms) rollback transaction
439
-  (0.1ms) begin transaction
440
-  (0.1ms) rollback transaction
441
-  (0.1ms) begin transaction
442
-  (0.1ms) rollback transaction
443
-  (0.1ms) begin transaction
444
-  (0.1ms) rollback transaction
445
-  (0.1ms) begin transaction
446
-  (0.1ms) rollback transaction
447
-  (0.1ms) begin transaction
448
-  (0.1ms) rollback transaction
449
-  (0.1ms) begin transaction
450
-  (0.1ms) rollback transaction
451
-  (0.1ms) begin transaction
452
-  (0.0ms) rollback transaction
453
-  (0.0ms) begin transaction
454
-  (0.0ms) rollback transaction
455
-  (0.0ms) begin transaction
456
-  (0.0ms) rollback transaction
457
-  (0.0ms) begin transaction
458
-  (0.0ms) rollback transaction
459
-  (0.0ms) begin transaction
460
-  (0.0ms) rollback transaction
461
-  (0.1ms) begin transaction
462
-  (0.0ms) rollback transaction
463
-  (0.0ms) begin transaction
464
-  (0.0ms) rollback transaction
465
-  (0.0ms) begin transaction
466
-  (0.0ms) rollback transaction
467
-  (0.0ms) begin transaction
468
-  (0.0ms) rollback transaction
469
-  (0.0ms) begin transaction
470
-  (0.1ms) rollback transaction
471
-  (0.1ms) begin transaction
472
-  (0.1ms) rollback transaction
473
-  (0.1ms) begin transaction
474
-  (0.0ms) rollback transaction
475
-  (0.0ms) begin transaction
476
-  (0.1ms) rollback transaction
477
-  (0.1ms) begin transaction
478
-  (0.1ms) rollback transaction
479
-  (0.0ms) begin transaction
480
-  (0.0ms) rollback transaction
481
-  (0.0ms) begin transaction
482
-  (0.0ms) rollback transaction
483
-  (0.1ms) begin transaction
484
-  (0.1ms) rollback transaction
485
-  (0.1ms) begin transaction
486
-  (0.1ms) rollback transaction
487
-  (0.1ms) begin transaction
488
-  (0.1ms) rollback transaction
489
-  (0.1ms) begin transaction
490
-  (0.1ms) rollback transaction
491
-  (0.1ms) begin transaction
492
-  (0.2ms) rollback transaction
493
-  (0.1ms) begin transaction
494
-  (0.1ms) rollback transaction
495
-  (0.1ms) begin transaction
496
-  (0.1ms) rollback transaction
497
-  (0.1ms) begin transaction
498
-  (0.1ms) rollback transaction
499
-  (0.1ms) begin transaction
500
-  (0.1ms) rollback transaction
501
-  (0.0ms) begin transaction
502
-  (0.0ms) rollback transaction
503
-  (0.1ms) begin transaction
504
-  (0.1ms) rollback transaction
505
-  (0.0ms) begin transaction
506
-  (0.0ms) rollback transaction
507
-  (0.0ms) begin transaction
508
-  (0.0ms) rollback transaction
509
-  (0.0ms) begin transaction
510
-  (0.0ms) rollback transaction
511
-  (0.0ms) begin transaction
512
-  (0.1ms) rollback transaction
513
-  (0.0ms) begin transaction
514
-  (0.1ms) rollback transaction
515
-  (0.1ms) begin transaction
516
-  (0.1ms) rollback transaction
517
-  (0.1ms) begin transaction
518
-  (0.0ms) rollback transaction
519
-  (0.1ms) begin transaction
520
-  (0.1ms) rollback transaction
521
-  (0.1ms) begin transaction
522
-  (0.1ms) rollback transaction
523
-  (0.1ms) begin transaction
524
-  (0.0ms) rollback transaction
525
-  (0.1ms) begin transaction
526
-  (0.1ms) rollback transaction
527
-  (0.1ms) begin transaction
528
-  (0.1ms) rollback transaction
529
-  (0.0ms) begin transaction
530
-  (0.0ms) rollback transaction
531
-  (0.0ms) begin transaction
532
-  (0.1ms) rollback transaction
533
-  (0.1ms) begin transaction
534
-  (0.0ms) rollback transaction
535
-  (0.1ms) begin transaction
536
-  (0.1ms) rollback transaction
537
-  (0.1ms) begin transaction
538
-  (0.1ms) rollback transaction
539
-  (0.1ms) begin transaction
540
-  (0.0ms) rollback transaction
541
-  (0.0ms) begin transaction
542
-  (0.0ms) rollback transaction
543
-  (0.0ms) begin transaction
544
-  (0.0ms) rollback transaction
545
-  (0.1ms) begin transaction
546
-  (0.1ms) rollback transaction
547
-  (0.1ms) begin transaction
548
-  (0.3ms) rollback transaction
549
-  (0.1ms) begin transaction
550
-  (0.1ms) rollback transaction
551
-  (0.1ms) begin transaction
552
-  (0.1ms) rollback transaction