carrierwave-upyun 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOGS.md +4 -0
- data/README.md +6 -1
- data/carrierwave-upyun.gemspec +1 -1
- data/lib/carrierwave/storage/upyun.rb +1 -1
- data/spec/upload_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 020c963a6143bae42379ba0749fbba0e727bc917
|
4
|
+
data.tar.gz: 0eaec5c9942a427404b7b27636df42f66ff5d39d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ded1279c00f182d4a113a7ccc65545546c77b911e697f13e957bcd39d2a28aa33b3e5901c38c4c0dedb90e5457d5f93cb9c6f99eba75b751ca82c2878df7b681
|
7
|
+
data.tar.gz: 832ef3790b00c755c8ad94d253ba6711dc01f15beb4d86cc0179454629d778e7edb9e38bdd814d4ffb8eddc5a74f02b6e40898392bec8352a597d2a8448fb90b
|
data/CHANGELOGS.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# CarrierWave for [UpYun (又拍云存储)](http://upyun.com)
|
2
2
|
|
3
|
-
This gem adds support for [
|
3
|
+
This gem adds support for [upyun.com](http://www.upyun.com) to [CarrierWave](https://github.com/jnicklas/carrierwave/)
|
4
|
+
|
5
|
+
|
6
|
+
- [![Gem Version](https://badge.fury.io/rb/carrierwave-upyun.png)](https://rubygems.org/gems/carrierwave-upyun)
|
4
7
|
|
5
8
|
|
6
9
|
## Installation
|
@@ -10,6 +13,8 @@ gem 'carrierwave'
|
|
10
13
|
gem 'carrierwave-upyun'
|
11
14
|
```
|
12
15
|
|
16
|
+
> NOTE: 此 Gem 是一个 CarrierWave 的组件,你需要配合 CarrierWave 一起使用。
|
17
|
+
|
13
18
|
## Configuration
|
14
19
|
|
15
20
|
You'll need to configure the to use this in config/initializes/carrierwave.rb
|
data/carrierwave-upyun.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "carrierwave-upyun"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.1"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Nowa Zhu", "Jason Lee"]
|
9
9
|
s.email = ["nowazhu@gmail.com", "huacnlee@gmail.com"]
|
data/spec/upload_spec.rb
CHANGED
@@ -67,4 +67,12 @@ describe "Upload" do
|
|
67
67
|
expect(res.size).to eq f1.size
|
68
68
|
end
|
69
69
|
end
|
70
|
+
|
71
|
+
describe 'CarrierWave::SanitizedFile' do
|
72
|
+
it 'should have responed_to identifier' do
|
73
|
+
f = CarrierWave::Storage::UpYun::File.new(nil, nil, nil)
|
74
|
+
expect(f).to respond_to(:identifier)
|
75
|
+
expect(f).to respond_to(:filename)
|
76
|
+
end
|
77
|
+
end
|
70
78
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-upyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nowa Zhu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carrierwave
|