carrierwave-qiniu 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8549ef74aca0c0e3548488dfeed5671e77778781
4
- data.tar.gz: 7c645324d46732bb6a7f5cdb5b3a68d6e4b83dae
3
+ metadata.gz: 8bad4c75d2ab3ebb6d1c841e9a98a179921c3615
4
+ data.tar.gz: 2a1e3fed0a215606b09f274da154ae393ee87edd
5
5
  SHA512:
6
- metadata.gz: 141f32026b0110ece93f209feb1d7ebd82f408335c312becf4203fe71cf743d87093eb953dbb85ee56c1e3f6eec35c7097b689e11b9ebbac027f4f99d10de643
7
- data.tar.gz: 648f420b67cef4823796040ea5b7373d56f75ecf9ee34c064b8c753ea1435a96b8e3ef4109cfac2a6c9267c2857d13235875a560bf958daa6cd81f0676d873f6
6
+ metadata.gz: bfdb0c9acbc8dcc2cb8f8c5225bf17347008567de9e348d86b7b9bf812d270e5b73d1501cb3eb743473b2471727078e6b147335f03b62784d5c2a8748c9930a0
7
+ data.tar.gz: deebaf0d34d9d813b8d2334d6d23a131c9a18469351485dafcefa669283ad5086e29be4ac0bc145f175aea135b94ef96aae1764c4914a3622653507734498af2
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Carrierwave::Qiniu
2
2
 
3
- This gem adds storage support for [Qiniu](http://qiniutek.com) to [Carrierwave](https://github.com/jnicklas/carrierwave)
3
+ [![Gem Version](https://badge.fury.io/rb/carrierwave-qiniu.svg)](http://badge.fury.io/rb/carrierwave-qiniu)
4
4
 
5
+ This gem adds storage support for [Qiniu](http://qiniutek.com) to [Carrierwave](https://github.com/jnicklas/carrierwave)
5
6
  example: https://github.com/huobazi/carrierwave-qiniu-example
6
7
 
7
8
  ## Installation
@@ -14,6 +14,7 @@ module CarrierWave
14
14
  add_config :qiniu_protocol
15
15
  add_config :qiniu_async_ops
16
16
  add_config :qiniu_can_overwrite
17
+ add_config :qiniu_expires_in
17
18
 
18
19
  alias_config :qiniu_protocal, :qiniu_protocol
19
20
  end
@@ -17,7 +17,7 @@ module CarrierWave
17
17
  @qiniu_protocol = options[:qiniu_protocol] || "http"
18
18
  @qiniu_async_ops = options[:qiniu_async_ops] || ''
19
19
  @qiniu_can_overwrite = options[:qiniu_can_overwrite] || false
20
- @qiniu_expires_in = options[:expires_in] || 3600
20
+ @qiniu_expires_in = options[:qiniu_expires_in] || options[:expires_in] || 3600
21
21
  init
22
22
  end
23
23
 
@@ -120,7 +120,8 @@ module CarrierWave
120
120
  :qiniu_bucket_domain => @uploader.qiniu_bucket_domain,
121
121
  :qiniu_bucket_private=> @uploader.qiniu_bucket_private,
122
122
  :qiniu_block_size => @uploader.qiniu_block_size,
123
- :qiniu_protocol => @uploader.qiniu_protocol
123
+ :qiniu_protocol => @uploader.qiniu_protocol,
124
+ :qiniu_expires_in => @uploader.qiniu_expires_in
124
125
  }
125
126
 
126
127
  if @uploader.respond_to?(:qiniu_async_ops) and !@uploader.qiniu_async_ops.nil? and @uploader.qiniu_async_ops.size > 0
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Carrierwave
3
3
  module Qiniu
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marble Wu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-23 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: qiniu
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 6.2.4
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
40
  version: 6.2.4
41
41
  description: Qiniu Storage support for CarrierWave
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE
51
51
  - README.md
@@ -68,12 +68,12 @@ require_paths:
68
68
  - lib
69
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []