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: dbc6dd562ea11df43aac0d26b9f0d4c0aca0b8b9eef91cbcd7c570db7b9e9a35
4
- data.tar.gz: f8320f16bdfc5bcaeb9d1b1f9683c32836fd53d9c336c5f88c25a441b4050a98
3
+ metadata.gz: 3b319aff1bce7b83e7b28c029ace3190bc918ad2c7524b2f8afa55fd5dc60c80
4
+ data.tar.gz: bcec102f0f8e18f4745adf0199576758dfe5e121d532203e6f48e4fa5d2b8b5a
5
5
  SHA512:
6
- metadata.gz: 8e45d6474289076b867a5bc64d98f7a0b7e802330884fc3da5154c9a973736130d7a926b01e2ed4387fd6e02bb1d0c2cac1ab00a65ba9381abc84938fe501b92
7
- data.tar.gz: cfb46a535ec45c8f137c59e8c6f1c18b68a184156c68fb79d1abe86839b03ceaf8b40f8fc9a8c17d07db12f7edfc234823bb81c128651cbb8e5a74f14d257c58
6
+ metadata.gz: a4d0d5d3e79cdecf6518a6be8190f64d207d945aca6ee57f51879d535b2a5efdf28c617af4df398448a1230ce94e93740bd70fb344e07146786b672b33c976c4
7
+ data.tar.gz: 04c6e56a3b7c23b0bf731c9aed9b2398cccea8cd221784261a66d8f6164f771e3396992e56d100a1e0743ad8f822e1100b7196eaec34fcaa0166de85378add02
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module Openstack
3
- VERSION = '1.5.0'
3
+ VERSION = '1.5.1'
4
4
  end
5
5
  end
@@ -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).sanitized.to_s,
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2020-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-openstack