carrierwave-aliyun 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: 93274d92d2edfadad1a151c62c89f9d6832b59ad
4
- data.tar.gz: cdb4fc842464527b458fbc802a3adf558dae7e99
3
+ metadata.gz: 50edfb8bfae43d6c73918be4d2299199740a9571
4
+ data.tar.gz: bb1a6b302d2bd7d0798ad66986316a6bde633885
5
5
  SHA512:
6
- metadata.gz: aa48e85e12dfc52d398507f3ed21f62fac09eea4de041e4344a0ecbf83d31385467a5f9f3a437cb6d0a487d02258cba83258938717e3f2b17d7cf2cb54f0b8cc
7
- data.tar.gz: 95af84c60108aafd8930ebed3cb7ffd0689e9c2f2449a1a44f393d4b233cf6d22636d3959540bfcf7f1b9d0823940c008406c05520c759868a08d654246244f3
6
+ metadata.gz: 9cf7e002a1ac03c94d11d5e0634df187c22ff0d5b3e7700b25485225790cc28feae223d7613413a8b1e6b5cb875536a6cfd087fa9fc023a81b7e37b78a352b47
7
+ data.tar.gz: d0227c03bd3d037bbe81bff512464a1b1e52f30948a722a2fe62a25513fc3414c909c42b736d332aaf1064ab30fe8ba951634c302d562ea68c243c2ad9896a95
data/.travis.yml CHANGED
@@ -2,9 +2,7 @@ language: ruby
2
2
  bundler_args: --without development
3
3
 
4
4
  rvm:
5
- - 2.2.0
6
- - 2.0.0
7
- - 1.9.3
8
- - 1.9.2
5
+ - 2.3.0
6
+ - 2.1.0
9
7
 
10
- script: RAILS_ENV=test bundle exec rake spec
8
+ script: rspec spec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.3
2
+
3
+ * 修正私密空间下载地址算法的问题,导致偶尔会签名错误无法下载的问题;
4
+
1
5
  ## 0.4.2
2
6
 
3
7
  * `config.aliyun_host` 现在支持配置 //you-host.com,以便同时支持 http 和 https。
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
- source "https://ruby.taobao.org"
2
-
1
+ source "http://gems.ruby-china.org"
3
2
 
4
3
  gemspec
5
4
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This gem adds support for [Aliyun OSS](http://oss.aliyun.com) to [CarrierWave](https://github.com/jnicklas/carrierwave/)
4
4
 
5
- - [![Gem Version](https://badge.fury.io/rb/carrierwave-aliyun.png)](https://rubygems.org/gems/carrierwave-aliyun)
5
+ [![Gem Version](https://badge.fury.io/rb/carrierwave-aliyun.svg)](https://rubygems.org/gems/carrierwave-aliyun) [![Build Status](https://travis-ci.org/huacnlee/carrierwave-aliyun.svg?branch=master)](https://travis-ci.org/huacnlee/carrierwave-aliyun)
6
6
 
7
7
  > NOTE: 此 Gem 是一个 CarrierWave 的组件,你需要配合 CarrierWave 一起使用,如果你需要直接用 Aliyun OSS,可以尝试用 [aliyun-oss-ruby-sdk](https://github.com/aliyun-beta/aliyun-oss-ruby-sdk) 这个 Gem。
8
8
 
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.license = 'MIT'
19
19
 
20
20
  s.add_dependency "carrierwave", [">= 0.5.7"]
21
- s.add_dependency "aliyun-oss-sdk", [">= 0.1.5"]
21
+ s.add_dependency "aliyun-oss-sdk", [">= 0.1.6"]
22
22
  end
@@ -1,7 +1,7 @@
1
1
  module CarrierWave
2
2
  module Aliyun
3
3
  class Version
4
- MAJOR, MINOR, PATCH = 0, 4, 2
4
+ MAJOR, MINOR, PATCH = 0, 4, 3
5
5
 
6
6
  ##
7
7
  # Returns the major version ( big release based off of multiple minor releases )
data/spec/spec_helper.rb CHANGED
@@ -24,10 +24,10 @@ ActiveRecord::Migration.verbose = false
24
24
  ActiveRecord::Base.raise_in_transactional_callbacks = true
25
25
 
26
26
  # 测试的时候需要修改这个地方
27
- ALIYUN_ACCESS_ID = "1OpWEtPTjIDv5u8q"
28
- ALIYUN_ACCESS_KEY = 'cz12XgPfEVy8Xe9F9UJJHmVdHBJ9bi'
29
- ALIYUN_BUCKET = "carrierwave-aliyun-test"
30
- ALIYUN_AREA = "cn-beijing"
27
+ ALIYUN_ACCESS_ID = ENV['ALIYUN_ACCESS_ID'] || ''
28
+ ALIYUN_ACCESS_KEY = ENV['ALIYUN_ACCESS_KEY'] || ''
29
+ ALIYUN_BUCKET = ENV['ALIYUN_BUCKET'] || 'carrierwave-aliyun-test'
30
+ ALIYUN_AREA = ENV['ALIYUN_AREA'] || 'cn-beijing'
31
31
 
32
32
  CarrierWave.configure do |config|
33
33
  config.storage = :aliyun
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.2
4
+ version: 0.4.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: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-07 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.1.5
33
+ version: 0.1.6
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.1.5
40
+ version: 0.1.6
41
41
  description: Aliyun OSS support for Carrierwave
42
42
  email:
43
43
  - huacnlee@gmail.com