qingcloud-sdk 0.3.1 → 0.3.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: 36d7ef3495827d9095ae9a2529fed2ae9ab481f3
4
- data.tar.gz: 40af3e9ac21acbf4ac2b8a822698bfcd1b824198
3
+ metadata.gz: 9d3405e7c9211e9272c3cf4d83c0cbf3419d4b75
4
+ data.tar.gz: 6b9a0270cc6185bd48b79e1fcc6346154f0810c9
5
5
  SHA512:
6
- metadata.gz: 7dfac45ecfe0758c0cee26b723487b30eb88bae99fc3f1c89189ee9c8335c3b158d6de370e667ccadbb8dd3f852d50b407d0860a54206a0d0e69b415019b230d
7
- data.tar.gz: bc505eb0882721801e3aa545f6099ff012dcac108d75be86bfdf6ca9ec0f2cd4ebef99740d3339a250f88b4c2b5ce5a4aa612ce89490e26963dff63f24edef45
6
+ metadata.gz: f9bfa61529861381a7166d646bb6330c1c216109cd3c7d716cf49013518fde92d4ad87251e6c1ba30ebf7c6d05bba82acc9889e48b38017117e454720a27190b
7
+ data.tar.gz: bc5b04e2eb7ba84118b262eb4a63f485f5027b527f1d93c07b60f236b2fa6fd520d4a9539b4652516a548b60699df3276deff7a4fb7591bedc7fa1ccf75305f2
data/README.md CHANGED
@@ -8,21 +8,16 @@ SDK for QingCloud
8
8
 
9
9
  $ gem install qingcloud-sdk
10
10
 
11
-
12
- ## Install from Source Code
13
-
14
- Get Code from Github:
15
-
16
- $ git clone git@github.com:prettyxw/qingcloud-sdk-ruby.git
17
-
18
- Build and Install with Bundle:
19
-
20
- $ cd qingcloud-sdk-ruby && bundle exec rake install
21
-
22
11
  ## Install using Gemfile
23
12
 
24
13
  Add this line to your application's Gemfile:
25
14
 
15
+ ```ruby
16
+ gem 'qingcloud-sdk'
17
+ ```
18
+
19
+ or
20
+
26
21
  ```ruby
27
22
  gem 'qingcloud-sdk', git: 'https://github.com/prettyxw/qingcloud-sdk-ruby'
28
23
  ```
@@ -31,6 +26,16 @@ And then execute:
31
26
 
32
27
  $ bundle install
33
28
 
29
+ ## Install from Source Code
30
+
31
+ Get Code from Github:
32
+
33
+ $ git clone git@github.com:prettyxw/qingcloud-sdk-ruby.git
34
+
35
+ Build and Install with Bundle:
36
+
37
+ $ cd qingcloud-sdk-ruby && bundle exec rake install
38
+
34
39
  ## Uninstall
35
40
 
36
41
  Using gem to remove this package:
@@ -61,9 +66,8 @@ require 'qingcloud/sdk'
61
66
 
62
67
  # Create Connection and Service
63
68
 
64
- connector = QingCloud::SDK::Client::Connector.init(
65
- 'qy_access_key_id', 'qy_secret_access_key'
66
- )
69
+ connector = QingCloud::SDK::Client::Connector.init 'qy_access_key_id',
70
+ 'qy_secret_access_key'
67
71
 
68
72
  service = QingCloud::SDK::Client::Service.new connector
69
73
 
@@ -3,9 +3,6 @@ module QingCloud
3
3
  module Error
4
4
 
5
5
  class SDKError < StandardError
6
- def initialize(message=nil)
7
- super "Encounter Error: #{message || 'Unknown'}."
8
- end
9
6
  end
10
7
 
11
8
  class NetworkError < SDKError
@@ -1,7 +1,7 @@
1
1
  module QingCloud
2
2
  module SDK
3
3
 
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qingcloud-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peng Jingwen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-05 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler