fog-aliyun 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/fog-aliyun.gemspec +0 -2
- data/lib/fog/aliyun/requests/storage/delete_object.rb +7 -24
- data/lib/fog/aliyun/version.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3be4a1832619663a88cd9ac70eada6d06c24b9e8b7f11da0242516d2e379acd
|
4
|
+
data.tar.gz: 5d9338f0e592f82b9f2565ee8fb5c46077d2b1156e72a808a7c476a17e7da8fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aebf30618f7e098f37c4a0a0c9a10bba29d33062bc9789547d92caf0dd220a75c7e303b22a64f1c27eec7385be4c4e18b3542aff1430ba5020dea7e763866c0
|
7
|
+
data.tar.gz: dd9e04bac82d1acfd60ef696d43b02f181d810aad04a9ad8bff8e6c9038c9a464fd91ad3dbab2c65b491bb1b929ca6cb4f35b9bd06f4485e65a67fe60baaad03
|
data/Gemfile
CHANGED
data/fog-aliyun.gemspec
CHANGED
@@ -28,11 +28,9 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'rubocop'
|
29
29
|
spec.add_development_dependency 'simplecov'
|
30
30
|
spec.add_development_dependency 'memory_profiler'
|
31
|
-
spec.add_development_dependency 'aliyun-sdk'
|
32
31
|
|
33
32
|
spec.add_dependency 'fog-core'
|
34
33
|
spec.add_dependency 'fog-json'
|
35
34
|
spec.add_dependency 'ipaddress', '~> 0.8'
|
36
35
|
spec.add_dependency 'xml-simple', '~> 1.1'
|
37
|
-
spec.add_dependency 'aliyun-sdk'
|
38
36
|
end
|
@@ -10,32 +10,15 @@ module Fog
|
|
10
10
|
# * object<~String> - Name of object to delete
|
11
11
|
#
|
12
12
|
def delete_object(object, options = {})
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
expects: 204,
|
18
|
-
method: 'DELETE',
|
19
|
-
path: object,
|
20
|
-
bucket: bucket,
|
21
|
-
resource: resource,
|
22
|
-
location: get_bucket_location(bucket)
|
23
|
-
)
|
13
|
+
bucket_name = options[:bucket]
|
14
|
+
bucket_name ||= @aliyun_oss_bucket
|
15
|
+
bucket = @oss_client.get_bucket(bucket_name)
|
16
|
+
bucket.delete_object(object)
|
24
17
|
end
|
25
18
|
|
26
|
-
def abort_multipart_upload(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
ret = request(
|
31
|
-
expects: 204,
|
32
|
-
method: 'DELETE',
|
33
|
-
path: path,
|
34
|
-
bucket: bucket,
|
35
|
-
resource: resource,
|
36
|
-
endpoint: endpoint,
|
37
|
-
location: get_bucket_location(bucket)
|
38
|
-
)
|
19
|
+
def abort_multipart_upload(bucket_name, object, upload_id)
|
20
|
+
bucket = @oss_client.get_bucket(bucket_name)
|
21
|
+
bucket.abort_upload(upload_id, object)
|
39
22
|
end
|
40
23
|
end
|
41
24
|
end
|
data/lib/fog/aliyun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-aliyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qinsi Deng, Jianxun Li, Jane Han, Guimin He
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,20 +128,6 @@ dependencies:
|
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: aliyun-sdk
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - ">="
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0'
|
145
131
|
- !ruby/object:Gem::Dependency
|
146
132
|
name: fog-core
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,20 +184,6 @@ dependencies:
|
|
198
184
|
- - "~>"
|
199
185
|
- !ruby/object:Gem::Version
|
200
186
|
version: '1.1'
|
201
|
-
- !ruby/object:Gem::Dependency
|
202
|
-
name: aliyun-sdk
|
203
|
-
requirement: !ruby/object:Gem::Requirement
|
204
|
-
requirements:
|
205
|
-
- - ">="
|
206
|
-
- !ruby/object:Gem::Version
|
207
|
-
version: '0'
|
208
|
-
type: :runtime
|
209
|
-
prerelease: false
|
210
|
-
version_requirements: !ruby/object:Gem::Requirement
|
211
|
-
requirements:
|
212
|
-
- - ">="
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
version: '0'
|
215
187
|
description: As a FOG provider, fog-aliyun support aliyun OSS/ECS. It will support
|
216
188
|
more aliyun services later.
|
217
189
|
email:
|