activestorage-openstack 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b319aff1bce7b83e7b28c029ace3190bc918ad2c7524b2f8afa55fd5dc60c80
|
4
|
+
data.tar.gz: bcec102f0f8e18f4745adf0199576758dfe5e121d532203e6f48e4fa5d2b8b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4d0d5d3e79cdecf6518a6be8190f64d207d945aca6ee57f51879d535b2a5efdf28c617af4df398448a1230ce94e93740bd70fb344e07146786b672b33c976c4
|
7
|
+
data.tar.gz: 04c6e56a3b7c23b0bf731c9aed9b2398cccea8cd221784261a66d8f6164f771e3396992e56d100a1e0743ad8f822e1100b7196eaec34fcaa0166de85378add02
|
@@ -101,7 +101,7 @@ module ActiveStorage
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
def url_for_direct_upload(key, expires_in:, filename
|
104
|
+
def url_for_direct_upload(key, expires_in:, filename: nil, **)
|
105
105
|
instrument :url, key: key do |payload|
|
106
106
|
expire_at = unix_timestamp_expires_at(expires_in)
|
107
107
|
generated_url = client.create_temp_url(
|
@@ -110,7 +110,7 @@ module ActiveStorage
|
|
110
110
|
expire_at,
|
111
111
|
'PUT',
|
112
112
|
port: 443,
|
113
|
-
filename: ActiveStorage::Filename.wrap(filename).
|
113
|
+
**(filename ? { filename: ActiveStorage::Filename.wrap(filename).to_s } : {}),
|
114
114
|
scheme: 'https'
|
115
115
|
)
|
116
116
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chedli Bourguiba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-openstack
|