remote_files 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remote_files/fog_store.rb +13 -5
- data/lib/remote_files/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e90fdccfe48d4c170a693ef51fff589f038c2cf3afa92467c9727e9d6c9ba70f
|
4
|
+
data.tar.gz: a4058dab1a1db6b9267e20cf3d740dc8cebf1f64787df5cfe9851bd15a90216c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b914ddfb7dd0b129e9f73cc09fd864cb0f27242b630fc93a3e581454ab588ce08efd1be4bb41359fa5380ed0f289ec08d98a9d7937cdb91e3f19d90eaf3374
|
7
|
+
data.tar.gz: 932b45360d8139742d8389c876628f19b89d42a8aa786a964e424a4cc8399beccdd256e420d8e27afc367ea3c5887931f458c888f6129f3c85ba9d057e45bdc3
|
@@ -53,16 +53,17 @@ module RemoteFiles
|
|
53
53
|
raise RemoteFiles::Error, message
|
54
54
|
end
|
55
55
|
|
56
|
-
connection.delete_object(
|
56
|
+
connection.delete_object(directory_name, identifier)
|
57
57
|
rescue Fog::Errors::NotFound, Excon::Errors::NotFound
|
58
58
|
raise NotFoundError, $!.message, $!.backtrace
|
59
59
|
end
|
60
60
|
|
61
61
|
def connection
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
opts = options.dup
|
63
|
+
opts.delete(:directory)
|
64
|
+
opts.delete(:public)
|
65
|
+
opts[:connection_options] ||= default_connection_options
|
66
|
+
@connection ||= Fog::Storage.new(opts)
|
66
67
|
end
|
67
68
|
|
68
69
|
def directory_name
|
@@ -75,6 +76,13 @@ module RemoteFiles
|
|
75
76
|
|
76
77
|
protected
|
77
78
|
|
79
|
+
def default_connection_options
|
80
|
+
{
|
81
|
+
retry_limit: 0,
|
82
|
+
retry_interval: 0
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
78
86
|
def aws_host
|
79
87
|
case options[:region]
|
80
88
|
when nil, 'us-east-1'
|
data/lib/remote_files/version.rb
CHANGED
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.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-aws
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/remote_files/version.rb
|
60
60
|
homepage: https://github.com/zendesk/remote_files
|
61
61
|
licenses:
|
62
|
-
- Apache
|
62
|
+
- Apache-2.0
|
63
63
|
metadata: {}
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.7.6
|
79
|
+
rubygems_version: 3.0.3.1
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: The purpose of the library is to implement a simple interface for uploading
|