uploadcare-ruby 3.0.5 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -0
  3. data/CHANGELOG.md +25 -9
  4. data/README.md +401 -39
  5. data/lib/uploadcare/client/conversion/base_conversion_client.rb +59 -0
  6. data/lib/uploadcare/client/conversion/document_conversion_client.rb +41 -0
  7. data/lib/uploadcare/client/conversion/video_conversion_client.rb +46 -0
  8. data/lib/uploadcare/client/file_list_client.rb +4 -4
  9. data/lib/uploadcare/client/group_client.rb +1 -1
  10. data/lib/uploadcare/client/multipart_upload/chunks_client.rb +16 -5
  11. data/lib/uploadcare/client/multipart_upload_client.rb +14 -12
  12. data/lib/uploadcare/client/project_client.rb +3 -1
  13. data/lib/uploadcare/client/rest_client.rb +6 -5
  14. data/lib/uploadcare/client/rest_group_client.rb +2 -2
  15. data/lib/uploadcare/client/upload_client.rb +8 -0
  16. data/lib/uploadcare/client/uploader_client.rb +25 -17
  17. data/lib/uploadcare/client/webhook_client.rb +11 -5
  18. data/lib/uploadcare/concern/error_handler.rb +2 -2
  19. data/lib/uploadcare/entity/conversion/base_converter.rb +36 -0
  20. data/lib/uploadcare/entity/conversion/document_converter.rb +15 -0
  21. data/lib/uploadcare/entity/conversion/video_converter.rb +15 -0
  22. data/lib/uploadcare/entity/decorator/paginator.rb +5 -7
  23. data/lib/uploadcare/entity/file.rb +40 -4
  24. data/lib/uploadcare/entity/file_list.rb +1 -0
  25. data/lib/uploadcare/entity/group.rb +1 -2
  26. data/lib/uploadcare/entity/uploader.rb +11 -3
  27. data/lib/uploadcare/exception/conversion_error.rb +8 -0
  28. data/lib/uploadcare/exception/throttle_error.rb +2 -0
  29. data/lib/uploadcare/param/conversion/document/processing_job_url_builder.rb +39 -0
  30. data/lib/uploadcare/param/conversion/video/processing_job_url_builder.rb +64 -0
  31. data/lib/uploadcare/param/user_agent.rb +1 -1
  32. data/lib/uploadcare/param/webhook_signature_verifier.rb +23 -0
  33. data/lib/uploadcare/ruby/version.rb +1 -1
  34. data/lib/uploadcare.rb +3 -0
  35. data/uploadcare-ruby.gemspec +1 -1
  36. metadata +14 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e78e5ae5b01f3ca9834186dbd80f7498a1ebec2491740e4b4d5a0aa2845e34e5
4
- data.tar.gz: 84a34cf0fdc9cda596cc54b1b60df014d4d4b3f3882e8f3dad7344ae230c7c2f
3
+ metadata.gz: f1c9e31f806af7e05c558fac2f5474b1b79bbe6585437049a2ecca5cc7011b46
4
+ data.tar.gz: 3da125b462b72f76f1cc52b3d9654354399d4864eba72b34e474c5d9a05ca22b
5
5
  SHA512:
6
- metadata.gz: 1efbec0c9e65cf94a769c206490090244628dd16952db2218e7dae5f004ed8b29c9b02855e48d7048006f125c4f019c17c03f40df1dc0db1d2fbd3cdfebf5e75
7
- data.tar.gz: aa3ac3a9e392c105d8be4d405323e645fe07406fe14bf9cc579b4dc3852a2853f15c2dc18d492831284f8cb6343a84f3ffb34f028b3d822d9cd5f738ecb67f17
6
+ metadata.gz: '06814335c0ac2733f7a71ad0a9f04af2c9e3160d59de4d3d88231403a6e02366a10bb8db9405762d6a2ed70c82fb0185e5e11e59763cc2f04f79a67c89f52718'
7
+ data.tar.gz: 9c9d034e9d510c0d1839f5b13164a810ee26c58eb75cdcff3aaf6e54aeb6a5f2a0a9c20f2d75d0b6c6f5856eba7a8ccb2b42b7cb4b7ea45f74f5242120bf5534
data/.rubocop.yml CHANGED
@@ -7,6 +7,16 @@ Metrics/LineLength:
7
7
  IneffectiveAccessModifier:
8
8
  Enabled: false
9
9
 
10
+ Style/HashTransformKeys:
11
+ Exclude:
12
+ - 'lib/uploadcare/entity/decorator/paginator.rb'
13
+ - 'lib/uploadcare/client/conversion/video_conversion_client.rb'
14
+ - 'lib/uploadcare/entity/file.rb'
15
+
16
+ Gemspec/RequiredRubyVersion:
17
+ Exclude:
18
+ - 'uploadcare-ruby.gemspec'
19
+
10
20
  Metrics/BlockLength:
11
21
  Exclude:
12
22
  - 'bin/'
@@ -18,3 +28,6 @@ Metrics/MethodLength:
18
28
 
19
29
  Style/Documentation:
20
30
  Enabled: false
31
+
32
+ Style/OptionalBooleanParameter:
33
+ AllowedMethods: ['create']
data/CHANGELOG.md CHANGED
@@ -1,25 +1,41 @@
1
1
  # Changelog
2
2
 
3
- ## 3.0.5 2021-04-15
3
+ ## 3.2.0 2021-11-16
4
+
5
+ - Added option `signing_secret` to the `Uploadcare::Webhook`
6
+ - Added webhook signature verifier class `Uploadcare::Param::WebhookSignatureVerifier`
7
+
8
+ ## 3.1.1 — 2021-10-13
9
+
10
+ - Fixed `Uploadcare::File#store`
11
+ - Fixed `Uploadcare::File#delete`
12
+
13
+ ## 3.1.0 — 2021-09-21
14
+
15
+ - Added documents and videos conversions
16
+ - Added new attributes to the Entity class (`variations`, `video_info`, `source`, `rekognition_info`)
17
+ - Added an option to add custom logic to large files uploading process
18
+
19
+ ## 3.0.5 — 2021-04-15
4
20
 
5
21
  - Replace Travis-CI with Github Actions
6
22
  - Automate gem pushing
7
23
 
8
- ## 3.0.4-dev 2020-03-19
24
+ ## 3.0.4-dev 2020-03-19
9
25
 
10
- - Added better pagination methods for GroupList & FileList
26
+ - Added better pagination methods for `GroupList` & `FileList`
11
27
  - Improved documentation and install instructions
12
28
  - Added CI
13
29
 
14
- ## 3.0.3-dev 2020-03-13
15
- - Added better pagination and iterators for GroupList & FileList
30
+ ## 3.0.3-dev 2020-03-13
31
+ - Added better pagination and iterators for `GroupList` & `FileList`
16
32
 
17
- ## 3.0.2-dev 2020-03-11
33
+ ## 3.0.2-dev 2020-03-11
18
34
 
19
- - Expanded File and Group entities
35
+ - Expanded `File` and `Group` entities
20
36
  - Changed user agent syntax
21
37
 
22
- ## 3.0.1-dev 2020-03-11
38
+ ## 3.0.1-dev 2020-03-11
23
39
 
24
40
  - Added Upload/group functionality
25
41
  - Added user API
@@ -27,7 +43,7 @@
27
43
  - Isolated clients, entities and concerns
28
44
  - Expanded documentation
29
45
 
30
- ## 3.0.0-dev 2020-02-18
46
+ ## 3.0.0-dev 2020-02-18
31
47
 
32
48
  ### Changed
33
49
  - Rewrote gem from scratch