activestorage-aliyun 0.6.1 → 0.6.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_storage/service/aliyun_service.rb +3 -5
- data/lib/active_storage_aliyun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53bda709e38f96e05c5ba1f16b7f788528771a3d54c7305e0e3904a4a342fa93
|
|
4
|
+
data.tar.gz: cf29acb97d86b594590e34e98fa7d3fc5863b8e1c3f3a4927d0e859fa1e5d560
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e78ff07000e38476a6c433e2288893481202860572b173e86b483cd02d03f87e24274a563927f8f69bcab6cea8cfc74f1d466a17093f5d88af407391a2d580d
|
|
7
|
+
data.tar.gz: 7cfc5314afcbe1b294c089c230bd6904cdca95f9ddab831d8d77af1d56d16bd226326e292c1b2092586bf1c53ddd8a58cd08122ce618ce20b8a9f4d4bf4922df
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.6.2
|
|
2
|
+
|
|
3
|
+
- Fix service_url generate to includes the content-disposition and filename with the `disposition: :inline` mode.
|
|
4
|
+
This fix for PDF inline case, to keeps the origianal filename when user do save as.
|
|
5
|
+
|
|
1
6
|
## 0.6.1
|
|
2
7
|
|
|
3
8
|
- Fix signature issue when content-type is empty.
|
|
@@ -71,12 +71,10 @@ module ActiveStorage
|
|
|
71
71
|
sign = private_mode? || disposition == :attachment
|
|
72
72
|
filekey = path_for(key)
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
params["response-content-type"] = content_type unless content_type.blank?
|
|
76
|
-
unless filename.is_a?(ActiveStorage::Filename)
|
|
77
|
-
filename = ActiveStorage::Filename.new(filename)
|
|
78
|
-
end
|
|
74
|
+
params["response-content-type"] = content_type unless content_type.blank?
|
|
79
75
|
|
|
76
|
+
if filename
|
|
77
|
+
filename = ActiveStorage::Filename.wrap(filename)
|
|
80
78
|
params["response-content-disposition"] = content_disposition_with(type: disposition, filename: filename)
|
|
81
79
|
end
|
|
82
80
|
|