aliyunsdkcore 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aliyunsdkcore.rb +1 -1
- data/lib/aliyunsdkcore/roa_client.rb +3 -3
- data/lib/aliyunsdkcore/rpc_client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8584fab6a26c2879d7cffabc9bcf14b3416ff98ca46b2518f7f721f6238b9527
|
4
|
+
data.tar.gz: 0623e5f936915dd3d06eec56dec00250ecb5655577e28ddd30e22304a14e3426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 243f1d740306b96fee94c4d6710beecf80996b01e89475612edcb7f7b67ac9cc97d4b8cf78f18e747e599204b0ca52ba3a1c70b7d31a796bd8c32ff289843061
|
7
|
+
data.tar.gz: 8be4b5f97c9b29a452911674e07f993ccf9fde2b253768b9cb8f5190b3b420a29ac2f37ca87a25686bf4aac07fc38be50a32120de18c10896505fa53056f6104
|
data/lib/aliyunsdkcore.rb
CHANGED
@@ -2,7 +2,7 @@ require 'aliyunsdkcore/rpc_client'
|
|
2
2
|
require 'aliyunsdkcore/roa_client'
|
3
3
|
|
4
4
|
module AliyunSDKCore
|
5
|
-
VERSION = "0.0.
|
5
|
+
VERSION = "0.0.14"
|
6
6
|
DEFAULT_UA = "AlibabaCloud (#{Gem::Platform.local.os}; " +
|
7
7
|
"#{Gem::Platform.local.cpu}) Ruby/#{RUBY_VERSION} Core/#{VERSION}"
|
8
8
|
end
|
@@ -70,15 +70,15 @@ module AliyunSDKCore
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def post(uri: '', headers: {}, params: {}, body: {}, options: {})
|
73
|
-
request(method: :
|
73
|
+
request(method: :post, uri: uri, params: params, body: body, headers: headers, options: options)
|
74
74
|
end
|
75
75
|
|
76
76
|
def put(uri: '', headers: {}, params: {}, body: {}, options: {})
|
77
|
-
request(method: :
|
77
|
+
request(method: :put, uri: uri, params: params, body: body, headers: headers, options: options)
|
78
78
|
end
|
79
79
|
|
80
80
|
def delete(uri: '', headers: {}, params: {}, options: {})
|
81
|
-
request(method: :
|
81
|
+
request(method: :delete, uri: uri, params: params, body: {}, headers: headers, options: options)
|
82
82
|
end
|
83
83
|
|
84
84
|
def default_headers
|
@@ -51,7 +51,7 @@ module AliyunSDKCore
|
|
51
51
|
end
|
52
52
|
|
53
53
|
response_body = JSON.parse(response.body)
|
54
|
-
if response_body['Code'] && !self.codes.include?(response_body['Code'])
|
54
|
+
if response_body['Code'] && !response_body['Code'].to_s.empty? && !self.codes.include?(response_body['Code'])
|
55
55
|
raise StandardError, "#{response_body['Message']}, URL: #{uri}"
|
56
56
|
end
|
57
57
|
|
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
|
+
version: 0.0.14
|
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:
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|