uploadcare-rails 3.2.0 → 3.3.1

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/uploadcare/rails/action_view/uploadcare_uploader_tags.rb +1 -1
  3. data/lib/uploadcare/rails/api/rest/base.rb +3 -2
  4. data/lib/uploadcare/rails/api/upload/base.rb +2 -0
  5. data/lib/uploadcare/rails/configuration.rb +3 -1
  6. data/lib/uploadcare/rails/transformations/image_transformations.rb +1 -1
  7. data/lib/uploadcare/rails/version.rb +1 -1
  8. metadata +32 -142
  9. data/spec/fixtures/kitten.jpeg +0 -0
  10. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document.yml +0 -62
  11. data/spec/fixtures/vcr_cassettes/conversion_api_convert_document_with_error.yml +0 -62
  12. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video.yml +0 -62
  13. data/spec/fixtures/vcr_cassettes/conversion_api_convert_video_with_error.yml +0 -62
  14. data/spec/fixtures/vcr_cassettes/conversion_api_get_document_conversion_status.yml +0 -59
  15. data/spec/fixtures/vcr_cassettes/conversion_api_get_video_conversion_status.yml +0 -59
  16. data/spec/fixtures/vcr_cassettes/file_api_copy_file.yml +0 -60
  17. data/spec/fixtures/vcr_cassettes/file_api_delete_file.yml +0 -61
  18. data/spec/fixtures/vcr_cassettes/file_api_delete_files.yml +0 -58
  19. data/spec/fixtures/vcr_cassettes/file_api_get_file.yml +0 -61
  20. data/spec/fixtures/vcr_cassettes/file_api_get_files.yml +0 -61
  21. data/spec/fixtures/vcr_cassettes/file_api_load_file.yml +0 -57
  22. data/spec/fixtures/vcr_cassettes/file_api_store_file.yml +0 -61
  23. data/spec/fixtures/vcr_cassettes/file_api_store_files.yml +0 -57
  24. data/spec/fixtures/vcr_cassettes/group_api_create_group.yml +0 -61
  25. data/spec/fixtures/vcr_cassettes/group_api_get_group.yml +0 -56
  26. data/spec/fixtures/vcr_cassettes/group_api_get_groups.yml +0 -57
  27. data/spec/fixtures/vcr_cassettes/group_api_store_group.yml +0 -177
  28. data/spec/fixtures/vcr_cassettes/project_api_get_project.yml +0 -59
  29. data/spec/fixtures/vcr_cassettes/upload_upload_many_files.yml +0 -59
  30. data/spec/fixtures/vcr_cassettes/upload_upload_one_file.yml +0 -105
  31. data/spec/fixtures/vcr_cassettes/upload_upload_one_file_from_cdn.yml +0 -111
  32. data/spec/fixtures/vcr_cassettes/webhook_api_create_webhook.yml +0 -59
  33. data/spec/fixtures/vcr_cassettes/webhook_api_delete_webhook.yml +0 -59
  34. data/spec/fixtures/vcr_cassettes/webhook_api_get_webhooks.yml +0 -59
  35. data/spec/fixtures/vcr_cassettes/webhook_api_update_webhook.yml +0 -59
  36. data/spec/generators/uploadcare_config_generator_spec.rb +0 -31
  37. data/spec/spec_helper.rb +0 -27
  38. data/spec/support/generators.rb +0 -41
  39. data/spec/support/vcr.rb +0 -14
  40. data/spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb +0 -40
  41. data/spec/uploadcare/rails/action_view/uploadcare_widget_tags_spec.rb +0 -46
  42. data/spec/uploadcare/rails/active_record/mount_uploadcare_file_spec.rb +0 -33
  43. data/spec/uploadcare/rails/active_record/mount_uploadcare_group_spec.rb +0 -32
  44. data/spec/uploadcare/rails/api/rest/conversion_api_spec.rb +0 -110
  45. data/spec/uploadcare/rails/api/rest/file_api_spec.rb +0 -76
  46. data/spec/uploadcare/rails/api/rest/group_api_spec.rb +0 -61
  47. data/spec/uploadcare/rails/api/rest/project_api_spec.rb +0 -33
  48. data/spec/uploadcare/rails/api/rest/webhook_api_spec.rb +0 -67
  49. data/spec/uploadcare/rails/api/upload/upload_api_spec.rb +0 -82
  50. data/spec/uploadcare/rails/jobs/delete_file_job_spec.rb +0 -15
  51. data/spec/uploadcare/rails/jobs/store_file_job_spec.rb +0 -15
  52. data/spec/uploadcare/rails/jobs/store_group_job_spec.rb +0 -15
  53. data/spec/uploadcare/rails/objects/file_spec.rb +0 -77
  54. data/spec/uploadcare/rails/objects/group_spec.rb +0 -65
  55. data/spec/uploadcare/rails/services/id_extractor_spec.rb +0 -26
  56. data/spec/uploadcare/rails/transformations/image_transformations_spec.rb +0 -120
  57. 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: 8b5212ac5a85f857b3e200796350a52c8c2c8720c75d4e7cb085cf8e9961dc99
4
+ data.tar.gz: d1a9cd9844d7e2f8aa5fbd69116453b5d53a6a20f3af49f05b9a6739c5b983d2
5
5
  SHA512:
6
- metadata.gz: e93ad898457ee28ab5da0b525dce1418989a1c1ff3180dc844d20e7b7a402c55c71ba705b1210d13bf519ec529e70c0998b5fd3820605a393b50fe8fc7574fc6
7
- data.tar.gz: 4d261ce429e827bedc8e1ae416d50c00082d05a5ebdfbc5de6c15cd7ba17bc9259881e38d6fe969bc8ae0875636791b7ac61081e315d2fb1ed1b91b475722624
6
+ metadata.gz: 1c9db04be04cdb655ca8d10c95c91f1c2cc25a34069eb56f6bc68c757d66e603915cf5ed2baa26872d61b476435987404d8caf54315642b166b6c595f87ee943
7
+ data.tar.gz: 2c877fe4e2679e53de8385aa39f235c459833db1e5ddb82e63b5c91b12e75aef556682f17d13247ae3024654ddf6ba26d31a2f34031b24e3e09667c9e2d25970
@@ -28,7 +28,7 @@ module Uploadcare
28
28
  object_name,
29
29
  method_name,
30
30
  uploadcare_uploader_options(
31
- options.merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
31
+ options.reverse_merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
32
32
  )
33
33
  )
34
34
  end
@@ -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.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,15 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)"
8
+ - kraft001 (Konstantin Rafalskii)
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2022-12-25 00:00:00.000000000 Z
12
+ date: 2023-03-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
@@ -16,115 +17,101 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: '4'
20
+ version: '6'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: '4'
27
+ version: '6'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: uploadcare-ruby
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - ">="
32
33
  - !ruby/object:Gem::Version
33
- version: '4.2'
34
+ version: '4.3'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - ">="
39
40
  - !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'
41
+ version: '4.3'
55
42
  - !ruby/object:Gem::Dependency
56
43
  name: rspec
57
44
  requirement: !ruby/object:Gem::Requirement
58
45
  requirements:
59
- - - ">"
46
+ - - "~>"
60
47
  - !ruby/object:Gem::Version
61
- version: 3.4.4
48
+ version: '3.12'
62
49
  type: :development
63
50
  prerelease: false
64
51
  version_requirements: !ruby/object:Gem::Requirement
65
52
  requirements:
66
- - - ">"
53
+ - - "~>"
67
54
  - !ruby/object:Gem::Version
68
- version: 3.4.4
55
+ version: '3.12'
69
56
  - !ruby/object:Gem::Dependency
70
57
  name: rspec-rails
71
58
  requirement: !ruby/object:Gem::Requirement
72
59
  requirements:
73
60
  - - ">="
74
61
  - !ruby/object:Gem::Version
75
- version: '0'
62
+ version: '5.1'
76
63
  type: :development
77
64
  prerelease: false
78
65
  version_requirements: !ruby/object:Gem::Requirement
79
66
  requirements:
80
67
  - - ">="
81
68
  - !ruby/object:Gem::Version
82
- version: '0'
69
+ version: '5.1'
83
70
  - !ruby/object:Gem::Dependency
84
71
  name: rubocop
85
72
  requirement: !ruby/object:Gem::Requirement
86
73
  requirements:
87
- - - ">="
74
+ - - "~>"
88
75
  - !ruby/object:Gem::Version
89
- version: '0'
76
+ version: '1.48'
90
77
  type: :development
91
78
  prerelease: false
92
79
  version_requirements: !ruby/object:Gem::Requirement
93
80
  requirements:
94
- - - ">="
81
+ - - "~>"
95
82
  - !ruby/object:Gem::Version
96
- version: '0'
83
+ version: '1.48'
97
84
  - !ruby/object:Gem::Dependency
98
85
  name: vcr
99
86
  requirement: !ruby/object:Gem::Requirement
100
87
  requirements:
101
- - - ">="
88
+ - - "~>"
102
89
  - !ruby/object:Gem::Version
103
- version: '0'
90
+ version: '6.1'
104
91
  type: :development
105
92
  prerelease: false
106
93
  version_requirements: !ruby/object:Gem::Requirement
107
94
  requirements:
108
- - - ">="
95
+ - - "~>"
109
96
  - !ruby/object:Gem::Version
110
- version: '0'
97
+ version: '6.1'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: webmock
113
100
  requirement: !ruby/object:Gem::Requirement
114
101
  requirements:
115
- - - ">="
102
+ - - "~>"
116
103
  - !ruby/object:Gem::Version
117
- version: '0'
104
+ version: '3.18'
118
105
  type: :development
119
106
  prerelease: false
120
107
  version_requirements: !ruby/object:Gem::Requirement
121
108
  requirements:
122
- - - ">="
109
+ - - "~>"
123
110
  - !ruby/object:Gem::Version
124
- version: '0'
111
+ version: '3.18'
125
112
  description: |
126
- Rails wrapper for Uploadcare service.
127
- Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
113
+ Rails API client (based on uploadcare-ruby) that handles uploads
114
+ and further operations with files by wrapping Uploadcare Upload and REST APIs.
128
115
  email:
129
116
  - hello@uploadcare.com
130
117
  executables: []
@@ -163,61 +150,13 @@ files:
163
150
  - lib/uploadcare/rails/services/id_extractor.rb
164
151
  - lib/uploadcare/rails/transformations/image_transformations.rb
165
152
  - 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
- homepage: https://uploadcare.com/docs/integrations/
153
+ homepage: https://github.com/uploadcare/uploadcare-rails
216
154
  licenses:
217
155
  - MIT
218
156
  metadata:
219
157
  github: https://github.com/uploadcare/uploadcare-rails
220
158
  issue_tracker: https://github.com/uploadcare/uploadcare-rails/issues
159
+ rubygems_mfa_required: 'true'
221
160
  post_install_message:
222
161
  rdoc_options: []
223
162
  require_paths:
@@ -226,64 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
165
  requirements:
227
166
  - - ">="
228
167
  - !ruby/object:Gem::Version
229
- version: 2.4.0
168
+ version: 2.7.0
230
169
  required_rubygems_version: !ruby/object:Gem::Requirement
231
170
  requirements:
232
171
  - - ">="
233
172
  - !ruby/object:Gem::Version
234
173
  version: '0'
235
174
  requirements: []
236
- rubygems_version: 3.0.1
175
+ rubygems_version: 3.4.6
237
176
  signing_key:
238
177
  specification_version: 4
239
178
  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
179
+ 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