uploadcare-rails 3.2.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uploadcare/rails/api/rest/base.rb +3 -2
  3. data/lib/uploadcare/rails/api/upload/base.rb +2 -0
  4. data/lib/uploadcare/rails/configuration.rb +3 -1
  5. data/lib/uploadcare/rails/transformations/image_transformations.rb +1 -1
  6. data/lib/uploadcare/rails/version.rb +1 -1
  7. metadata +28 -139
  8. data/spec/fixtures/kitten.jpeg +0 -0
  9. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +0 -62
  10. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +0 -62
  11. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +0 -62
  12. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +0 -62
  13. data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +0 -59
  14. data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +0 -59
  15. data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +0 -60
  16. data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +0 -61
  17. data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +0 -58
  18. data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +0 -61
  19. data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +0 -61
  20. data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +0 -57
  21. data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +0 -61
  22. data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +0 -57
  23. data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +0 -61
  24. data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +0 -56
  25. data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +0 -57
  26. data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +0 -177
  27. data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +0 -59
  28. data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +0 -59
  29. data/spec/fixtures/vcr_cassettes/upload_upload_one_file.yml +0 -105
  30. data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +0 -111
  31. data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +0 -59
  32. data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +0 -59
  33. data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +0 -59
  34. data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +0 -59
  35. data/spec/generators/uploadcare_config_generator_spec.rb +0 -31
  36. data/spec/spec_helper.rb +0 -27
  37. data/spec/support/generators.rb +0 -41
  38. data/spec/support/vcr.rb +0 -14
  39. data/spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb +0 -40
  40. data/spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb +0 -46
  41. data/spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb +0 -33
  42. data/spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb +0 -32
  43. data/spec/uploadcare/rails/api/rest/conversion_api_spec.rb +0 -110
  44. data/spec/uploadcare/rails/api/rest/file_api_spec.rb +0 -76
  45. data/spec/uploadcare/rails/api/rest/group_api_spec.rb +0 -61
  46. data/spec/uploadcare/rails/api/rest/project_api_spec.rb +0 -33
  47. data/spec/uploadcare/rails/api/rest/webhook_api_spec.rb +0 -67
  48. data/spec/uploadcare/rails/api/upload/upload_api_spec.rb +0 -82
  49. data/spec/uploadcare/rails/jobs/delete_file_job_spec.rb +0 -15
  50. data/spec/uploadcare/rails/jobs/store_file_job_spec.rb +0 -15
  51. data/spec/uploadcare/rails/jobs/store_group_job_spec.rb +0 -15
  52. data/spec/uploadcare/rails/objects/file_spec.rb +0 -77
  53. data/spec/uploadcare/rails/objects/group_spec.rb +0 -65
  54. data/spec/uploadcare/rails/services/id_extractor_spec.rb +0 -26
  55. data/spec/uploadcare/rails/transformations/image_transformations_spec.rb +0 -120
  56. data/spec/uploadcare/rails_spec.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c6fd08a6df4ebc26ce3e0273f5f3a8d5aa1f1fa4a689d31642ab48c71b051a0
4
- data.tar.gz: 1c88d55d2c2d95cbe11db7553d4793a61281f583c84fbb788797907aa0ca3581
3
+ metadata.gz: 8244c46a6ef52e75965e01f0cfe4471c998e57b6243d220ee2a20ea4a2c088fb
4
+ data.tar.gz: bc192f9e03115994b300f32a7de2fe31e033efc5b04df3de54f0efc8d4790775
5
5
  SHA512:
6
- metadata.gz: e93ad898457ee28ab5da0b525dce1418989a1c1ff3180dc844d20e7b7a402c55c71ba705b1210d13bf519ec529e70c0998b5fd3820605a393b50fe8fc7574fc6
7
- data.tar.gz: 4d261ce429e827bedc8e1ae416d50c00082d05a5ebdfbc5de6c15cd7ba17bc9259881e38d6fe969bc8ae0875636791b7ac61081e315d2fb1ed1b91b475722624
6
+ metadata.gz: 0a717bf7a7f5ca9f0a9ca683583fa554e0d25145e35dc994520be5e290247a13e4eec22faf19ab2a1883a3fd7c01df0624256889d0ef1af3583d616a303134bb
7
+ data.tar.gz: 30ceb8ee793d456914cb051ffc907bd18639bdf44d06ac9456ee8a2fe05de45054215db6899db6e46a8d8a3a13b29f4ede28de93d14e6e1e92562df73090cb1f
@@ -6,8 +6,9 @@ module Uploadcare
6
6
  module Rails
7
7
  module Api
8
8
  module Rest
9
- class Base
10
- end
9
+ # rubocop:disable Lint/EmptyClass
10
+ class Base; end
11
+ # rubocop:enable Lint/EmptyClass
11
12
  end
12
13
  end
13
14
  end
@@ -6,7 +6,9 @@ module Uploadcare
6
6
  module Rails
7
7
  module Api
8
8
  module Upload
9
+ # rubocop:disable Lint/EmptyClass
9
10
  class Base; end
11
+ # rubocop:enable Lint/EmptyClass
10
12
  end
11
13
  end
12
14
  end
@@ -35,7 +35,9 @@ module Uploadcare
35
35
  end
36
36
 
37
37
  def widget
38
- OpenStruct.new(WIDGET_PARAMS.map { |param| [param, public_send(param)] }.to_h)
38
+ Struct
39
+ .new(WIDGET_PARAMS)
40
+ .new(WIDGET_PARAMS.map { |param| public_send(param) })
39
41
  end
40
42
 
41
43
  private
@@ -10,7 +10,7 @@ module Uploadcare
10
10
  def initialize(options = {})
11
11
  raise ArgumentError, "Options argument must be a Hash, #{options.class} is given?" unless options.is_a?(Hash)
12
12
 
13
- @options = options.map { |k, v| [k.to_sym, v] }.to_h
13
+ @options = options.to_h { |k, v| [k.to_sym, v] }
14
14
  end
15
15
 
16
16
  def call
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uploadcare
4
4
  module Rails
5
- VERSION = '3.2.0'
5
+ VERSION = '3.3.0'
6
6
  end
7
7
  end
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: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-25 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,112 +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: '4.2'
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: '4.2'
41
- - !ruby/object:Gem::Dependency
42
- name: dry-configurable
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '4.3'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ">"
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 3.4.4
47
+ version: '3.12'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ">"
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 3.4.4
54
+ version: '3.12'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec-rails
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: '5.1'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '5.1'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rubocop
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: '1.48'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: '1.48'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: vcr
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ">="
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: '6.1'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ">="
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: '6.1'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: webmock
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: '3.18'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '0'
110
+ version: '3.18'
125
111
  description: |
126
112
  Rails wrapper for Uploadcare service.
127
113
  Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
@@ -163,61 +149,13 @@ files:
163
149
  - lib/uploadcare/rails/services/id_extractor.rb
164
150
  - lib/uploadcare/rails/transformations/image_transformations.rb
165
151
  - lib/uploadcare/rails/version.rb
166
- - spec/fixtures/kitten.jpeg
167
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
168
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
169
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
170
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
171
- - spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
172
- - spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
173
- - spec/fixtures/vcr_cassettes/file_api_copy_file.yml
174
- - spec/fixtures/vcr_cassettes/file_api_delete_file.yml
175
- - spec/fixtures/vcr_cassettes/file_api_delete_files.yml
176
- - spec/fixtures/vcr_cassettes/file_api_get_file.yml
177
- - spec/fixtures/vcr_cassettes/file_api_get_files.yml
178
- - spec/fixtures/vcr_cassettes/file_api_load_file.yml
179
- - spec/fixtures/vcr_cassettes/file_api_store_file.yml
180
- - spec/fixtures/vcr_cassettes/file_api_store_files.yml
181
- - spec/fixtures/vcr_cassettes/group_api_create_group.yml
182
- - spec/fixtures/vcr_cassettes/group_api_get_group.yml
183
- - spec/fixtures/vcr_cassettes/group_api_get_groups.yml
184
- - spec/fixtures/vcr_cassettes/group_api_store_group.yml
185
- - spec/fixtures/vcr_cassettes/project_api_get_project.yml
186
- - spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
187
- - spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
188
- - spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
189
- - spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
190
- - spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
191
- - spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
192
- - spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
193
- - spec/generators/uploadcare_config_generator_spec.rb
194
- - spec/spec_helper.rb
195
- - spec/support/generators.rb
196
- - spec/support/vcr.rb
197
- - spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
198
- - spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
199
- - spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
200
- - spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
201
- - spec/uploadcare/rails/api/rest/conversion_api_spec.rb
202
- - spec/uploadcare/rails/api/rest/file_api_spec.rb
203
- - spec/uploadcare/rails/api/rest/group_api_spec.rb
204
- - spec/uploadcare/rails/api/rest/project_api_spec.rb
205
- - spec/uploadcare/rails/api/rest/webhook_api_spec.rb
206
- - spec/uploadcare/rails/api/upload/upload_api_spec.rb
207
- - spec/uploadcare/rails/jobs/delete_file_job_spec.rb
208
- - spec/uploadcare/rails/jobs/store_file_job_spec.rb
209
- - spec/uploadcare/rails/jobs/store_group_job_spec.rb
210
- - spec/uploadcare/rails/objects/file_spec.rb
211
- - spec/uploadcare/rails/objects/group_spec.rb
212
- - spec/uploadcare/rails/services/id_extractor_spec.rb
213
- - spec/uploadcare/rails/transformations/image_transformations_spec.rb
214
- - spec/uploadcare/rails_spec.rb
215
152
  homepage: https://uploadcare.com/docs/integrations/
216
153
  licenses:
217
154
  - MIT
218
155
  metadata:
219
156
  github: https://github.com/uploadcare/uploadcare-rails
220
157
  issue_tracker: https://github.com/uploadcare/uploadcare-rails/issues
158
+ rubygems_mfa_required: 'true'
221
159
  post_install_message:
222
160
  rdoc_options: []
223
161
  require_paths:
@@ -226,64 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
164
  requirements:
227
165
  - - ">="
228
166
  - !ruby/object:Gem::Version
229
- version: 2.4.0
167
+ version: 2.7.0
230
168
  required_rubygems_version: !ruby/object:Gem::Requirement
231
169
  requirements:
232
170
  - - ">="
233
171
  - !ruby/object:Gem::Version
234
172
  version: '0'
235
173
  requirements: []
236
- rubygems_version: 3.0.1
174
+ rubygems_version: 3.4.6
237
175
  signing_key:
238
176
  specification_version: 4
239
177
  summary: Rails gem for Uploadcare
240
- test_files:
241
- - spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb
242
- - spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb
243
- - spec/uploadcare/rails/objects/file_spec.rb
244
- - spec/uploadcare/rails/objects/group_spec.rb
245
- - spec/uploadcare/rails/api/upload/upload_api_spec.rb
246
- - spec/uploadcare/rails/api/rest/group_api_spec.rb
247
- - spec/uploadcare/rails/api/rest/file_api_spec.rb
248
- - spec/uploadcare/rails/api/rest/project_api_spec.rb
249
- - spec/uploadcare/rails/api/rest/conversion_api_spec.rb
250
- - spec/uploadcare/rails/api/rest/webhook_api_spec.rb
251
- - spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb
252
- - spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
253
- - spec/uploadcare/rails/transformations/image_transformations_spec.rb
254
- - spec/uploadcare/rails/jobs/store_group_job_spec.rb
255
- - spec/uploadcare/rails/jobs/delete_file_job_spec.rb
256
- - spec/uploadcare/rails/jobs/store_file_job_spec.rb
257
- - spec/uploadcare/rails/services/id_extractor_spec.rb
258
- - spec/uploadcare/rails_spec.rb
259
- - spec/generators/uploadcare_config_generator_spec.rb
260
- - spec/support/generators.rb
261
- - spec/support/vcr.rb
262
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml
263
- - spec/fixtures/vcr_cassettes/file_api_copy_file.yml
264
- - spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml
265
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml
266
- - spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml
267
- - spec/fixtures/vcr_cassettes/file_api_delete_file.yml
268
- - spec/fixtures/vcr_cassettes/upload_upload_many_files.yml
269
- - spec/fixtures/vcr_cassettes/project_api_get_project.yml
270
- - spec/fixtures/vcr_cassettes/group_api_create_group.yml
271
- - spec/fixtures/vcr_cassettes/file_api_get_file.yml
272
- - spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml
273
- - spec/fixtures/vcr_cassettes/group_api_get_groups.yml
274
- - spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml
275
- - spec/fixtures/vcr_cassettes/file_api_store_file.yml
276
- - spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml
277
- - spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml
278
- - spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml
279
- - spec/fixtures/vcr_cassettes/file_api_get_files.yml
280
- - spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml
281
- - spec/fixtures/vcr_cassettes/file_api_delete_files.yml
282
- - spec/fixtures/vcr_cassettes/file_api_load_file.yml
283
- - spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml
284
- - spec/fixtures/vcr_cassettes/group_api_get_group.yml
285
- - spec/fixtures/vcr_cassettes/group_api_store_group.yml
286
- - spec/fixtures/vcr_cassettes/file_api_store_files.yml
287
- - spec/fixtures/vcr_cassettes/upload_upload_one_file.yml
288
- - spec/fixtures/kitten.jpeg
289
- - 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.7+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.7+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.7+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.7+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.7+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.7+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