carrierwave-aliyun 1.1.2 → 1.1.3

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: 83e7828d8abba5ebf25ae01f845bf0695e596c432b9b867a42034454f5862058
4
- data.tar.gz: 106b6e3372acfe88f89cf0c00346ba5d8ec33f97deb10077d07ee943d7b514ee
3
+ metadata.gz: 2566558b43cc5a630c144191041c2a623249734b2875e1da28f8778a553adf2b
4
+ data.tar.gz: 3f773081c2e49cd85b83b0677afc108694a1b9b604685460e815330f736b81dc
5
5
  SHA512:
6
- metadata.gz: ed4defc5158003da256b08bf9c13d798abab8f684fa8ccec4363438840f2ba12ab603115103396634764a127acece35779ba18e6704525ce24f6a98bf81bc33d
7
- data.tar.gz: d23cb3be191b8feb7e9906589bdbe3833a204402e7961fc9f14f672de3e52cf1273a1cff05fae5136339aff2ec1a40946354acce402cb1f828d803628e5b4b4a
6
+ metadata.gz: c51793690e631ceb49e0536f76471a4d34bf4cbbb8adeabfddfed95abd4d924c20f1c2c8ac017580bc8785c00c4f0ef1e3b30ca534ecc333aaeb20040fbfe38f
7
+ data.tar.gz: 34381bab3c7e15f45a231a37adba1481c75499083cdf69a408b0891bb2915ba517b4333926147760c2ee250d9a9675233e2f804068cd6f884f6d145ca71762de
@@ -1,5 +1,10 @@
1
1
  ## 1.1.2
2
2
 
3
+ - 修正 aliyun-sdk 0.7.0 以上 Thumb URL 生成的支持;
4
+ - Requirement aliyun-sdk >= 0.7.0;
5
+
6
+ ## 1.1.2
7
+
3
8
  - 修正废弃调用方式,避免在 Ruby 2.7 里面出现 warning.
4
9
 
5
10
  ## 1.1.1
@@ -132,9 +132,11 @@ module CarrierWave
132
132
  path = path.sub(PATH_PREFIX, "")
133
133
 
134
134
  url = if thumb
135
- img_client.object_url([path, thumb].join(""), expiry: 15.minutes)
135
+ thumb = thumb.gsub('?', '')
136
+ parameters = Hash[*thumb.split('=')]
137
+ img_client.object_url(path, true, 15.minutes, parameters)
136
138
  else
137
- oss_client.object_url(path, expiry: 15.minutes)
139
+ oss_client.object_url(path, true, 15.minutes)
138
140
  end
139
141
 
140
142
  url.sub("http://", "https://")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CarrierWave
4
4
  module Aliyun
5
- VERSION = "1.1.2"
5
+ VERSION = "1.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-aliyun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-27 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.0
33
+ version: 0.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.6.0
40
+ version: 0.7.0
41
41
  description: Aliyun OSS support for Carrierwave
42
42
  email:
43
43
  - huacnlee@gmail.com
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.1.2
75
+ rubygems_version: 3.0.3
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Aliyun OSS support for Carrierwave