carrierwave-aliyun 0.4.1 → 0.4.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
  SHA1:
3
- metadata.gz: 382235b924a68075f447417a7233f024b2b981fb
4
- data.tar.gz: 676e3d72570dc69adf619a80b29ebad53c3ae8de
3
+ metadata.gz: 93274d92d2edfadad1a151c62c89f9d6832b59ad
4
+ data.tar.gz: cdb4fc842464527b458fbc802a3adf558dae7e99
5
5
  SHA512:
6
- metadata.gz: f48dbcd2bbfba4fd044565b7b73a2b9431510b6bf66ccd415449b12aa447de957d9dd914262d158ae601e9be9a9eef4a938e0f28e4873530e427d76ec6d51f02
7
- data.tar.gz: d0ee97e36fb67446ea1b90d73116372b1897370f862f7f0a8cf7a965e3a909644ce9ffcd4e24e11ff1d9699753d015016816f51f209ed9109c9e292a133512c5
6
+ metadata.gz: aa48e85e12dfc52d398507f3ed21f62fac09eea4de041e4344a0ecbf83d31385467a5f9f3a437cb6d0a487d02258cba83258938717e3f2b17d7cf2cb54f0b8cc
7
+ data.tar.gz: 95af84c60108aafd8930ebed3cb7ffd0689e9c2f2449a1a44f393d4b233cf6d22636d3959540bfcf7f1b9d0823940c008406c05520c759868a08d654246244f3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2
2
+
3
+ * `config.aliyun_host` 现在支持配置 //you-host.com,以便同时支持 http 和 https。
4
+
1
5
  ## 0.4.1
2
6
 
3
7
  * 由于 aliyun-oss-sdk 目前不支持 internal 上传,暂时去掉,以免签名错误。
@@ -1,7 +1,7 @@
1
1
  module CarrierWave
2
2
  module Aliyun
3
3
  class Version
4
- MAJOR, MINOR, PATCH = 0, 4, 1
4
+ MAJOR, MINOR, PATCH = 0, 4, 2
5
5
 
6
6
  ##
7
7
  # Returns the major version ( big release based off of multiple minor releases )
@@ -19,8 +19,8 @@ module CarrierWave
19
19
  # Host for get request
20
20
  @aliyun_host = uploader.aliyun_host || "http://#{@aliyun_bucket}.oss-#{@aliyun_area}.aliyuncs.com"
21
21
 
22
- if not @aliyun_host.include?("http")
23
- raise "config.aliyun_host requirement include http:// or https://, but you give: #{@aliyun_host}"
22
+ if not @aliyun_host.include?("//")
23
+ raise "config.aliyun_host requirement include // http:// or https://, but you give: #{@aliyun_host}"
24
24
  end
25
25
  end
26
26
 
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.1
4
+ version: 0.4.2
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-14 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave