uploadcare-rails 2.1.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadcare-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - "@dmitrijivanchenko (Dmitrij Ivanchenko)"
7
+ - "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: '6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4'
26
+ version: '6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uploadcare-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '4.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '4.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">"
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.4.4
47
+ version: '3.12'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">"
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.4.4
54
+ version: '3.12'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '5.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '5.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.48'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '1.48'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: vcr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '6.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '6.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: webmock
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '3.18'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '3.18'
111
111
  description: |
112
112
  Rails wrapper for Uploadcare service.
113
113
  Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
@@ -127,9 +127,11 @@ files:
127
127
  - lib/uploadcare/rails/action_view/uploadcare_uploader_tags.rb
128
128
  - lib/uploadcare/rails/active_record/mount_uploadcare_file.rb
129
129
  - lib/uploadcare/rails/active_record/mount_uploadcare_file_group.rb
130
+ - lib/uploadcare/rails/api/rest/addons_api.rb
130
131
  - lib/uploadcare/rails/api/rest/base.rb
131
132
  - lib/uploadcare/rails/api/rest/conversion_api.rb
132
133
  - lib/uploadcare/rails/api/rest/file_api.rb
134
+ - lib/uploadcare/rails/api/rest/file_metadata_api.rb
133
135
  - lib/uploadcare/rails/api/rest/group_api.rb
134
136
  - lib/uploadcare/rails/api/rest/project_api.rb
135
137
  - lib/uploadcare/rails/api/rest/webhook_api.rb
@@ -147,61 +149,13 @@ files:
147
149
  - lib/uploadcare/rails/services/id_extractor.rb
148
150
  - lib/uploadcare/rails/transformations/image_transformations.rb
149
151
  - lib/uploadcare/rails/version.rb
150
- - spec/fixtures/kitten.jpeg
151
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
152
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
153
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
154
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
155
- - spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
156
- - spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
157
- - spec/fixtures/vcr_cassettes/file_api_copy_file.yml
158
- - spec/fixtures/vcr_cassettes/file_api_delete_file.yml
159
- - spec/fixtures/vcr_cassettes/file_api_delete_files.yml
160
- - spec/fixtures/vcr_cassettes/file_api_get_file.yml
161
- - spec/fixtures/vcr_cassettes/file_api_get_files.yml
162
- - spec/fixtures/vcr_cassettes/file_api_load_file.yml
163
- - spec/fixtures/vcr_cassettes/file_api_store_file.yml
164
- - spec/fixtures/vcr_cassettes/file_api_store_files.yml
165
- - spec/fixtures/vcr_cassettes/group_api_create_group.yml
166
- - spec/fixtures/vcr_cassettes/group_api_get_group.yml
167
- - spec/fixtures/vcr_cassettes/group_api_get_groups.yml
168
- - spec/fixtures/vcr_cassettes/group_api_store_group.yml
169
- - spec/fixtures/vcr_cassettes/project_api_get_project.yml
170
- - spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
171
- - spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
172
- - spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
173
- - spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
174
- - spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
175
- - spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
176
- - spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
177
- - spec/generators/uploadcare_config_generator_spec.rb
178
- - spec/spec_helper.rb
179
- - spec/support/generators.rb
180
- - spec/support/vcr.rb
181
- - spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
182
- - spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
183
- - spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
184
- - spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
185
- - spec/uploadcare/rails/api/rest/conversion_api_spec.rb
186
- - spec/uploadcare/rails/api/rest/file_api_spec.rb
187
- - spec/uploadcare/rails/api/rest/group_api_spec.rb
188
- - spec/uploadcare/rails/api/rest/project_api_spec.rb
189
- - spec/uploadcare/rails/api/rest/webhook_api_spec.rb
190
- - spec/uploadcare/rails/api/upload/upload_api_spec.rb
191
- - spec/uploadcare/rails/jobs/delete_file_job_spec.rb
192
- - spec/uploadcare/rails/jobs/store_file_job_spec.rb
193
- - spec/uploadcare/rails/jobs/store_group_job_spec.rb
194
- - spec/uploadcare/rails/objects/file_spec.rb
195
- - spec/uploadcare/rails/objects/group_spec.rb
196
- - spec/uploadcare/rails/services/id_extractor_spec.rb
197
- - spec/uploadcare/rails/transformations/image_transformations_spec.rb
198
- - spec/uploadcare/rails_spec.rb
199
152
  homepage: https://uploadcare.com/docs/integrations/
200
153
  licenses:
201
154
  - MIT
202
155
  metadata:
203
156
  github: https://github.com/uploadcare/uploadcare-rails
204
157
  issue_tracker: https://github.com/uploadcare/uploadcare-rails/issues
158
+ rubygems_mfa_required: 'true'
205
159
  post_install_message:
206
160
  rdoc_options: []
207
161
  require_paths:
@@ -210,64 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
164
  requirements:
211
165
  - - ">="
212
166
  - !ruby/object:Gem::Version
213
- version: 2.4.0
167
+ version: 2.7.0
214
168
  required_rubygems_version: !ruby/object:Gem::Requirement
215
169
  requirements:
216
170
  - - ">="
217
171
  - !ruby/object:Gem::Version
218
172
  version: '0'
219
173
  requirements: []
220
- rubygems_version: 3.0.1
174
+ rubygems_version: 3.4.6
221
175
  signing_key:
222
176
  specification_version: 4
223
177
  summary: Rails gem for Uploadcare
224
- test_files:
225
- - spec/generators/uploadcare_config_generator_spec.rb
226
- - spec/fixtures/vcr_cassettes/group_api_get_group.yml
227
- - spec/fixtures/vcr_cassettes/group_api_create_group.yml
228
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
229
- - spec/fixtures/vcr_cassettes/file_api_store_file.yml
230
- - spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
231
- - spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
232
- - spec/fixtures/vcr_cassettes/group_api_get_groups.yml
233
- - spec/fixtures/vcr_cassettes/group_api_store_group.yml
234
- - spec/fixtures/vcr_cassettes/file_api_get_files.yml
235
- - spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
236
- - spec/fixtures/vcr_cassettes/file_api_delete_file.yml
237
- - spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
238
- - spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
239
- - spec/fixtures/vcr_cassettes/project_api_get_project.yml
240
- - spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
241
- - spec/fixtures/vcr_cassettes/file_api_get_file.yml
242
- - spec/fixtures/vcr_cassettes/file_api_copy_file.yml
243
- - spec/fixtures/vcr_cassettes/file_api_store_files.yml
244
- - spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
245
- - spec/fixtures/vcr_cassettes/file_api_delete_files.yml
246
- - spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
247
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
248
- - spec/fixtures/vcr_cassettes/file_api_load_file.yml
249
- - spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
250
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
251
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
252
- - spec/fixtures/kitten.jpeg
253
- - spec/uploadcare/rails_spec.rb
254
- - spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
255
- - spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
256
- - spec/uploadcare/rails/objects/group_spec.rb
257
- - spec/uploadcare/rails/objects/file_spec.rb
258
- - spec/uploadcare/rails/jobs/delete_file_job_spec.rb
259
- - spec/uploadcare/rails/jobs/store_file_job_spec.rb
260
- - spec/uploadcare/rails/jobs/store_group_job_spec.rb
261
- - spec/uploadcare/rails/transformations/image_transformations_spec.rb
262
- - spec/uploadcare/rails/api/upload/upload_api_spec.rb
263
- - spec/uploadcare/rails/api/rest/project_api_spec.rb
264
- - spec/uploadcare/rails/api/rest/webhook_api_spec.rb
265
- - spec/uploadcare/rails/api/rest/group_api_spec.rb
266
- - spec/uploadcare/rails/api/rest/file_api_spec.rb
267
- - spec/uploadcare/rails/api/rest/conversion_api_spec.rb
268
- - spec/uploadcare/rails/services/id_extractor_spec.rb
269
- - spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
270
- - spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
271
- - spec/support/generators.rb
272
- - spec/support/vcr.rb
273
- - spec/spec_helper.rb
178
+ test_files: []
Binary file
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.uploadcare.com/convert/document/
6
- body:
7
- encoding: UTF-8
8
- string: '{"paths":["86c54d9a-3453-4b12-8dcc-49883ae8f084/document/-/format/pdf/"],"store":"0"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:37:35 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:b616ace0f3e3b3e8bda844e3bceff181cb7291f8
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
- - Fri, 23 Jul 2021 11:37:37 GMT
31
- Content-Type:
32
- - application/json
33
- Content-Length:
34
- - '179'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Vary:
40
- - Accept
41
- - Accept-Encoding
42
- Warning:
43
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
44
- Access-Control-Allow-Origin:
45
- - https://uploadcare.com
46
- Allow:
47
- - OPTIONS, POST
48
- X-Xss-Protection:
49
- - 1; mode=block
50
- X-Content-Type-Options:
51
- - nosniff
52
- X-Frame-Options:
53
- - SAMEORIGIN
54
- X-Robots-Tag:
55
- - noindex, nofollow, nosnippet, noarchive
56
- body:
57
- encoding: ASCII-8BIT
58
- string: '{"result": [{"original_source": "86c54d9a-3453-4b12-8dcc-49883ae8f084/document/-/format/pdf/",
59
- "token": 21201766, "uuid": "e8656549-6efd-4414-890c-708afd4f648f"}], "problems":
60
- {}}'
61
- recorded_at: Fri, 23 Jul 2021 11:37:37 GMT
62
- recorded_with: VCR 6.0.0
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.uploadcare.com/convert/document/
6
- body:
7
- encoding: UTF-8
8
- string: '{"paths":["86c54d9a-3453-4b12-8dcc-49883ae8f084/document/-/format/jpg/"],"store":"0"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:38:30 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:0108d88068fd4505dc2ec3b3844e09a2daf6aec4
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
- - Fri, 23 Jul 2021 11:38:31 GMT
31
- Content-Type:
32
- - application/json
33
- Content-Length:
34
- - '176'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Vary:
40
- - Accept
41
- - Accept-Encoding
42
- Warning:
43
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
44
- Access-Control-Allow-Origin:
45
- - https://uploadcare.com
46
- Allow:
47
- - OPTIONS, POST
48
- X-Xss-Protection:
49
- - 1; mode=block
50
- X-Content-Type-Options:
51
- - nosniff
52
- X-Frame-Options:
53
- - SAMEORIGIN
54
- X-Robots-Tag:
55
- - noindex, nofollow, nosnippet, noarchive
56
- body:
57
- encoding: ASCII-8BIT
58
- string: '{"result": [], "problems": {"86c54d9a-3453-4b12-8dcc-49883ae8f084/document/-/format/jpg/":
59
- "the target_format is not a supported ''to'' format for this source file.
60
- txt -> jpg"}}'
61
- recorded_at: Fri, 23 Jul 2021 11:38:31 GMT
62
- recorded_with: VCR 6.0.0
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.uploadcare.com/convert/video/
6
- body:
7
- encoding: UTF-8
8
- string: '{"paths":["169d4bf8-206d-4fa1-8aca-a3aaa73c5cf5/video/-/size/600x400/change_ratio/-/quality/best/-/format/ogg/-/cut/0:0:0.0/0:0:1.0/-/thumbs~2/1/"],"store":"0"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:26:00 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:7c2887082ee653c999eef0b940574710c1b1ef44
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
- - Fri, 23 Jul 2021 11:26:01 GMT
31
- Content-Type:
32
- - application/json
33
- Content-Length:
34
- - '322'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Vary:
40
- - Accept
41
- - Accept-Encoding
42
- Warning:
43
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
44
- Access-Control-Allow-Origin:
45
- - https://uploadcare.com
46
- Allow:
47
- - OPTIONS, POST
48
- X-Xss-Protection:
49
- - 1; mode=block
50
- X-Content-Type-Options:
51
- - nosniff
52
- X-Frame-Options:
53
- - SAMEORIGIN
54
- X-Robots-Tag:
55
- - noindex, nofollow, nosnippet, noarchive
56
- body:
57
- encoding: ASCII-8BIT
58
- string: '{"result": [{"original_source": "169d4bf8-206d-4fa1-8aca-a3aaa73c5cf5/video/-/size/600x400/change_ratio/-/quality/best/-/format/ogg/-/cut/0:0:0.0/0:0:1.0/-/thumbs~2/1/",
59
- "token": 913634844, "uuid": "1d12c37d-69b8-48d6-95cc-41c9605f10fd", "thumbnails_group_uuid":
60
- "900dd627-0737-4753-b4be-c3e328669df7~2"}], "problems": {}}'
61
- recorded_at: Fri, 23 Jul 2021 11:26:01 GMT
62
- recorded_with: VCR 6.0.0
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.uploadcare.com/convert/video/
6
- body:
7
- encoding: UTF-8
8
- string: '{"paths":["169d4bf8-206d-4fa1-8aca-a3aaa73c5cf5/video/-/size/x/change_ratio/"],"store":"0"}'
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:26:02 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:0ae0de735340d881dfc02d569cb3c4094f50f5b9
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
- - Fri, 23 Jul 2021 11:26:02 GMT
31
- Content-Type:
32
- - application/json
33
- Content-Length:
34
- - '227'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Vary:
40
- - Accept
41
- - Accept-Encoding
42
- Warning:
43
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
44
- Access-Control-Allow-Origin:
45
- - https://uploadcare.com
46
- Allow:
47
- - OPTIONS, POST
48
- X-Xss-Protection:
49
- - 1; mode=block
50
- X-Content-Type-Options:
51
- - nosniff
52
- X-Frame-Options:
53
- - SAMEORIGIN
54
- X-Robots-Tag:
55
- - noindex, nofollow, nosnippet, noarchive
56
- body:
57
- encoding: ASCII-8BIT
58
- string: '{"result": [], "problems": {"169d4bf8-206d-4fa1-8aca-a3aaa73c5cf5/video/-/size/x/change_ratio/":
59
- "CDN Path error: Mandatory argument \"OneOrTwoDimensionsDivisibleByFour(size)\"
60
- not found while parsing \"size/x/change_ratio\""}}'
61
- recorded_at: Fri, 23 Jul 2021 11:26:02 GMT
62
- recorded_with: VCR 6.0.0
@@ -1,59 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/convert/document/status/21201727/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:37:37 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:d4867270b507545071e6c2092f45006013699f2c
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
- - Fri, 23 Jul 2021 11:37:38 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.6+json
33
- Content-Length:
34
- - '91'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Warning:
40
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
41
- Access-Control-Allow-Origin:
42
- - https://uploadcare.com
43
- Vary:
44
- - Accept
45
- Allow:
46
- - GET, HEAD, OPTIONS
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: '{"status":"finished","error":null,"result":{"uuid":"19f9a316-2b03-4df3-bf97-23ee4d92db8f"}}'
58
- recorded_at: Fri, 23 Jul 2021 11:37:38 GMT
59
- recorded_with: VCR 6.0.0
@@ -1,59 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.uploadcare.com/convert/video/status/913632082/
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept:
13
- - application/vnd.uploadcare-v0.6+json
14
- User-Agent:
15
- - UploadcareRuby/3.0.5/5d5bb5639e3f2df33674 (Ruby/2.7.2)
16
- Date:
17
- - Fri, 23 Jul 2021 11:31:38 GMT
18
- Authorization:
19
- - Uploadcare 5d5bb5639e3f2df33674:8ea50fe3b833028988450d93b21b84ac13818d2b
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
- - Fri, 23 Jul 2021 11:31:39 GMT
31
- Content-Type:
32
- - application/vnd.uploadcare-v0.6+json
33
- Content-Length:
34
- - '156'
35
- Connection:
36
- - close
37
- Server:
38
- - nginx
39
- Warning:
40
- - '199 Miscellaneous warning: Please use API version 0.5, not 0.6'
41
- Access-Control-Allow-Origin:
42
- - https://uploadcare.com
43
- Vary:
44
- - Accept
45
- Allow:
46
- - GET, HEAD, OPTIONS
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: '{"status":"finished","error":null,"result":{"uuid":"3f2e57e7-2d3f-42b2-9b42-2da4cfa6551e","thumbnails_group_uuid":"4ed9e8ea-c22c-4a9f-bdd1-c4ce40ebaa8c~2"}}'
58
- recorded_at: Fri, 23 Jul 2021 11:31:39 GMT
59
- recorded_with: VCR 6.0.0