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: 42d30e739b51ead61d8891b289acf10f8dea51d324625886b70f652706518fc0
4
- data.tar.gz: e0b13979817b999fdf60205938e25313f69f26e202a119d90548becd14dbcc4b
3
+ metadata.gz: 874166646dc4caa8cd18e73fb3b6e53857254d167c2b3f828d5e06249e0e9768
4
+ data.tar.gz: 0342b78ce8efcf8ef6890f19a8491b07ce5d1bc089d3469128648259d89f0ec8
5
5
  SHA512:
6
- metadata.gz: 85b80ffa1c6faa61998dcaf3f0a31dd8e371d750c93593382dfe1aa9a950a526455d39726a70c43a5d1d123741d54874b68d374f826e66a93036db36fda91496
7
- data.tar.gz: 68aeddf6f3dc26445377f3485e0af30013af2fe34c587de661d5c6fca9db340c1b65d30c5c9dd7dc5526b2ec39d62119339ce8f977820a017df19384472cc28c
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
@@ -32,6 +32,10 @@ module ArchivedRemoteObject
32
32
  remote_client.assign_storage_class(key: key, storage_class: storage_class)
33
33
  end
34
34
 
35
+ def delete
36
+ remote_client.delete(key: key)
37
+ end
38
+
35
39
  def sync
36
40
  tap { fetch_attributes }
37
41
  end
@@ -1,3 +1,3 @@
1
1
  module ArchivedRemoteObject
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
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.3
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-05-27 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk