remote_files 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a7fc219e4fd9f86ae482ca50d7eb34a002f191de97f932e01e44f1020846403
4
- data.tar.gz: 530d0f1e212e46e3737334f3cf8a7f5bc8b6249176b59c774d272bf54fb8420a
3
+ metadata.gz: e90fdccfe48d4c170a693ef51fff589f038c2cf3afa92467c9727e9d6c9ba70f
4
+ data.tar.gz: a4058dab1a1db6b9267e20cf3d740dc8cebf1f64787df5cfe9851bd15a90216c
5
5
  SHA512:
6
- metadata.gz: 6631796ee3ab3daeefb2bcb9807422ae616a65b32372d792ebd88441f6eb8a933a7c798e691ed2a81e4b48fdabf3e1f1766ed13c2d71df492333724b6067e4c3
7
- data.tar.gz: 9b2e193ded1126905277c4a05475944c05c508e653dfda19e82de70236a9bc9488c20540f7955c8bf125a31fefd27dc46de4b7a4addf69d053de426e0c72d12c
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(directory.key, identifier)
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
- connection_options = options.dup
63
- connection_options.delete(:directory)
64
- connection_options.delete(:public)
65
- @connection ||= Fog::Storage.new(connection_options)
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'
@@ -1,3 +1,3 @@
1
1
  module RemoteFiles
2
- VERSION = '3.1.0'
2
+ VERSION = '3.2.0'
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.1.0
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: 2019-08-01 00:00:00.000000000 Z
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 License Version 2.0
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
- rubyforge_project:
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