aliyunsdkcore 0.0.4 → 0.0.5

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
  SHA256:
3
- metadata.gz: 7e67f180966594d98c5a63bdbead9caf6d73b8edd7e6f018553d60ff3a2e5ef3
4
- data.tar.gz: 9e2dbc9a19ec81be6e92e8e4c8c164a290c94cbf1c69f8531cb34e73fd3a2eba
3
+ metadata.gz: b91a1f18e37ba166b834f1eae8c3de8260a7f2f94036cbb3f0c2473ac87deea0
4
+ data.tar.gz: 8ee808dd7056fa847b6b89eaa46c0441719d75bab0d591eda5cee3e9442b43ed
5
5
  SHA512:
6
- metadata.gz: a83964264591d54dd9615e62cc86a5e2a00a3e70c1e14c35320cd0abdab1bec348612abe0ccd8e1f8396368b65336b97dfdca8b3a00edf4ff31ac205641dfaf9
7
- data.tar.gz: fe30c89b010b00d7830727a5624300d20d8d3d4d065cc9197d5fbfdce1ecbeb6d7f3a41d317f6d9236557cadf2186f5bde983953d5eaad8e80120f454f9b848b
6
+ metadata.gz: 27556d5341ae7189049c4824f393bc2134c21a3ca5e2ad68e59632a64e4c55611a3cf72e31cc330590634299fbf21e2ac173fd9067e56c0dbde6a665c6218e7b
7
+ data.tar.gz: 82b71633d0d92792e3520aacf3adc2244f448a2b2171a9c71152c16cde27fc4057486bf6bb8b6c08161ea81009916d8954c5acbb420890e4e235a58501b3b683
data/README.md CHANGED
@@ -1,12 +1,93 @@
1
- # Alibaba Cloud Ruby Software Development Kit(Working in progress)
1
+ English | [简体中文](./README-CN.md)
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/aliyunsdkcore.svg)](https://badge.fury.io/rb/aliyunsdkcore)
4
- [![Build Status](https://travis-ci.org/aliyun/openapi-core-ruby-sdk.svg?branch=master)](https://travis-ci.org/aliyun/openapi-core-ruby-sdk)
5
- [![Build status](https://ci.appveyor.com/api/projects/status/uyepkk5bjbynofvu/branch/master?svg=true)](https://ci.appveyor.com/project/aliyun/openapi-core-ruby-sdk/branch/master)
6
- [![codecov](https://codecov.io/gh/aliyun/openapi-core-ruby-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/openapi-core-ruby-sdk)
7
3
 
8
- The Alibaba Cloud Ruby Software Development Kit (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
4
+ <p align="center">
5
+ <a href=" https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg"></a>
6
+ </p>
9
7
 
10
- This document introduces how to install and use Alibaba Cloud Ruby SDK.
8
+ <h1 align="center">Alibaba Cloud Core SDK for Ruby</h1>
11
9
 
12
- If you have any problem while using Ruby SDK, please submit an issue.
10
+ <p align="center">
11
+ <a href="https://badge.fury.io/rb/aliyunsdkcore"><img src="https://badge.fury.io/rb/aliyunsdkcore.svg" alt="Gem Version"></a>
12
+ <a href="https://travis-ci.org/aliyun/openapi-core-ruby-sdk"><img src="https://travis-ci.org/aliyun/openapi-core-ruby-sdk.svg?branch=master" alt="Build Status"></a>
13
+ <a href="https://ci.appveyor.com/project/aliyun/openapi-core-ruby-sdk/branch/master"><img src="https://ci.appveyor.com/api/projects/status/uyepkk5bjbynofvu/branch/master?svg=true" alt="Build status"></a>
14
+ <a href="https://codecov.io/gh/aliyun/openapi-core-ruby-sdk"><img src="https://codecov.io/gh/aliyun/openapi-core-ruby-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
15
+ </p>
16
+
17
+
18
+ Alibaba Cloud Core SDK for Ruby allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
19
+
20
+ This document introduces how to install and use Alibaba Cloud Core SDK for Ruby.
21
+
22
+ ## Installation
23
+
24
+ ```sh
25
+ $ gem install aliyunsdkcore
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ The RPC demo:
31
+
32
+ ```ruby
33
+ require 'aliyunsdkcore'
34
+
35
+ client = RPCClient.new(
36
+ endpoint: 'https://ecs.aliyuncs.com',
37
+ api_version: '2014-05-26',
38
+ access_key_id: ENV['ACCESS_KEY_ID'],
39
+ access_key_secret: ENV['ACCESS_KEY_SECRET'],
40
+ )
41
+
42
+ params = { key: (1..11).to_a.map(&:to_s) }
43
+ request_option = { method: 'POST', timeout: 15000 }
44
+ response = client.request(
45
+ action: 'DescribeRegions',
46
+ params: params,
47
+ opts: request_option
48
+ )
49
+
50
+ print JSON.parse(response.body)
51
+ ```
52
+
53
+
54
+ The ROA demo:
55
+
56
+ ```ruby
57
+ require 'aliyunsdkcore'
58
+
59
+ client = ROAClient.new(
60
+ endpoint: 'http://ros.aliyuncs.com',
61
+ api_version: '2015-09-01',
62
+ access_key_id: ENV['ACCESS_KEY_ID'],
63
+ access_key_secret: ENV['ACCESS_KEY_SECRET'],
64
+ )
65
+
66
+ response = client.request(
67
+ method: 'GET',
68
+ uri: '/regions',
69
+ options: {
70
+ timeout: 15000
71
+ }
72
+ )
73
+
74
+ print JSON.parse(response.body)
75
+ ```
76
+
77
+
78
+ ## Issues
79
+ [Opening an Issue](https://github.com/aliyun/openapi-core-ruby-sdk/issues/new/choose), Issues not conforming to the guidelines may be closed immediately.
80
+
81
+
82
+ ## Changelog
83
+ Detailed changes for each release are documented in the [release notes](CHANGELOG.md).
84
+
85
+
86
+ ## Contribution
87
+ Please make sure to read the [Contributing Guide](CONTRIBUTING.md) before making a pull request.
88
+
89
+
90
+ ## License
91
+ [MIT](LICENSE.md)
92
+
93
+ Copyright 1999-2019 Alibaba Group Holding Ltd.
data/lib/aliyunsdkcore.rb CHANGED
@@ -2,5 +2,5 @@ require_relative './rpc_client'
2
2
  require_relative './roa_client'
3
3
 
4
4
  module AliyunSDKCore
5
- VERSION = "0.0.4"
5
+ VERSION = "0.0.5"
6
6
  end
data/lib/rpc_client.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'set'
2
+ require 'openssl'
2
3
  require 'faraday'
3
4
  require 'active_support/all'
4
5
 
@@ -32,4 +32,4 @@ describe 'rpc request' do
32
32
  expect(response_body.keys.include?('Regions')).to be true
33
33
  expect(response_body.keys.include?('RequestId')).to be true
34
34
  end
35
- end
35
+ end
@@ -231,4 +231,4 @@ describe 'rpc core' do
231
231
  end
232
232
  end
233
233
 
234
- end
234
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyunsdkcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alibaba Cloud SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-17 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.0.2
118
+ rubygems_version: 3.0.3
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Alibaba Cloud Ruby Core SDK