aliyunsdkcore 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db440cd806945cb8cfac4ac73dbeb07483105a899209211bf17d29204a89e78a
4
- data.tar.gz: f2863a87f8c8c32d41a3113b645da0e5c2901c60f72367227e95bcd4ecb9fa02
3
+ metadata.gz: 8584fab6a26c2879d7cffabc9bcf14b3416ff98ca46b2518f7f721f6238b9527
4
+ data.tar.gz: 0623e5f936915dd3d06eec56dec00250ecb5655577e28ddd30e22304a14e3426
5
5
  SHA512:
6
- metadata.gz: f2d0eb4550ef766cbcc24a377eb179c602b80b77270062eef8726bf21521a98793614ab5bb74dc0491781d382c2129c360333d9e54f0296aa24edc5b75024917
7
- data.tar.gz: 108a4cf118ad66f18b83bce4cd082eaadedd92e8c394a31c0a8a503e36c72ce28ffb2c5d7a3e8dfc3b0ce39dc17c52c92e2c2717a9dbbd5b409bbca2767adbc0
6
+ metadata.gz: 243f1d740306b96fee94c4d6710beecf80996b01e89475612edcb7f7b67ac9cc97d4b8cf78f18e747e599204b0ca52ba3a1c70b7d31a796bd8c32ff289843061
7
+ data.tar.gz: 8be4b5f97c9b29a452911674e07f993ccf9fde2b253768b9cb8f5190b3b420a29ac2f37ca87a25686bf4aac07fc38be50a32120de18c10896505fa53056f6104
@@ -2,7 +2,7 @@ require 'aliyunsdkcore/rpc_client'
2
2
  require 'aliyunsdkcore/roa_client'
3
3
 
4
4
  module AliyunSDKCore
5
- VERSION = "0.0.13"
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: :get, uri: uri, params: params, body: body, headers: headers, options: options)
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: :get, uri: uri, params: params, body: body, headers: headers, options: options)
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: :get, uri: uri, params: params, body: {}, headers: headers, options: options)
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.13
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: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport