baidubce-sdk 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,4 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 37ee3d088dfe300d2c4bc59ede9c3295460349d7
4
- data.tar.gz: 9c7fcf154a0f0a51b6b4a731e1ab2193e8247f04
5
2
  SHA512:
6
- metadata.gz: 7eaa2b1a43bab2af6d5355cb24bf37d2ada15a10db184364a65f1c6ddab3f5a58ef1dddae0851c08f400f9c163b5c39a33058a0805c7582f9e865cb11490eba7
7
- data.tar.gz: 70c5c1e51449b504d1a8a05b21dd1f5e2fb3f7831ce2713f48a83f4633814cb056d74384328229534bd8d0563933a3dda94f2a79d984218fca1b68df0d89a10d
3
+ metadata.gz: 165934a1406f4fe922c2b3240f3924e0fce9412d003420eaf6aa121120c7b66647f118c954da4f1bdf81514a04173e8856b4b125becfafa280ebb46545b18eac
4
+ data.tar.gz: 79bda68cf94da4ccadfe92ae501e8d8676b5fc647617b2f09dc46da23af421086e71730973c9df0a1c80549eab802d371d183ec69b16cba53d0872e218b0ad9b
data/baidubce-sdk.gemspec CHANGED
@@ -24,8 +24,10 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.15"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
27
- spec.add_development_dependency "rest-client", "~> 2.0", ">= 2.0.2"
28
- spec.add_development_dependency "logger", "~> 1.2", ">= 1.2.8"
29
- spec.add_development_dependency "mimemagic", "~> 0.3", ">= 0.3.2"
27
+
28
+ spec.add_runtime_dependency "rest-client", "~> 2.0", ">= 2.0.2"
29
+ spec.add_runtime_dependency "logger", "~> 1.2", ">= 1.2.8"
30
+ spec.add_runtime_dependency "mimemagic", "~> 0.3", ">= 0.3.2"
31
+ spec.add_runtime_dependency "unf_ext", "0.0.7.7"
30
32
  spec.required_ruby_version = ">= 2.0.0"
31
33
  end
@@ -162,6 +162,9 @@ module Baidubce
162
162
 
163
163
  def get_object(bucket_name, key, range, save_path=nil, return_body=true)
164
164
  headers = range.nil? ? {} : get_range_header_dict(range)
165
+ if key.size == 0 || key =~ /^\/+$/
166
+ raise BceClientException.new("Key can not be empty or all is '/'.")
167
+ end
165
168
  send_request(GET, bucket_name, {}, key, headers, "", save_path, return_body)
166
169
  end
167
170
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Baidubce
4
4
 
5
- VERSION = "0.9.1"
5
+ VERSION = "0.9.3"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,117 +1,131 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baidubce-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiaoyong
8
- autorequire:
8
+ autorequire:
9
9
  bindir: lib/baidubce
10
10
  cert_chain: []
11
- date: 2020-04-17 00:00:00.000000000 Z
11
+ date: 2021-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.15'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.15'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rest-client
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.0'
62
- - - ">="
62
+ - - '>='
63
63
  - !ruby/object:Gem::Version
64
64
  version: 2.0.2
65
- type: :development
65
+ type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - "~>"
69
+ - - ~>
70
70
  - !ruby/object:Gem::Version
71
71
  version: '2.0'
72
- - - ">="
72
+ - - '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: 2.0.2
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: logger
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '1.2'
82
- - - ">="
82
+ - - '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: 1.2.8
85
- type: :development
85
+ type: :runtime
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - "~>"
89
+ - - ~>
90
90
  - !ruby/object:Gem::Version
91
91
  version: '1.2'
92
- - - ">="
92
+ - - '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: 1.2.8
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: mimemagic
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - "~>"
99
+ - - ~>
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0.3'
102
- - - ">="
102
+ - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: 0.3.2
105
- type: :development
105
+ type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - "~>"
109
+ - - ~>
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0.3'
112
- - - ">="
112
+ - - '>='
113
113
  - !ruby/object:Gem::Version
114
114
  version: 0.3.2
115
+ - !ruby/object:Gem::Dependency
116
+ name: unf_ext
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '='
120
+ - !ruby/object:Gem::Version
121
+ version: 0.0.7.7
122
+ type: :runtime
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - '='
127
+ - !ruby/object:Gem::Version
128
+ version: 0.0.7.7
115
129
  description: The official Ruby sdk used to accessing BaiduBce Object Storage Service
116
130
  email:
117
131
  - xiaoyong@baidu.com
@@ -119,7 +133,7 @@ executables: []
119
133
  extensions: []
120
134
  extra_rdoc_files: []
121
135
  files:
122
- - ".gitignore"
136
+ - .gitignore
123
137
  - CODE_OF_CONDUCT.md
124
138
  - Gemfile
125
139
  - LICENSE
@@ -149,24 +163,23 @@ homepage: https://github.com/baidubce/bce-sdk-ruby
149
163
  licenses:
150
164
  - Apache-2.0
151
165
  metadata: {}
152
- post_install_message:
166
+ post_install_message:
153
167
  rdoc_options: []
154
168
  require_paths:
155
169
  - lib
156
170
  required_ruby_version: !ruby/object:Gem::Requirement
157
171
  requirements:
158
- - - ">="
172
+ - - '>='
159
173
  - !ruby/object:Gem::Version
160
174
  version: 2.0.0
161
175
  required_rubygems_version: !ruby/object:Gem::Requirement
162
176
  requirements:
163
- - - ">="
177
+ - - '>='
164
178
  - !ruby/object:Gem::Version
165
179
  version: '0'
166
180
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.6.14
169
- signing_key:
181
+ rubygems_version: 3.0.9
182
+ signing_key:
170
183
  specification_version: 4
171
184
  summary: BaiduBce BOS Ruby SDK
172
185
  test_files: []