activestorage-aliyun 0.6.1 → 0.6.2

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: f81af61936818ed9b9dae07b278fe888969788d608c63dcd325c622fc2df6e8e
4
- data.tar.gz: 9252d0b2798ab109e86f91573993a1bb742275a9d710cb9405cf23c4b63b7d87
3
+ metadata.gz: 53bda709e38f96e05c5ba1f16b7f788528771a3d54c7305e0e3904a4a342fa93
4
+ data.tar.gz: cf29acb97d86b594590e34e98fa7d3fc5863b8e1c3f3a4927d0e859fa1e5d560
5
5
  SHA512:
6
- metadata.gz: d7f1287a68a943b54470f9b155ea1c2fcdfde2cdb1d365de81e96781e0140001ee061c56c9d2c3dad1c95f00aaf9d65dcefeb0013e4c25b23471b79ce6580404
7
- data.tar.gz: c870fdb4915cf8b3fef01a9e996543f85d7263cbaa4e94883b6b91a9776abbc0bd6e55bac65713aaf4af8ab5fb27c9f9337b045825811a157f0ae1e8632d8e7c
6
+ metadata.gz: 9e78ff07000e38476a6c433e2288893481202860572b173e86b483cd02d03f87e24274a563927f8f69bcab6cea8cfc74f1d466a17093f5d88af407391a2d580d
7
+ data.tar.gz: 7cfc5314afcbe1b294c089c230bd6904cdca95f9ddab831d8d77af1d56d16bd226326e292c1b2092586bf1c53ddd8a58cd08122ce618ce20b8a9f4d4bf4922df
@@ -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
- if disposition == :attachment
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveStorageAliyun
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
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.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee