carrierwave-tencent_cos 0.1.1 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd76665f9af68097ca41a1f431d25bc1a657733
|
4
|
+
data.tar.gz: bbaa24dff67f96062225054e18e24229bb764370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 937c22c6381ebfbe80e1892cc78489170f8eedc5949bc25a3b4f8d2241f518aa798e9934c68e48b03ba61f8f5bf7a5f689146aedeebf83341ff8e02f6e3d5390
|
7
|
+
data.tar.gz: 872e7d3835a6c802943a4e30a3e567b5e4b7f8fe5f77ef3871d19c6fdb86aadc5b660f65c82a0eedbf4702d224f50aeebdf2af605c8899e8e7ae4f31209d0743
|
@@ -27,7 +27,11 @@ module CarrierWave
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def store(new_file)
|
30
|
-
|
30
|
+
options = { file: new_file.path }
|
31
|
+
|
32
|
+
options[:log_debug] = !!CarrierWave::Uploader::Base.options[:log_debug]
|
33
|
+
|
34
|
+
TencentCosSdk.put @path, options
|
31
35
|
end
|
32
36
|
|
33
37
|
def url
|
@@ -11,7 +11,15 @@ module CarrierWave
|
|
11
11
|
|
12
12
|
module Uploader
|
13
13
|
class Base
|
14
|
+
@options = {}
|
15
|
+
|
16
|
+
def self.options
|
17
|
+
@options
|
18
|
+
end
|
19
|
+
|
14
20
|
def self.tencent_cos= options
|
21
|
+
@options = options
|
22
|
+
|
15
23
|
TencentCosSdk.configure do |conf|
|
16
24
|
conf.secret_id = options[:secret_id]
|
17
25
|
conf.secret_key = options[:secret_key]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-tencent_cos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xia xiongjun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencent_cos_sdk
|