carrierwave-aliyun 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: f959d72b871dfbb6ca109a6b576c0454fc224c71
4
- data.tar.gz: 3ba45a1b15695038844282406f7fac04a0905067
3
+ metadata.gz: 382235b924a68075f447417a7233f024b2b981fb
4
+ data.tar.gz: 676e3d72570dc69adf619a80b29ebad53c3ae8de
5
5
  SHA512:
6
- metadata.gz: 9088ffb4ab763ecd140aa18ea74e2159b24d6d10f10ff147dff824b88d1f4fb376e693f575aae238d70e4a065fec39831f9593786cdb6e99356bf20f92753603
7
- data.tar.gz: 6cf390ea67da68871c3e2234799753ed38a130a09031d1ebce50faba5583a358a46db531dffafe8a73e490b9ece584d14f3866a2dda30b2465b7dcae37f79fca
6
+ metadata.gz: f48dbcd2bbfba4fd044565b7b73a2b9431510b6bf66ccd415449b12aa447de957d9dd914262d158ae601e9be9a9eef4a938e0f28e4873530e427d76ec6d51f02
7
+ data.tar.gz: d0ee97e36fb67446ea1b90d73116372b1897370f862f7f0a8cf7a965e3a909644ce9ffcd4e24e11ff1d9699753d015016816f51f209ed9109c9e292a133512c5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.1
2
+
3
+ * 由于 aliyun-oss-sdk 目前不支持 internal 上传,暂时去掉,以免签名错误。
4
+
1
5
  ## 0.4.0
2
6
 
3
7
  * 采用 aliyun-oss-sdk 来作为上传后端,不再依赖 rest-client,不再内部实现上传逻辑;
@@ -1,7 +1,7 @@
1
1
  module CarrierWave
2
2
  module Aliyun
3
3
  class Version
4
- MAJOR, MINOR, PATCH = 0, 4, 0
4
+ MAJOR, MINOR, PATCH = 0, 4, 1
5
5
 
6
6
  ##
7
7
  # Returns the major version ( big release based off of multiple minor releases )
@@ -104,11 +104,8 @@ module CarrierWave
104
104
  def oss_upload_client
105
105
  return @oss_upload_client if defined?(@oss_upload_client)
106
106
 
107
- if @uploader.aliyun_internal
108
- host = "oss-#{@aliyun_area}-internal.aliyuncs.com"
109
- else
110
- host = "oss-#{@aliyun_area}.aliyuncs.com"
111
- end
107
+ # TODO: 实现根据 config.aliyun_internal 来使用内部 host 上传
108
+ host = "oss-#{@aliyun_area}.aliyuncs.com"
112
109
 
113
110
  opts = {
114
111
  host: host,
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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave