activestorage-aliyun 0.6.3 → 0.6.4

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: 74c75707899dc244fea82b758075858a2b70c6fe6834c8e344afd9e5157472ee
4
- data.tar.gz: f481e091cd4b60f88aae411e38e417a0425d50d39c958ed6d00ded2df0d55b93
3
+ metadata.gz: bed55a80edfa6cea56565fecdbfc7c3bad58d2516981dd352c4f944e3fc4f79c
4
+ data.tar.gz: 9be8033111a8ac4292ba371bdf56858d15344dee07b522c09ddcdfa7da834700
5
5
  SHA512:
6
- metadata.gz: 20163ffae6234070c536002a995422bf77b47b93abb464e24476665f96875df1a13b64edede1af6a33c8c023a1f42437b0b468ece72e1a0c8793c46a22fda6c5
7
- data.tar.gz: e3f7ccc9caa2b1e1564fc75acdf0004dff96bcaa04466c7e226473a48893b2bec5f7bd315d696d24de65ce8e9a7f4520282a17aead808362aba7f93714f3a87b
6
+ metadata.gz: f4c286312be492b34b44cf66d81f283a9f207b8c35c1c15754c7375a9bfc1aeeb03bcc5f03f04e6fbcf93f1807ef18cc4266c8e4611ed2075fa1722f062adfd8
7
+ data.tar.gz: f54e749f298d269c9106a899ff911fdf51785433f239f534232a259cb7eb3dce1edfe0a4d056bea65f1a852fa686693236f4472bf02d6b2c66f203578d9365ff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.4
2
+
3
+ - Fix public url generate issue. #37
4
+
1
5
  ## 0.6.3
2
6
 
3
7
  - Enable chunk (2m each) upload, for imporve the big files upload performance. #35
@@ -73,11 +73,13 @@ module ActiveStorage
73
73
  sign = private_mode? || disposition == :attachment
74
74
  filekey = path_for(key)
75
75
 
76
- params["response-content-type"] = content_type unless content_type.blank?
76
+ if sign
77
+ params["response-content-type"] = content_type unless content_type.blank?
77
78
 
78
- if filename
79
- filename = ActiveStorage::Filename.wrap(filename)
80
- params["response-content-disposition"] = content_disposition_with(type: disposition, filename: filename)
79
+ if filename
80
+ filename = ActiveStorage::Filename.wrap(filename)
81
+ params["response-content-disposition"] = content_disposition_with(type: disposition, filename: filename)
82
+ end
81
83
  end
82
84
 
83
85
  generated_url = object_url(filekey, sign: sign, expires_in: expires_in, params: params)
@@ -1,3 +1,3 @@
1
1
  module ActiveStorageAliyun
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage-aliyun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee