remote_files 3.7.0 → 3.7.1

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: '039a33d2003b7da6a18815b1663c5078b0f3e8bd439469282e8e629fad8cc934'
4
- data.tar.gz: c113130c97455d7b7698a4cf34d00e1501552f64c4ca1355d193e67990034740
3
+ metadata.gz: a90a9e0a3a68597fe4d197f4be6174047576b74976f905f73f67e23c16da9ff5
4
+ data.tar.gz: f6abff5b286292c9e2ea078299cad33cf4d0e7edc6f6f742bf22fe2414c2098b
5
5
  SHA512:
6
- metadata.gz: d257ec5e612c589907606a393b532c7c075037f64ab939f380a5159767ad6e9c25473c8e9fad184274fa828d7ceac0023087abc9e345253a8b0192f82b8d2c26
7
- data.tar.gz: 78038598723c23add49fe33b64a8dc939695d61c3fbd0189ed32f5f66bdfbfff8b4c2fdb74bbba1eb0fae084b2bc6f950ac2111c0609bf0b935518769900d90e
6
+ metadata.gz: e188cdfee5667846fbaa221feb40380e1a98d337985ba2e68c4a884ba82c4c1aaaf1073f75eb8d4165a8954f7c2db4b928fd52bae2dcdbd9fd20e13dcc96d092
7
+ data.tar.gz: 600721b36f2a2f0dec4536009da8d24089757671930e786d58b8d9fcda823e464e610c57bcb573fe23331f6153f178d47339ee3472e94b4920b82564c81b331c
@@ -151,8 +151,9 @@ module RemoteFiles
151
151
  true
152
152
  end
153
153
 
154
- # This method is used to delete a file from all stores in parallel
155
- # exceptions are passed back to the caller
154
+ # Deletes a file from all writable stores in parallel.
155
+ # When the file is missing the Future's value is set to NotFoundError exception.
156
+ # Re-raises any other exceptions, but doesn't prevent concurrent requests from being executed.
156
157
  def delete_in_parallel!(file, stores, exceptions)
157
158
  pool = Concurrent::FixedThreadPool.new(@max_delete_in_parallel)
158
159
 
@@ -167,7 +168,7 @@ module RemoteFiles
167
168
  end
168
169
 
169
170
  futures.each do |future|
170
- result = future.value
171
+ result = future.value!
171
172
  exceptions << result if result.is_a?(Exception)
172
173
  end
173
174
 
@@ -1,3 +1,3 @@
1
1
  module RemoteFiles
2
- VERSION = '3.7.0'
2
+ VERSION = '3.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_files
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-aws
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.5.16
93
+ rubygems_version: 3.5.22
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: The purpose of the library is to implement a simple interface for uploading