activestorage_qinium 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b6ef8d150c7dfdd39e09884bd2938787b9000d04114104661c64ce69556fd32
4
- data.tar.gz: 618db182e05524e22984995769199f38e9c4df22c9d4da1d8e6f0476daa4870f
3
+ metadata.gz: 8475b39f8591fbc55a2e062f6cc3260aa8cbcb0c88de938479a7b3f32fd54870
4
+ data.tar.gz: 67a2321852b6dcc9346b1ff0a9c48ba1cdff8d9792e17fad093120c95b627bb9
5
5
  SHA512:
6
- metadata.gz: 777126f04943c53249d89a478c8cdebf58d47ed8b79ab061c724342e7f1f5550cb987259acde03f0563bb5a3306cab7f4f7fd8923f30fb737e390b8f38a74882
7
- data.tar.gz: a4b7f0c854eeb5962b27bcbd658794f9db49c0351ab5040fc58bda667a8a8f381143a0928dfbc9799437a99efa5372caef3adc4ac35e5484e0d35645e21efb60
6
+ metadata.gz: e3afb59a9359745757977782719476cc3f196080efcd3ba0c19100bdbecf564d000925ca18e22befe918eb7e0def5b065ba757153263198016c78be5a06d4d9c
7
+ data.tar.gz: 956c1bc06af8403963c2a9130cf1e196786ed853366c164a3195b9ed8c901a3e4589b7074daa9f2fcdc25c4507e66af337888fb4dd93b20bf6d83432566340ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activestorage_qinium (0.4.2)
4
+ activestorage_qinium (0.4.3)
5
5
  qinium (~> 0.4.0)
6
6
 
7
7
  GEM
@@ -158,11 +158,11 @@ module ActiveStorage
158
158
  # 文档:https://developer.qiniu.com/kodo/1659/download-setting
159
159
  display_name = (options[:filename].presence || File.basename(key)).to_s
160
160
  query_params << "attname=#{URI.encode_www_form_component(display_name)}"
161
- cd = ActionDispatch::Http::ContentDisposition.format(
162
- disposition: "attachment",
163
- filename: ActiveStorage::Filename.new(display_name).sanitized
164
- )
165
- query_params << "response-content-disposition=#{ERB::Util.url_encode(cd)}"
161
+ # cd = ActionDispatch::Http::ContentDisposition.format(
162
+ # disposition: "attachment",
163
+ # filename: ActiveStorage::Filename.new(display_name).sanitized
164
+ # )
165
+ # query_params << "response-content-disposition=#{ERB::Util.url_encode(cd)}"
166
166
  # elsif disposition.to_s == "inline" # 预览(inline)
167
167
  # # 明确设置 Content-Disposition 为 inline,确保浏览器预览而不是下载
168
168
  # query_params << "response-content-disposition=inline"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveStorageQinium
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage_qinium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiaohui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-02 00:00:00.000000000 Z
11
+ date: 2026-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qinium