uploadcare-ruby 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/uploadcare/ruby/version.rb +1 -1
- data/lib/uploadcare.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b699a48dfd300be34dbfc459963a7d70aebd3a01e6b90204eb3a6deaa16d0da9
|
4
|
+
data.tar.gz: 3e0878f457950ec4c3a7da9b126691fbed2934b39aa43cb9d1983861377f7fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79ff1377255bb94d221518a04f69fd83318c2ba9803fac49901220b0327820d75b12b7cb63a63c110a300635333c71432d7286899d437df25a080c575007ee92
|
7
|
+
data.tar.gz: a39a15cb2904b2a3f6b7c9a754242b66246f4059dc5deee47247c028fcf613b14ba00721722ca490304e635578422eb772e73c83b995ef939c661863dbd194cb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.3.1 - 2022-04-19
|
4
|
+
|
5
|
+
- Fixed README: `Uploadcare::URLGenerators::AmakaiGenerator` > `Uploadcare::SignedUrlGenerators::AmakaiGenerator`
|
6
|
+
- Autoload generators constants
|
7
|
+
|
3
8
|
## 3.3.0 — 2022-04-08
|
4
9
|
|
5
10
|
- Added `Uploadcare::URLGenerators::AmakaiGenerator`. Use custom domain and CDN provider to deliver files with authenticated URLs.
|
data/README.md
CHANGED
@@ -665,10 +665,10 @@ More examples and options can be found [here](https://uploadcare.com/docs/transf
|
|
665
665
|
|
666
666
|
You can use custom domain and CDN provider to deliver files with authenticated URLs (see [original documentation](https://uploadcare.com/docs/security/secure_delivery/)).
|
667
667
|
|
668
|
-
To generate authenticated URL from the library, you should choose `Uploadcare::
|
668
|
+
To generate authenticated URL from the library, you should choose `Uploadcare::SignedUrlGenerators::AmakaiGenerator` (or create your generator implementation):
|
669
669
|
```ruby
|
670
|
-
generator = Uploadcare::
|
671
|
-
generator.generate_url(uuid, acl
|
670
|
+
generator = Uploadcare::SignedUrlGenerators::AmakaiGenerator.new(cdn_host: 'example.com', secret_key: 'secret_key'). Optional parameters: ttl: 300, algorithm: 'sha256'
|
671
|
+
generator.generate_url(uuid, acl = optional)
|
672
672
|
|
673
673
|
generator.generate_url("a7d5645e-5cd7-4046-819f-a6a2933bafe3") ->
|
674
674
|
https://example.com/a7d5645e-5cd7-4046-819f-a6a2933bafe3/?token=exp=1649405263~acl=/a7d5645e-5cd7-4046-819f-a6a2933bafe3/~hmac=a989cae5342f17013677f5a0e6577fc5594cc4e238fb4c95eda36634eb47018b
|
data/lib/uploadcare.rb
CHANGED
@@ -23,6 +23,10 @@ require 'param/webhook_signature_verifier'
|
|
23
23
|
# General api
|
24
24
|
require 'api/api'
|
25
25
|
|
26
|
+
# SignedUrlGenerators
|
27
|
+
require 'signed_url_generators/amakai_generator'
|
28
|
+
require 'signed_url_generators/base_generator'
|
29
|
+
|
26
30
|
# Ruby wrapper for Uploadcare API
|
27
31
|
#
|
28
32
|
# @see https://uploadcare.com/docs/api_reference
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadcare-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stepan Redka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api_struct
|