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: 45b650db7b7c8e6101d8b07f8a888798e15e5828
4
- data.tar.gz: 84d01558adff5585ea9a6eafb52f80bc9ee246fa
3
+ metadata.gz: 2dd76665f9af68097ca41a1f431d25bc1a657733
4
+ data.tar.gz: bbaa24dff67f96062225054e18e24229bb764370
5
5
  SHA512:
6
- metadata.gz: c28a27a94c9706d3cfeeded99b65e4cc8b868e6fb6cb21abce556f3a538ddc5a25f17375b4eee85ff305d1ffab1835716d409b34f7ac714dd03f2d649cf72cf3
7
- data.tar.gz: 0c2203871ee75c3c66746aefd2628728269054b6128b3f804a49a9d98b9410b88cc735c3b3192f5d012d5ad57748d14813bb589f832342864a5fad59f6885237
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
- TencentCosSdk.put @path, file: new_file.path
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
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module TencentCos
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -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.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-26 00:00:00.000000000 Z
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