aliyun-sdk 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/aliyun/oss/multipart.rb +1 -1
- data/lib/aliyun/oss/util.rb +15 -15
- data/lib/aliyun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f304be3ae5b8631ce2fba50d0d0b8d7e6635eb79
|
4
|
+
data.tar.gz: 7393a38208b5effa30efed0db2758d499f79afa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2affe8557b33db121bfb3ba8cb123c4c16ee8f204fa1fa1f3a6583a8e1592c936c03a3a576e24eb21fb7ba290f56920df2d85a722793501af9359806c3a723ca
|
7
|
+
data.tar.gz: 475ea25895a767732e9fc912d22db312e4d7ffde00ae16d253cbd3baf8d343a3d68f919562c1a2dadb910e124de02fb95d60658ba32979cd496790417b9fc33f
|
data/CHANGELOG.md
CHANGED
data/lib/aliyun/oss/multipart.rb
CHANGED
data/lib/aliyun/oss/util.rb
CHANGED
@@ -60,6 +60,21 @@ module Aliyun
|
|
60
60
|
Base64.strict_encode64(OpenSSL::Digest::MD5.digest(content))
|
61
61
|
end
|
62
62
|
|
63
|
+
# Symbolize keys in Hash, recursively
|
64
|
+
def symbolize(v)
|
65
|
+
if v.is_a?(Hash)
|
66
|
+
result = {}
|
67
|
+
v.each_key { |k| result[k.to_sym] = symbolize(v[k]) }
|
68
|
+
result
|
69
|
+
elsif v.is_a?(Array)
|
70
|
+
result = []
|
71
|
+
v.each { |x| result << symbolize(x) }
|
72
|
+
result
|
73
|
+
else
|
74
|
+
v
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
63
78
|
end # self
|
64
79
|
end # Util
|
65
80
|
end # OSS
|
@@ -72,18 +87,3 @@ class String
|
|
72
87
|
false
|
73
88
|
end
|
74
89
|
end
|
75
|
-
|
76
|
-
# Monkey patch to support #symbolize_keys!
|
77
|
-
class Array
|
78
|
-
def symbolize_keys!
|
79
|
-
self.each { |v| v.symbolize_keys! if v.is_a?(Hash) or v.is_a?(Array) }
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# Monkey patch to support #symbolize_keys!
|
84
|
-
class Hash
|
85
|
-
def symbolize_keys!
|
86
|
-
self.keys.each { |k| self[k.to_sym] = self.delete(k) }
|
87
|
-
self.values.each { |v| v.symbolize_keys! if v.is_a?(Hash) or v.is_a?(Array) }
|
88
|
-
end
|
89
|
-
end
|
data/lib/aliyun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aliyun-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tianlong Wu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|