carrierwave-qiniu 0.0.4 → 0.0.5

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: 1fb6ebb601711adff2fdb9c44b76c3d62a4c5284
4
- data.tar.gz: 9c263d0c9768a297ea7afdcc3234b1873196b77d
3
+ metadata.gz: c272cbb1f559ce37b71d551214d92b9577feacde
4
+ data.tar.gz: 7d42e3e2fcd3d5823905bc4b52e5c6fd08b9f400
5
5
  SHA512:
6
- metadata.gz: 6c1f846aea22f2469daed303f30be0d6dd2cf465be81b0f59db30cc5e97449e2874f0cabfc7349d40a0c38f988b4188b943e82ea13405fc16ff35e8f0a049b37
7
- data.tar.gz: 46948103e00aa7a62f1fe3f34af672a72128bbc3afda35c9e1c0496785d518830c1bf02a9a7d0a7d8992884c82b11aae82cca475cf547284f6f7734c321facc2
6
+ metadata.gz: 82624d7b48bf59f56a8a1a4f9c6a8146e4fbe1c0fb24d6fb2d78662906672c23807fb1f271cb59eee282eabe08f06e55afe7128e45152c69b0c509aa7585ccba
7
+ data.tar.gz: c1598b1d389d187147eb0dd102237d3daa52ee08e2d4c43b0d7acb3a4fd9321606f24f2e46b58bbd12fccb0078874bffddb91f91cb958fa0a9ea9631cc18fced
data/README.md CHANGED
@@ -29,6 +29,8 @@ You'll need to configure it in config/initializes/carrierwave.rb
29
29
  config.qiniu_secret_key = 'your qiniu secret_key'
30
30
  config.qiniu_bucket = "carrierwave-qiniu-example"
31
31
  config.qiniu_bucket_domain = "carrierwave-qiniu-example.aspxboy.com"
32
+ config.qiniu_block_size = 4*1024*1024
33
+ config.qiniu_protocal = "http"
32
34
  end
33
35
  ```
34
36
 
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
 
18
18
 
19
19
  gem.add_development_dependency "carrierwave"
20
- gem.add_development_dependency "qiniu-rs",["~> 3.0.3"]
20
+ gem.add_development_dependency "qiniu-rs",["~> 3.4.2"]
21
21
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Carrierwave
3
3
  module Qiniu
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
@@ -9,7 +9,9 @@ module CarrierWave
9
9
  add_config :qiniu_bucket
10
10
  add_config :qiniu_access_key
11
11
  add_config :qiniu_secret_key
12
- end
12
+ add_config :qiniu_block_size
13
+ add_config :qiniu_protocal
14
+ end
13
15
  end
14
16
 
15
17
  module ClassMethods
@@ -123,7 +123,7 @@ module CarrierWave
123
123
  :qiniu_bucket => @uploader.qiniu_bucket,
124
124
  :qiniu_bucket_domain => @uploader.qiniu_bucket_domain,
125
125
  :qiniu_block_size => @uploader.qiniu_block_size,
126
- :qiniu_protocal => @uploader.qiniu_protocal
126
+ :qiniu_protocal => @uploader.qiniu_protocal
127
127
  }
128
128
  @qiniu_connection ||= Connection.new config
129
129
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - huobazi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-16 00:00:00.000000000 Z
11
+ date: 2013-05-23 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: 3.0.3
33
+ version: 3.4.2
34
34
  type: :development
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: 3.0.3
40
+ version: 3.4.2
41
41
  description: Qiniu Storage support for CarrierWave
42
42
  email:
43
43
  - huobazi@gmail.com