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.
- checksums.yaml +4 -4
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +25 -9
- data/README.md +401 -39
- data/lib/uploadcare/client/conversion/base_conversion_client.rb +59 -0
- data/lib/uploadcare/client/conversion/document_conversion_client.rb +41 -0
- data/lib/uploadcare/client/conversion/video_conversion_client.rb +46 -0
- data/lib/uploadcare/client/file_list_client.rb +4 -4
- data/lib/uploadcare/client/group_client.rb +1 -1
- data/lib/uploadcare/client/multipart_upload/chunks_client.rb +16 -5
- data/lib/uploadcare/client/multipart_upload_client.rb +14 -12
- data/lib/uploadcare/client/project_client.rb +3 -1
- data/lib/uploadcare/client/rest_client.rb +6 -5
- data/lib/uploadcare/client/rest_group_client.rb +2 -2
- data/lib/uploadcare/client/upload_client.rb +8 -0
- data/lib/uploadcare/client/uploader_client.rb +25 -17
- data/lib/uploadcare/client/webhook_client.rb +11 -5
- data/lib/uploadcare/concern/error_handler.rb +2 -2
- data/lib/uploadcare/entity/conversion/base_converter.rb +36 -0
- data/lib/uploadcare/entity/conversion/document_converter.rb +15 -0
- data/lib/uploadcare/entity/conversion/video_converter.rb +15 -0
- data/lib/uploadcare/entity/decorator/paginator.rb +5 -7
- data/lib/uploadcare/entity/file.rb +40 -4
- data/lib/uploadcare/entity/file_list.rb +1 -0
- data/lib/uploadcare/entity/group.rb +1 -2
- data/lib/uploadcare/entity/uploader.rb +11 -3
- data/lib/uploadcare/exception/conversion_error.rb +8 -0
- data/lib/uploadcare/exception/throttle_error.rb +2 -0
- data/lib/uploadcare/param/conversion/document/processing_job_url_builder.rb +39 -0
- data/lib/uploadcare/param/conversion/video/processing_job_url_builder.rb +64 -0
- data/lib/uploadcare/param/user_agent.rb +1 -1
- data/lib/uploadcare/param/webhook_signature_verifier.rb +23 -0
- data/lib/uploadcare/ruby/version.rb +1 -1
- data/lib/uploadcare.rb +3 -0
- data/uploadcare-ruby.gemspec +1 -1
- metadata +14 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c9e31f806af7e05c558fac2f5474b1b79bbe6585437049a2ecca5cc7011b46
|
4
|
+
data.tar.gz: 3da125b462b72f76f1cc52b3d9654354399d4864eba72b34e474c5d9a05ca22b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|