archived_remote_object 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 874166646dc4caa8cd18e73fb3b6e53857254d167c2b3f828d5e06249e0e9768
|
4
|
+
data.tar.gz: 0342b78ce8efcf8ef6890f19a8491b07ce5d1bc089d3469128648259d89f0ec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 547d157c47e88690dedff50673bd141482fe1aaaea633438d707926b552720104bd87abfa065209d627613f189aa251002196a64e8c44b8356633a8d45e721a1
|
7
|
+
data.tar.gz: 000c463560bb10a6e85c83db25de9c251b9b5b4ef85b291cf1438aab45a2a3ac9fece985ae1df7fc74ef76cf134d95cf0d7e91b230aa5fcc50828a0e8c09227c
|
@@ -43,6 +43,11 @@ module ArchivedRemoteObject
|
|
43
43
|
s3_client.copy_object(bucket: bucket, key: key, copy_source: "#{bucket}/#{key}", storage_class: storage_class)
|
44
44
|
end
|
45
45
|
|
46
|
+
def delete(key:)
|
47
|
+
s3_client.stub_responses(:delete_object) if stubbed?
|
48
|
+
s3_client.delete_object(bucket: bucket, key: key)
|
49
|
+
end
|
50
|
+
|
46
51
|
private
|
47
52
|
|
48
53
|
def bucket
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archived_remote_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksey Strizhak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|