aliyunsdkcore 0.0.14 → 0.0.15

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: 8584fab6a26c2879d7cffabc9bcf14b3416ff98ca46b2518f7f721f6238b9527
4
- data.tar.gz: 0623e5f936915dd3d06eec56dec00250ecb5655577e28ddd30e22304a14e3426
3
+ metadata.gz: 3910f039ad929082e256ec85b5d5383945217f264f9de703af4f6c75bfd455fa
4
+ data.tar.gz: 17750b10a775414e5b316b2ab2b452ec603ca4664a7fecada77172c38a0bcc47
5
5
  SHA512:
6
- metadata.gz: 243f1d740306b96fee94c4d6710beecf80996b01e89475612edcb7f7b67ac9cc97d4b8cf78f18e747e599204b0ca52ba3a1c70b7d31a796bd8c32ff289843061
7
- data.tar.gz: 8be4b5f97c9b29a452911674e07f993ccf9fde2b253768b9cb8f5190b3b420a29ac2f37ca87a25686bf4aac07fc38be50a32120de18c10896505fa53056f6104
6
+ metadata.gz: b32514b7129523f6877f5e88b078a539aceb498e4e2f68751899837daa223f63a287e62ddd8493c850e1c909ea92f26b77c0a2648054445981269ee5a157d269
7
+ data.tar.gz: b245826873192fe9ef2588693e5cdd11a723a68b307a3d43090d5169bb4a5a0d85113ea35012c5bdb3ab2cdb9fb6eedb0b2abc0bc891760a170c132772977c17
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.14"
5
+ VERSION = "0.0.15"
6
6
  DEFAULT_UA = "AlibabaCloud (#{Gem::Platform.local.os}; " +
7
7
  "#{Gem::Platform.local.cpu}) Ruby/#{RUBY_VERSION} Core/#{VERSION}"
8
8
  end
@@ -88,6 +88,7 @@ module AliyunSDKCore
88
88
  end
89
89
 
90
90
  def encode(string)
91
+ string = string.to_s unless string.is_a?(String)
91
92
  encoded = CGI.escape string
92
93
  encoded.gsub(/[\+]/, '%20')
93
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyunsdkcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alibaba Cloud SDK