qcloud_cos 0.4.1 → 0.4.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: 82a6d54335364ee45eb1d60e4fe33c02181d13f8
4
- data.tar.gz: f3ee2074c3a196a7f46ce1ba2077fbb85d16a354
3
+ metadata.gz: 4608ceae07623032b1a262e938db34aa09e6adf5
4
+ data.tar.gz: b47bdd3f7c20bafe0015b0a76ac715e6c323f871
5
5
  SHA512:
6
- metadata.gz: b08e8867cd08cd0fba2eefec5754dcacc30633a68d8cbdca71af7b745db0006994e81379bbe25d94680b293cfb45c651d1a7afc0efc1a960d42feb20caa10934
7
- data.tar.gz: 76f4f556cf7fe094c5db2d0515be9cc7d463902b115fc439fe8c79905ebe486510f4b306811a5c790da272d43012ae5c587f6d208930d0df8391a713055ad801
6
+ metadata.gz: 764b7d4a946e89feeed245b33611536597223b21b1123914b284863d567aa734d276135226f80c8794024208cf484ea3cc9a1743fba01cc79c12a95e0673c5ea
7
+ data.tar.gz: 3ff8c7421685e970b40b1d3348f20b1b0197c15e3f9623afe11fd8680de8c9081cd1d5701102350599c9207ce7cf50c5f1dff1d5513d8fea0b74ad8a2976f4f4
data/README.md CHANGED
@@ -42,8 +42,16 @@ QcloudCos.upload_slice('/video.mp4', 'path/to/video.mp4')
42
42
  QcloudCos.create_folder('/test/') # 创建目录
43
43
  ```
44
44
 
45
- More Example and Scenario, visit our [Document](#document)
45
+ ### CLI
46
+
47
+ ```ruby
48
+ $ qcloud-cos config
46
49
 
50
+ $ qcloud-cos info
51
+ $ qcloud-cos list
52
+ ```
53
+
54
+ More Example and Scenario, visit our [Document](#document)
47
55
 
48
56
  ## Document
49
57
 
@@ -54,12 +62,12 @@ Here is original Restful API, It has the most detailed and authoritative explana
54
62
 
55
63
  Here is our RDoc Document, It's well format to help you find more detail about methods.
56
64
 
57
- + [RDoc Document](http://www.rubydoc.info/gems/qcloud_cos/0.4.1)
65
+ + [RDoc Document](http://www.rubydoc.info/gems/qcloud_cos)
58
66
 
59
67
 
60
68
  Here are some more guides for help you. Welcome to advice.
61
69
 
62
- + [Getting Started](http://git.oschina.net/newell_zlx/cos_ruby_sdk/blob/master/wiki/get_started.md)
70
+ + [Getting Started](wiki/get_started.md)
63
71
 
64
72
 
65
73
  ## Test
@@ -31,11 +31,11 @@ module QcloudCos
31
31
  private
32
32
 
33
33
  def http
34
- @http ||= Http.new(config)
34
+ Http.new(config)
35
35
  end
36
36
 
37
37
  def authorization
38
- @authorization ||= Authorization.new(QcloudCos.config)
38
+ Authorization.new(config)
39
39
  end
40
40
 
41
41
  def validates(path, options, path_validate = :file_only)
@@ -13,7 +13,7 @@ module QcloudCos
13
13
  @message = response.parsed_response['message']
14
14
  end
15
15
  @origin_response = response
16
- super("ERROR Code: #{@code}, Message: #{@message}")
16
+ super("API ERROR Code=#{@code}, Message=#{@message}")
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module QcloudCos
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -1082,5 +1082,5 @@ $ qcloud-cos download --bucket bucket2 /data/test/
1082
1082
 
1083
1083
  ## 其它资源
1084
1084
 
1085
- + [RDoc 文档](http://www.rubydoc.info/gems/qcloud_cos/0.4.1)
1085
+ + [RDoc 文档](http://www.rubydoc.info/gems/qcloud_cos)
1086
1086
  + [腾讯 COS 详细文档](http://www.qcloud.com/doc/product/227/%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qcloud_cos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Newell Zhu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty