uploadcare-rails 2.1.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uploadcare/rails/api/rest/addons_api.rb +54 -0
  3. data/lib/uploadcare/rails/api/rest/base.rb +3 -2
  4. data/lib/uploadcare/rails/api/rest/conversion_api.rb +8 -8
  5. data/lib/uploadcare/rails/api/rest/file_api.rb +20 -13
  6. data/lib/uploadcare/rails/api/rest/file_metadata_api.rb +42 -0
  7. data/lib/uploadcare/rails/api/rest/group_api.rb +12 -6
  8. data/lib/uploadcare/rails/api/rest/project_api.rb +1 -1
  9. data/lib/uploadcare/rails/api/rest/webhook_api.rb +6 -6
  10. data/lib/uploadcare/rails/api/upload/base.rb +2 -0
  11. data/lib/uploadcare/rails/api/upload/upload_api.rb +4 -4
  12. data/lib/uploadcare/rails/configuration.rb +3 -1
  13. data/lib/uploadcare/rails/objects/group.rb +1 -3
  14. data/lib/uploadcare/rails/transformations/image_transformations.rb +1 -1
  15. data/lib/uploadcare/rails/version.rb +1 -1
  16. data/lib/uploadcare-rails.rb +2 -0
  17. metadata +31 -126
  18. data/spec/fixtures/kitten.jpeg +0 -0
  19. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +0 -62
  20. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +0 -62
  21. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +0 -62
  22. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +0 -62
  23. data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +0 -59
  24. data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +0 -59
  25. data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +0 -60
  26. data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +0 -58
  27. data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +0 -58
  28. data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +0 -58
  29. data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +0 -61
  30. data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +0 -57
  31. data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +0 -58
  32. data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +0 -57
  33. data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +0 -57
  34. data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +0 -52
  35. data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +0 -57
  36. data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +0 -57
  37. data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +0 -59
  38. data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +0 -55
  39. data/spec/fixtures/vcr_cassettes/upload_upload_one_file.yml +0 -105
  40. data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +0 -111
  41. data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +0 -59
  42. data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +0 -57
  43. data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +0 -59
  44. data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +0 -59
  45. data/spec/generators/uploadcare_config_generator_spec.rb +0 -31
  46. data/spec/spec_helper.rb +0 -26
  47. data/spec/support/generators.rb +0 -41
  48. data/spec/support/vcr.rb +0 -14
  49. data/spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb +0 -40
  50. data/spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb +0 -46
  51. data/spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb +0 -33
  52. data/spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb +0 -32
  53. data/spec/uploadcare/rails/api/rest/conversion_api_spec.rb +0 -110
  54. data/spec/uploadcare/rails/api/rest/file_api_spec.rb +0 -85
  55. data/spec/uploadcare/rails/api/rest/group_api_spec.rb +0 -61
  56. data/spec/uploadcare/rails/api/rest/project_api_spec.rb +0 -33
  57. data/spec/uploadcare/rails/api/rest/webhook_api_spec.rb +0 -67
  58. data/spec/uploadcare/rails/api/upload/upload_api_spec.rb +0 -82
  59. data/spec/uploadcare/rails/jobs/delete_file_job_spec.rb +0 -15
  60. data/spec/uploadcare/rails/jobs/store_file_job_spec.rb +0 -15
  61. data/spec/uploadcare/rails/jobs/store_group_job_spec.rb +0 -15
  62. data/spec/uploadcare/rails/objects/file_spec.rb +0 -77
  63. data/spec/uploadcare/rails/objects/group_spec.rb +0 -87
  64. data/spec/uploadcare/rails/services/id_extractor_spec.rb +0 -26
  65. data/spec/uploadcare/rails/transformations/image_transformations_spec.rb +0 -120
  66. data/spec/uploadcare/rails_spec.rb +0 -7
@@ -1,60 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.uploadcare.com/files/
6
- body:
7
- encoding: UTF-8
8
- string: '{"source":"d43e8281-a42a-4f30-9fee-4a166998d15a","store":false}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
- Date:
17
- - Thu, 22 Jul 2021 07:21:10 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:9e0f878fa2180c0d1d5edb0ffabab206aaebb434
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 201
27
- message: Created
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 07:21:11 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '533'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Location:
40
- - https://api.uploadcare.com/files/7bfa5998-cb01-4b83-893a-27b55b8e9bd9/
41
- Access-Control-Allow-Origin:
42
- - https://uploadcare.com
43
- Vary:
44
- - Accept
45
- Allow:
46
- - GET, HEAD, OPTIONS, POST
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- X-Content-Type-Options:
50
- - nosniff
51
- X-Frame-Options:
52
- - SAMEORIGIN
53
- X-Robots-Tag:
54
- - noindex, nofollow, nosnippet, noarchive
55
- body:
56
- encoding: ASCII-8BIT
57
- string: '{"type":"file","result":{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2021-07-22T07:21:11.521628Z","image_info":null,"is_image":null,"is_ready":true,"mime_type":"application/octet-stream","original_file_url":"https://ucarecdn.com/7bfa5998-cb01-4b83-893a-27b55b8e9bd9/1702.png","original_filename":"-17.0\u00b0\u0421
58
- (2).png","size":0,"url":"https://api.uploadcare.com/files/7bfa5998-cb01-4b83-893a-27b55b8e9bd9/","uuid":"7bfa5998-cb01-4b83-893a-27b55b8e9bd9","source":"/d43e8281-a42a-4f30-9fee-4a166998d15a/"}}'
59
- recorded_at: Thu, 22 Jul 2021 07:21:11 GMT
60
- recorded_with: VCR 6.0.0
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
- Date:
17
- - Thu, 22 Jul 2021 07:01:53 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:138e027d6d720bba1393f3ae8d227ac9741394bd
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 07:01:53 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '570'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, GET, HEAD, OPTIONS
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"datetime_removed":"2021-07-22T07:01:53.647062Z","datetime_stored":null,"datetime_uploaded":"2021-07-22T06:51:13.085531Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":null,"original_filename":"-17.0\u00b0\u0421
56
- (2).png","size":514,"url":"https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/","uuid":"5ae54c37-754c-4982-8de4-3f242a88ce17","source":null}'
57
- recorded_at: Thu, 22 Jul 2021 07:01:53 GMT
58
- recorded_with: VCR 6.0.0
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: https://api.uploadcare.com/files/storage/
6
- body:
7
- encoding: UTF-8
8
- string: '["37d70281-cc30-4c59-b8d6-e11c472dec40"]'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
16
- Date:
17
- - Thu, 22 Jul 2021 08:38:38 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:e05af6d220eaa34112d6b7b0bd03f8a22d9e109f
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 08:38:39 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '611'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, OPTIONS, PUT
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"status":"ok","result":[{"datetime_removed":"2021-07-22T08:38:39.167191Z","datetime_stored":null,"datetime_uploaded":"2021-07-22T07:28:44.481441Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":null,"original_filename":"-17.0\u00b0\u0421
56
- (2).png","size":514,"url":"https://api.uploadcare.com/files/37d70281-cc30-4c59-b8d6-e11c472dec40/","uuid":"37d70281-cc30-4c59-b8d6-e11c472dec40","source":null}],"problems":{}}'
57
- recorded_at: Thu, 22 Jul 2021 08:38:39 GMT
58
- recorded_with: VCR 6.0.0
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
- Date:
17
- - Thu, 22 Jul 2021 07:01:51 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:d9638db72d751c7f8fe116dca66aa60470c3c505
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 07:01:52 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '609'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, GET, HEAD, OPTIONS
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2021-07-22T06:51:13.085531Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/5ae54c37-754c-4982-8de4-3f242a88ce17/1702.png","original_filename":"-17.0\u00b0\u0421
56
- (2).png","size":514,"url":"https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/","uuid":"5ae54c37-754c-4982-8de4-3f242a88ce17","source":null}'
57
- recorded_at: Thu, 22 Jul 2021 07:01:52 GMT
58
- recorded_with: VCR 6.0.0
@@ -1,61 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/files/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
- Date:
17
- - Thu, 22 Jul 2021 07:17:44 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:2c946903fe8c7869f6849b781c1505d00cecbd82
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 07:17:45 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '3841'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - GET, HEAD, OPTIONS, POST
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"next":null,"previous":null,"total":6,"per_page":100,"results":[{"datetime_removed":null,"datetime_stored":"2021-07-21T10:10:15.455617Z","datetime_uploaded":"2021-07-21T10:10:15.364863Z","image_info":{"width":82,"height":19,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/3542c513-5cf4-4adb-97b0-bfa7fbd31fb5/170.png","original_filename":"-17.0\u00b0\u0421.png","size":861,"url":"https://api.uploadcare.com/files/3542c513-5cf4-4adb-97b0-bfa7fbd31fb5/","uuid":"3542c513-5cf4-4adb-97b0-bfa7fbd31fb5","source":null},{"datetime_removed":null,"datetime_stored":"2021-07-21T10:30:47.059311Z","datetime_uploaded":"2021-07-21T10:30:46.967311Z","image_info":{"width":82,"height":19,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/64215d18-1356-42cb-ab8c-7542290b6e1b/170.png","original_filename":"-17.0\u00b0\u0421.png","size":861,"url":"https://api.uploadcare.com/files/64215d18-1356-42cb-ab8c-7542290b6e1b/","uuid":"64215d18-1356-42cb-ab8c-7542290b6e1b","source":null},{"datetime_removed":null,"datetime_stored":"2021-07-21T10:30:47.037717Z","datetime_uploaded":"2021-07-21T10:30:46.973279Z","image_info":{"width":55,"height":13,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/59af53a6-3995-4136-85c6-dcdd471237d1/1701.png","original_filename":"-17.0\u00b0\u0421
56
- (1).png","size":987,"url":"https://api.uploadcare.com/files/59af53a6-3995-4136-85c6-dcdd471237d1/","uuid":"59af53a6-3995-4136-85c6-dcdd471237d1","source":null},{"datetime_removed":null,"datetime_stored":"2021-07-21T10:30:47.042454Z","datetime_uploaded":"2021-07-21T10:30:46.992745Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/8ee53f06-47b7-4b32-902b-51bb2a94ea06/1702.png","original_filename":"-17.0\u00b0\u0421
57
- (2).png","size":514,"url":"https://api.uploadcare.com/files/8ee53f06-47b7-4b32-902b-51bb2a94ea06/","uuid":"8ee53f06-47b7-4b32-902b-51bb2a94ea06","source":null},{"datetime_removed":null,"datetime_stored":null,"datetime_uploaded":"2021-07-22T06:51:48.199541Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/7d1988a4-1bf5-4953-98ab-7ecd592dca90/1702.png","original_filename":"-17.0\u00b0\u0421
58
- (2).png","size":514,"url":"https://api.uploadcare.com/files/7d1988a4-1bf5-4953-98ab-7ecd592dca90/","uuid":"7d1988a4-1bf5-4953-98ab-7ecd592dca90","source":null},{"datetime_removed":null,"datetime_stored":"2021-07-22T06:52:44.345836Z","datetime_uploaded":"2021-07-22T06:52:44.015656Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/d43e8281-a42a-4f30-9fee-4a166998d15a/1702.png","original_filename":"-17.0\u00b0\u0421
59
- (2).png","size":514,"url":"https://api.uploadcare.com/files/d43e8281-a42a-4f30-9fee-4a166998d15a/","uuid":"d43e8281-a42a-4f30-9fee-4a166998d15a","source":null}]}'
60
- recorded_at: Thu, 22 Jul 2021 07:17:45 GMT
61
- recorded_with: VCR 6.0.0
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/files/7c0bd507-961b-493e-aec9-b9be1697cf52/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Tue, 27 Jul 2021 09:38:00 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:6ff18c7a89921d22e71129c67307be2c4bb02287
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Tue, 27 Jul 2021 09:38:00 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '619'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, GET, HEAD, OPTIONS
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"datetime_removed":null,"datetime_stored":"2021-07-27T09:07:25.264944Z","datetime_uploaded":"2021-07-27T09:07:24.962347Z","image_info":{"width":1855,"height":1056,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":null,"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/7c0bd507-961b-493e-aec9-b9be1697cf52/444.png","original_filename":"444.png","size":578886,"url":"https://api.uploadcare.com/files/7c0bd507-961b-493e-aec9-b9be1697cf52/","uuid":"7c0bd507-961b-493e-aec9-b9be1697cf52","source":null}'
56
- recorded_at: Tue, 27 Jul 2021 09:38:00 GMT
57
- recorded_with: VCR 6.0.0
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/storage/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/3.0.0)
16
- Date:
17
- - Thu, 22 Jul 2021 07:01:52 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:ebe0023b72bdda6c5f637772accdac1151dc535b
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 07:01:52 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '634'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, GET, HEAD, OPTIONS, POST, PUT
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"datetime_removed":null,"datetime_stored":"2021-07-22T07:01:52.904554Z","datetime_uploaded":"2021-07-22T06:51:13.085531Z","image_info":{"width":48,"height":12,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/5ae54c37-754c-4982-8de4-3f242a88ce17/1702.png","original_filename":"-17.0\u00b0\u0421
56
- (2).png","size":514,"url":"https://api.uploadcare.com/files/5ae54c37-754c-4982-8de4-3f242a88ce17/","uuid":"5ae54c37-754c-4982-8de4-3f242a88ce17","source":null}'
57
- recorded_at: Thu, 22 Jul 2021 07:01:53 GMT
58
- recorded_with: VCR 6.0.0
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://api.uploadcare.com/files/storage/
6
- body:
7
- encoding: UTF-8
8
- string: '["64215d18-1356-42cb-ab8c-7542290b6e1b"]'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.5+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.0)
16
- Date:
17
- - Thu, 22 Jul 2021 08:38:37 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:40fe4f580517d5a0668145f9728d6d7b3bcaa91e
20
- Connection:
21
- - close
22
- Host:
23
- - api.uploadcare.com
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Date:
30
- - Thu, 22 Jul 2021 08:38:38 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.5+json
33
- Content-Length:
34
- - '670'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Access-Control-Allow-Origin:
40
- - https://uploadcare.com
41
- Vary:
42
- - Accept
43
- Allow:
44
- - DELETE, OPTIONS, PUT
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Frame-Options:
50
- - SAMEORIGIN
51
- X-Robots-Tag:
52
- - noindex, nofollow, nosnippet, noarchive
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"status":"ok","result":[{"datetime_removed":null,"datetime_stored":"2021-07-21T10:30:47.059311Z","datetime_uploaded":"2021-07-21T10:30:46.967311Z","image_info":{"width":82,"height":19,"format":"PNG","color_mode":"RGBA","geo_location":null,"orientation":null,"dpi":[72,72],"datetime_original":null,"sequence":false},"is_image":true,"is_ready":true,"mime_type":"image/png","original_file_url":"https://ucarecdn.com/64215d18-1356-42cb-ab8c-7542290b6e1b/170.png","original_filename":"-17.0\u00b0\u0421.png","size":861,"url":"https://api.uploadcare.com/files/64215d18-1356-42cb-ab8c-7542290b6e1b/","uuid":"64215d18-1356-42cb-ab8c-7542290b6e1b","source":null}],"problems":{}}'
56
- recorded_at: Thu, 22 Jul 2021 08:38:38 GMT
57
- recorded_with: VCR 6.0.0
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://upload.uploadcare.com/group/
6
- body:
7
- encoding: UTF-8
8
- string: "-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
9
- form-data; name=\"pub_key\"\r\n\r\n5d5bb5639e3f2df33674\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
10
- form-data; name=\"files[0]\"\r\n\r\nf55fcc80-58c1-42eb-9e8f-54d500296d38/resize/x600\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0\r\nContent-Disposition:
11
- form-data; name=\"files[1]\"\r\n\r\n4a6ef027-d4cd-49be-a383-8cdbe503aa03/resize/x600\r\n-----------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0--\r\n"
12
- headers:
13
- User-Agent:
14
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
15
- Content-Type:
16
- - multipart/form-data; boundary=---------------------b0ea15bb93e4b625964bedf1273ec9c25aa5ee0ec0
17
- Connection:
18
- - close
19
- Host:
20
- - upload.uploadcare.com
21
- response:
22
- status:
23
- code: 200
24
- message: OK
25
- headers:
26
- Date:
27
- - Fri, 23 Jul 2021 10:13:57 GMT
28
- Content-Type:
29
- - application/json
30
- Content-Length:
31
- - '1278'
32
- Connection:
33
- - close
34
- Server:
35
- - nginx
36
- Vary:
37
- - Accept-Encoding
38
- - Origin
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Access-Control-Allow-Methods:
42
- - GET, POST, HEAD, OPTIONS
43
- Access-Control-Allow-Headers:
44
- - DNT, X-PINGOTHER, X-UC-User-Agent
45
- Access-Control-Max-Age:
46
- - '1'
47
- Access-Control-Allow-Credentials:
48
- - 'true'
49
- X-Xss-Protection:
50
- - 1; mode=block
51
- X-Content-Type-Options:
52
- - nosniff
53
- body:
54
- encoding: ASCII-8BIT
55
- string: '{"id":"f7c23e06-9148-4bb6-b899-a3573e202ecb~2","datetime_created":"2021-07-23T10:13:57.351533Z","datetime_stored":null,"files_count":2,"cdn_url":"https://ucarecdn.com/f7c23e06-9148-4bb6-b899-a3573e202ecb~2/","url":"https://api.uploadcare.com/groups/f7c23e06-9148-4bb6-b899-a3573e202ecb~2/","files":[{"size":1290,"total":1290,"done":1290,"uuid":"f55fcc80-58c1-42eb-9e8f-54d500296d38","file_id":"f55fcc80-58c1-42eb-9e8f-54d500296d38","original_filename":"kitten.jpeg","is_image":true,"is_stored":false,"image_info":{"width":50,"height":50,"format":"JPEG","color_mode":"RGB","geo_location":null,"orientation":null,"dpi":[96,96],"datetime_original":null,"sequence":false},"video_info":null,"is_ready":true,"filename":"kitten.jpeg","mime_type":"application/octet-stream","default_effects":""},{"size":1290,"total":1290,"done":1290,"uuid":"4a6ef027-d4cd-49be-a383-8cdbe503aa03","file_id":"4a6ef027-d4cd-49be-a383-8cdbe503aa03","original_filename":"kitten.jpeg","is_image":true,"is_stored":false,"image_info":{"width":50,"height":50,"format":"JPEG","color_mode":"RGB","geo_location":null,"orientation":null,"dpi":[96,96],"datetime_original":null,"sequence":false},"video_info":null,"is_ready":true,"filename":"kitten.jpeg","mime_type":"application/octet-stream","default_effects":""}]}'
56
- recorded_at: Fri, 23 Jul 2021 10:13:57 GMT
57
- recorded_with: VCR 6.0.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://upload.uploadcare.com/group/info/?group_id=8b1362ed-b477-4a15-819a-2c6bb497d8bd~3&pub_key=demopublickey
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - UploadcareRuby/3.0.5/demopublickey (Ruby/2.7.0)
12
- Connection:
13
- - close
14
- Host:
15
- - upload.uploadcare.com
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Date:
22
- - Thu, 22 Jul 2021 09:30:37 GMT
23
- Content-Type:
24
- - application/json
25
- Content-Length:
26
- - '340'
27
- Connection:
28
- - close
29
- Server:
30
- - nginx
31
- Vary:
32
- - Accept-Encoding
33
- - Origin
34
- Access-Control-Allow-Origin:
35
- - "*"
36
- Access-Control-Allow-Methods:
37
- - GET, HEAD, OPTIONS
38
- Access-Control-Allow-Headers:
39
- - X-UC-User-Agent, X-PINGOTHER, DNT
40
- Access-Control-Max-Age:
41
- - '1'
42
- Access-Control-Allow-Credentials:
43
- - 'true'
44
- X-Xss-Protection:
45
- - 1; mode=block
46
- X-Content-Type-Options:
47
- - nosniff
48
- body:
49
- encoding: ASCII-8BIT
50
- string: '{"id":"8b1362ed-b477-4a15-819a-2c6bb497d8bd~3","datetime_created":"2013-04-16T14:13:42.600051Z","datetime_stored":"2015-02-03T11:23:47.824683Z","files_count":3,"cdn_url":"https://ucarecdn.com/8b1362ed-b477-4a15-819a-2c6bb497d8bd~3/","url":"https://api.uploadcare.com/groups/8b1362ed-b477-4a15-819a-2c6bb497d8bd~3/","files":[null,null,null]}'
51
- recorded_at: Thu, 22 Jul 2021 09:30:37 GMT
52
- recorded_with: VCR 6.0.0